Templates API
Deprecation notice❗️
Below APIs are deprecated and new version of APIs are available at https://dashboard.docupilot.app/api-docs/swagger-ui/
Get list of Templates
GET
https://api.docupilot.app/api/v1/templates
This endpoint allows you to get templates in home folder. You can add filter or folder query params for more desired results.
Query Parameters
folder
number
Folder ID
filter
string
Possible Values are all | trash
Headers
apikey
string
API Key
Get a Template
GET
https://api.docupilot.app/api/v1/templates/:id
This endpoint allows you to get details of each template.
Path Parameters
id
integer
Template ID
Headers
apikey
string
API Key
Create a new Template
POST
https://api.docupilot.app/api/v1/templates
This endpoint allows you to create a new template.
Headers
Content-Type
string
application/json
apikey
string
API Key
Request Body
output_file_name
string
File name for the generated document. Example : Certificate - {{name}}
folder
string
Folder ID
document_status
string
Allowed values test | active. Default : test
description
string
Description for the template
type
string
Allowed values html | docx | pptx | xlsx | fillable_pdf Default : html
title
string
Title for the template
Update a Template
PUT
https://api.docupilot.app/api/v1/templates/:id
This endpoint allows you to update a template
Headers
apikey
string
API Key
Content-Type
string
application/json
Request Body
title
string
Title for the template
description
string
Description for the template
document_status
string
Allowed values test | active
folder
string
Folder ID
output_file_name
string
File name for the generated document. Example : Certificate - {{name}}
Delete template
DELETE
https://api.docupilot.app/api/v1/templates/:id
The template will be moved to Trash and will be deleted permanently after 30 days
Query Parameters
id*
String
Template ID
Headers
apikey*
String
API Key
Add / Update Template Content
POST
https://api.docupilot.app/api/v1/templates/:id/content
This end point allows you to add or update template content.
Path Parameters
id
string
Template ID
Headers
apikey
string
API Key
Request Body
file
object
DOCX, PPTX, XlSX, Fillable_PDF file
Get Schema for a template
GET
https://api.docupilot.app/api/v1/templates/:id/schema
This endpoint allows you to get token details of the template.
Path Parameters
id
integer
Template ID
Headers
apikey
string
API Key
Merge a document
POST
https://api.docupilot.app/api/v1/templates/:id/merge
This endpoint allows you to create a new document from a template.
Path Parameters
id
string
Template ID
Headers
Content-Type
string
application/json
apikey
string
API Key
Request Body
user_email
string
John@example.com
name
string
John
The body parameters for Merge API depends on the tokens configured in the document.
Last updated