Documents
Create a document
Triggers document generation from an automation template (Google Doc or PDF). Supports sync mode (waits for result) and async mode (returns a job ID for polling). The response includes PDF and optional Google Doc URLs.
When the automation has e-signatures enabled and the template contains e-sign placeholders, a signing session is automatically created and included in the response.
post/createDocument
Request body
Example request
{
"docId": "abc123",
"data": {
"customer_name": "Acme Corp",
"invoice_number": "INV-2025-001",
"invoice_date": "2025-01-15",
"due_date": "2025-02-15",
"subtotal": "$5,500.00",
"tax": "$495.00",
"total": "$5,995.00"
},
"documentName": "Invoice INV-2025-001",
"webhookParams": {
"orderId": "ORD-123",
"source": "api"
},
"existingPdfs": [
"https://example.com/terms-and-conditions.pdf"
],
"docTemplateLink": "https://docs.google.com/document/d/your-template-id/edit"
}Response
Document created successfully (sync mode)
Example response
{
"message": "success"
}Changes
No recorded changes to this endpoint across all 1 revision of this API.