Templates
Create Template from File Upload
Changed onThis asynchronous endpoint allows users to create a new template by uploading a file.
The uploaded file is processed in the background to generate the template. The maximum allowable file size for upload is 100 MB. Field tags and form fields are not supported yet.
Once the file is uploaded, the processing will happen asynchronously, and users need to check the status of the template creation.
post/public/v1/templates?upload
Request
- Base URLhttps://api.pandadoc.com
- Auth
- API key in header Authorization
- or OAuth 2Authorization codehttps://app.pandadoc.com/oauth2/authorizeToken URLhttps://api.pandadoc.com/oauth2/access_token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
fieldsstring[]
A comma-separated list of additional fields to include in the response.
Request body multipart/form-data
Example request
{
"data": {
"editable": true,
"name": "Template name example",
"folder_uuid": "EE8yUNg5HztqVAuH85He8V",
"owner": {
"membership_id": "QMDSzwabfFzTgjW6KijHyu",
"email": "john.doe@example.com"
},
"metadata": {
"my_favorite_pet": "Panda"
},
"tokens": [
{
"name": "Favorite.Pet",
"value": "Panda"
}
]
}
}Response
OK
Example response
{
"id": "iMymdDd9XFD3HyxP5VD67Q",
"name": "Blank",
"date_created": "2021-06-17T15:51:13.226974Z",
"date_modified": "2021-06-17T15:51:13.326974Z",
"version": "2",
"content_date_modified": "2021-06-17T15:51:13.426974Z"
}Changes
- info
added the new optional request property
/////
- info