DocsAutomator API
DocsAutomator offers a powerful REST API to create documents from anywhere and list, create, update and delete your DocsAutomator automations.
Last updated
DocsAutomator offers a powerful REST API to create documents from anywhere and list, create, update and delete your DocsAutomator automations.
Last updated
DocsAutomator's API allows you to generate documents programmatically from code. In addition, it offers endpoints to perform all CRUD actions on automations (create, read, update, delete) as well as listing placeholders of documents, copying a Google Doc tempate with code and more.
The API can be utilised to add a performant document creation solution into any software. If you have any questions, please reach out via chat or to support@docsautomator.co.
If you haven't created a template yet, please start with the guide here: Google Doc Template Guide
DocsAutomator uses API keys for authentication. The API key is passed like so:
The API will send descriptive error responses for a variety of errors that can occur during document creation requests. Please find the most common errors listed below:
Please make sure you're passing the correct API key. Otherwise, you'll receive the following error:
This endpoint triggers document creation as a GET request. Successful requests don't receive a JSON response, just a status 200 (if you need the PDF or Google Doc URL as a response, please use the POST request below). This works for Airtable and ClickUp only and you will have to pass the Airtable Record ID or ClickUp Task ID when making a request. Error messages are returned as JSON.
API key for authentication
The ID of the document
Record ID for Airtable
Task ID for ClickUp
Successful response
This endpoint triggers document creation as a POST request. For successes, you will receive a JSON response with the URL of the created PDF and optionally the url of the Google Doc (if enabled in your automation). Error messages are returned as JSON as explained above under 'Error Messages'.
Content type header
application/json
Authorization header with Bearer token
Bearer {apiKey}
The ID of the document
The name of the generated document (data source API only)
Record ID for Airtable (Airtable only — data not required)
Task ID for ClickUp (ClickUp only — data not required)
Placeholders data for the template (data source API only)
Document created successfully