Create Document from File Upload

Upload a PDF, DocX, or an RTF to create a document.

See the Create from PDF tutorial for the usage specifics and sample PDF files.

Create from an upload or a URL

You have two options to create a document from file:

  1. Upload a local file. For this, use the multipart/form-data request type.
  2. Send a public URL in the document creation request like this:
curl --request POST 'https://api.pandadoc.com/public/v1/documents' \
--header 'Content-Type: application/json' \
--data-raw '{
   "name": "My minimal document",
   "url": "https://cdn2.hubspot.net/hubfs/2127247/public-templates/SamplePandaDocPdf_FormFields.pdf",
   "recipients": [
      {
       "email":"[email protected]",
       "role": "user"
      }
 	 ],
   "parse_form_fields": false
}'

See the Create from public PDF guide for info about roles and fields, as well as PDF examples.

Note: A file you upload is not stored in your PandaDoc account, so you have to upload it with every request.

Language
Authorization
OAuth2