Documents
Create Document
Create from a template
See the Create document from template tutorial for details on how to use this endpoint, as well as a sample template.
Create from a URL
See the Create from public PDF guide for info about roles and fields, as well as PDF examples.
post/public/v1/documents
Query parameters
editor_verstring
Set this parameter as ev1 if you want to create a document from PDF with Classic Editor when both editors are enabled for the workspace.
use_form_field_propertiesstring
Set this parameter as yes or 1 or true (only when upload pdf with form fields) if you want to respect form fields properties, like required.
Request body
Response
OK
Example response
{
"id": "cKbJ7uay3cEGtsKuGPwYGX",
"name": "API Sample Document from PandaDoc Template",
"status": "document.draft",
"date_created": "2021-10-08T11:06:32.337395Z",
"date_modified": "2021-10-08T11:06:32.337395Z",
"expiration_date": "2021-10-08T11:06:32.337395Z",
"version": "EV2",
"uuid": "cKbJ7uay3cEGtsKuGPwYGX",
"links": [
{
"rel": "status",
"href": "https://api.pandadoc.com/public/v1/documents/jzjCfYgKQYm2u9ctwN6io4",
"type": "GET"
}
],
"info_message": "You need to poll the Document Status method until the status will be changed to document.draft"
}