HomeFeaturesREST API

Document Generation REST API

Generate Documents Programmatically via REST API

A developer-friendly API for document generation. Send data, get back a PDF. Templates are managed by your business team in Google Docs — no code changes needed when documents change. Supports sync and async modes, webhook callbacks, and queue management.

  • Cody Nailor
  • Jesus Gazca
  • Florence Bouchat
  • Aaron Waldrip
  • Chris
  • Thembinkosi
  • Jeremy Castro
  • Shannon Bradley
  • Stefan
  • Yasin Hassanien
Trusted by 10,000+ Business Owners
DocsAutomator REST API for document generation

Developers Build Once, Business Users Own Templates

The API integration never changes — only the Google Docs template does

Hard-Coded Templates

  • Every template change requires a developer
  • HTML/PDF libraries embedded in your codebase
  • Layout and styling managed in code
  • Weeks of back-and-forth for simple wording changes
  • Developers are a bottleneck for document updates

With DocsAutomator API

  • Business users edit templates in Google Docs
  • Developers just send data — one API call
  • Layout and branding controlled by non-technical users
  • Template changes go live instantly, no deploys needed
  • Developers focus on product, not document formatting

Start automating & signing in minutes!

Unlimited testing, no credit card required. See pricing for details.

Key Benefits

Why teams choose DocsAutomator for REST API

Templates Owned by Business Users

Your team edits templates in Google Docs — no developer involvement needed. When a contract clause changes or a logo is updated, business users handle it themselves. Developers never touch templates.

Simple REST Interface

One POST request generates a document and returns the PDF URL. Bearer token auth, JSON payloads, predictable responses. Integrate in minutes, not days.

Sync & Async Modes

Synchronous mode waits for the document and returns the result. Async mode returns a job ID instantly for polling — perfect for batch workflows or serverless functions.

Webhook Callbacks

Pass a webhook URL and DocsAutomator posts the result when the document is ready. No polling needed — your system is notified the moment generation completes.

API Endpoints

Everything you need to automate documents programmatically

DocsAutomator API endpoint overview

Document Generation

POST /createDocument with your automation ID, data payload, and optional settings. Returns the PDF URL, Google Doc URL, and file ID. Supports line items, conditional rendering, and line deletions.

Automation Management

Full CRUD: GET /automations to list, POST /createAutomation to create, PUT /updateAutomation to modify, DELETE /deleteAutomation to remove. Manage your entire document workflow via code.

Template Operations

GET /listPlaceholders to extract all placeholders from a template. POST /duplicateGoogleDocTemplate to copy templates programmatically. Inspect and manage templates without opening Google Docs.

Queue & Job Tracking

GET /job/:jobId to check job status (waiting, active, completed, failed) with progress percentages. GET /queue/stats for workspace queue overview. Full visibility into async operations.

Start automating & signing in minutes!

Unlimited testing, no credit card required. See pricing for details.

How it works

Get started in minutes

1

Create a Template & Automation

Your business team designs the document template in Google Docs. A developer creates an automation in DocsAutomator, sets the data source to "API", and copies the automation ID and API key.
Setting up an API automation in DocsAutomator
2

Send a POST Request

Send a POST to /createDocument with your automation ID and a JSON data payload. Include field values, line items, and optional settings like webhookUrl or async mode.
Sending an API request to generate a document
3

Receive Your Document

Get back the PDF URL, Google Doc URL, and file ID in the response. In async mode, poll the job endpoint or receive a webhook when the document is ready.
Receiving the generated document from the API

Learn more in our Knowledge Base

Get detailed guides, field references, and further information about rest api.
Open Knowledge Base

Start automating & signing in minutes!

Unlimited testing, no credit card required. See pricing for details.

Use Cases

Popular ways teams use REST API

SaaS Document Generation

Embed document generation in your own product. Your users trigger documents from your UI, DocsAutomator renders the PDF, and your ops team manages the templates in Google Docs without any code changes.

Scheduled Report Generation

Trigger batch document creation from a cron job or scheduled task. Generate monthly invoices, weekly reports, or daily summaries programmatically without any manual intervention.

Custom Workflow Integration

Integrate document generation into any custom workflow — CI/CD pipelines, internal tools, or serverless functions. Any system that can make HTTP requests can generate documents.

Automated Signing Flows

Generate a contract via API and trigger e-signatures in a single request. Receive signing links in the response for embedding in your own UI, or let DocsAutomator email the signers directly.

and many more...

What customers are saying about us

Read what hundreds of happy customers are saying about DocsAutomator

I've just been looking for this app for weeks. DocsAutomator simply outperforms any competitor out there. I've tried almost every possible way to generate PDF from Airtable, and none offer half of the capacities DocsAutomator does.

Foulques de Moncade
Foulques de Moncade

DocsAutomator is great to generate on the fly PDF documents. We use it for several applications. it's easy to implement and great to use. I can highly recommend it.

Samuel
Samuel

Found DocsAutomator at the perfect time. Excited to see the ways that it saves me, and our company, time. Super simple to set up and use. Customer service was PROMPT, thorough, and helpful when I ran into some issues.

Cody Nailor
Cody Nailor

Start automating & signing in minutes!

Unlimited testing, no credit card required. See pricing for details.

Developer Experience

Built for developers who value simplicity and reliability

Authenticate with a Bearer token in the Authorization header. Generate API keys in your DocsAutomator dashboard. Each key is scoped to a workspace with configurable rate limits.

Pass line item data as JSON arrays with a "children" key for nesting. Up to 3 levels deep. No special syntax — just structured JSON that maps to your template's table rows.

500 requests per 15 minutes per API key. Queue an unlimited number of jobs per workspace with 5 parallel workers. Overage pricing available on all paid plans so you never hit a hard wall.

Documents generated via API can automatically trigger e-signature workflows. The response includes signing session ID, signing links, and status. Build fully automated signing flows from your own application.

Developer experience with DocsAutomator API

Start automating & signing in minutes!

Unlimited testing, no credit card required. See pricing for details.

API-First, But Works with Everything

Use the REST API alongside any of our native integrations

AirtableGoogle SheetsGoogle FormsGlideSoftrSmartSuiteNolocoClickUpZapiern8nMakeAPIMCPAirtableGoogle SheetsGoogle FormsGlideSoftrSmartSuiteNolocoClickUpZapiern8nMakeAPIMCP

Frequently Asked Questions

Start automating & signing in minutes!

Unlimited testing, no credit card required. See pricing for details.

Teams using the DocsAutomator API:

Ready to generate documents via API?

Join 10,000+ businesses automating their document workflows

  • Cody Nailor
  • Jesus Gazca
  • Florence Bouchat
  • Aaron Waldrip
  • Chris
  • Thembinkosi
  • Jeremy Castro
  • Shannon Bradley
  • Stefan
  • Yasin Hassanien
Trusted by 10,000+ Business Owners
Test for free

Unlimited testing, no credit card required