Create document API implemented.