post https://api.pandadoc.com/public/v1/documents/
Upload a PDF, DocX, or an RTF to create a document.
Recipes
Supercharge your app with our PandaDoc Embedded Editor
Open Recipe
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:
- Upload a local file. For this, use the
multipart/form-data
request type. - 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.