Document Automation
API & SDK
TurboDocx's document automation API generates a filled DOCX or PDF from a template in 1 call, using 5 published SDKs (JavaScript/TypeScript, Python, Go, PHP, Java) that all wrap the same REST API. The same API key also sends the generated document for e-signature, so a platform can create and sign a contract without a second integration.
Key Takeaways
- 1 call generates a document:
Deliverable.generateDeliverable()takes a templateId and variables, and returns a filled DOCX. - 5 published SDKs (JavaScript/TypeScript, Python, Go, PHP, Java) are built on the same REST API.
- 99.9% uptime SLA backs the API.
- $0 Free plan includes 5 documents and 5 signatures a month; paid plans start at $10/mo.
- 180,000+ downloads a month for the related open-source @turbodocx/html-to-docx package, free and independent of the paid API.
REST API
Generate documents, send signatures, and manage templates over simple HTTP endpoints.
Webhooks
Real-time notifications for signature events: sent, viewed, signed, completed, voided.
Enterprise Security
API keys, role-based access control, and audit logs for compliance.
Structured Variables
Fill templates with plain text or, for advanced templates, structured JSON for loops and conditionals.
5 Published SDKs
JavaScript/TypeScript, Python, Go, PHP, and Java, all versioned together at 0.7.0.
One Key, Two Modules
Deliverable generates documents; TurboSign sends them for signature. Same API key, same SDK install.
Install in one prompt
Skip the boilerplate. Drop the TurboDocx SDK and @turbodocx/html-to-docx into any project with our open-source Agent Skill. It detects your language and framework, installs the package, configures env vars, and writes working integration code that matches your existing patterns.
Generate a Document From a Template
The Deliverable module, straight from the official SDK examples
// npm install @turbodocx/sdk
import { Deliverable } from '@turbodocx/sdk';
Deliverable.configure({
apiKey: process.env.TURBODOCX_API_KEY,
orgId: process.env.TURBODOCX_ORG_ID,
});
const created = await Deliverable.generateDeliverable({
templateId: 'YOUR_TEMPLATE_ID',
name: 'Employee Contract - John Smith',
variables: [
{ placeholder: '{EmployeeName}', text: 'John Smith', mimeType: 'text' },
{ placeholder: '{JobTitle}', text: 'Senior Software Engineer', mimeType: 'text' },
],
});
const pdf = await Deliverable.downloadPDF(created.results.deliverable.id);Need e-signatures on that document? Same API key, same SDK: send it with the TurboSign module. Full endpoints, pricing, and code samples are on the E-Signature API page.
Need Go, PHP, or Java? Check out our full SDK documentation for all supported languages.
Browse All SDKsCore Endpoints
6 REST endpoints cover document generation end to end, plus the hand-off to signing. Base URL: https://api.turbodocx.com
| POST | /v1/deliverable |
| GET | /v1/deliverable |
| GET | /v1/deliverable/:id |
| GET | /v1/deliverable/file/pdf/:id |
| PATCH | /v1/deliverable/:id |
| POST | /turbosign/single/prepare-for-signing |
5 Published SDKs
Every SDK wraps the same REST API and ships at version 0.7.0, with a Deliverable module for documents and a TurboSign module for signatures.
JavaScript / TypeScript
npm install @turbodocx/sdkPython
pip install turbodocx-sdkPHP
composer require turbodocx/sdkGo
go get github.com/TurboDocx/SDK/packages/go-sdkJava
implementation 'com.turbodocx:turbodocx-sdk:0.7.0'Build Document Features Fast
Add document generation and e-signatures to your SaaS with 1 API key and 1 SDK install.
Need a Tailored Integration?
Most teams self-serve with the API above. If your Salesforce, SharePoint, or legacy ERP setup needs a custom document workflow built and maintained for you, our team delivers that as a tailored integration, at software pricing.
API Pricing
Automate with n8n
Connect TurboDocx to 400+ apps with our official n8n nodes. Automate document generation and signature workflows without writing code.
# Install in your n8n instance
npm install @turbodocx/n8n-nodes-turbodocxFrequently Asked Questions
Is there a free tier for the TurboDocx document automation API?
$0 to start: the Free plan includes 5 document generations and 5 e-signatures a month, plus 1,000 AI credits, no credit card required. The $10/user/month Team plan raises that to 10 documents and 15 signatures a month. The $20/user/month Pro plan gives named users unlimited document generation, signatures, and AI credits in the app.
Which SDKs does the TurboDocx API support?
5 published SDKs cover JavaScript/TypeScript, Python, Go, PHP, and Java, all built on the same REST API and versioned together at 0.7.0. Each ships a Deliverable module for document generation and a TurboSign module for e-signatures, so one install covers both. Install with npm, pip, composer, Go modules, or Maven Central.
Can the API generate DOCX and PDF documents from templates?
1 API call generates a document: Deliverable.generateDeliverable() takes a templateId and a list of variables, such as a placeholder like {EmployeeName}, and returns a filled DOCX. A second call, Deliverable.downloadPDF(), converts it to PDF. Variables accept plain text or, for advanced templates, structured JSON for loops, conditionals, and nested data.
Does the document automation API include e-signatures, or is that separate?
1 platform, 2 capabilities: the same API key and SDK generate documents with the Deliverable module and send them for signature with the TurboSign module, so a contract can be created, sent, and signed without switching tools or credentials. For endpoints, pricing, and code samples focused only on signing, see /e-signature-api.
Is TurboDocx open source?
180,000+ downloads a month on npm: @turbodocx/html-to-docx is a free, MIT-licensed package that converts HTML to Word documents in Node.js, independent of the paid API and usable without a TurboDocx account. It runs standalone in any Node.js project or alongside the TurboDocx SDK, and its source is public on GitHub.
Related Resources
Ready to Transform Your Workflow?
Get API access in minutes. Start with the free tier, scale as you grow.
Need a tailored integration into Salesforce, SharePoint, or a legacy system instead? Book a demo and our team scopes it with you.