Skip to main content
POST
/
createDocument
Create Document from ClickUp
curl --request POST \
  --url https://api.docsautomator.co/createDocument \
  --header 'Content-Type: application/json' \
  --data '
{
  "docId": "<string>",
  "taskId": "<string>",
  "async": true,
  "webhookParams": {},
  "docTemplateLink": "<string>"
}
'
When your automation’s data source is set to ClickUp, you only need to pass the task ID. All field mapping, line items, and output settings are pulled from the DocsAutomator app automatically.
For setup instructions on connecting ClickUp to DocsAutomator, see the ClickUp integration guide.

Endpoint

POST https://api.docsautomator.co/createDocument

Request Body

docId
string
required
The automation ID. Find it on the automation’s settings page or via GET /automations.
taskId
string
required
The ClickUp task ID. DocsAutomator fetches all mapped fields from this task automatically.
async
boolean
default:"false"
When true, returns immediately with a jobId (HTTP 202). Poll GET /job/{jobId} for the result.
webhookParams
object
Custom parameters passed through to webhook notifications as additionalParams.
Override the automation’s Google Doc template URL for this request only.

Example

curl -X POST https://api.docsautomator.co/createDocument \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "docId": "YOUR_AUTOMATION_ID",
    "taskId": "YOUR_CLICKUP_TASK_ID"
  }'

Response

{
  "message": "success",
  "pdfUrl": "https://files.docsautomator.co/..."
}
Additional fields like googleDocUrl, savePdfGoogleDriveUrl, and e-signature fields are included depending on your automation’s configuration. See the API data source page for the full list.
Last modified on April 7, 2026