
Docs
Version 1.0.0
DataWise Document Exchange
API v1.0.0
Transform your document workflows with a powerful API that handles document generation, conversion, and e-signatures
The DataWise Document Exchange API is your all-in-one solution for programmatic document generation. Upload DOCX templates with dynamic placeholders, inject data and images, generate tables from arrays, convert to PDF, add legally-binding e-signatures, and merge multiple PDFs - all through a single powerful endpoint.
These are just a few examples - the API can handle any document automation need!
Automate invoice creation with dynamic pricing tables and customer data
Generate contracts and collect signatures without manual intervention
Create personalized certificates at scale for courses and events
Generate dynamic reports with tables, charts, and real-time data
Create professional proposals and quotes with custom branding
https://api.datawise.app/api/datawise_document_exchangeAll document generation, conversion, and e-signature operations are performed through this single endpoint.
Replace placeholders in DOCX templates with dynamic data using simple [[variable]] syntax
Dynamically insert images with custom sizing and positioning using [[%imageTag]] markers
Generate tables and lists from array data using [[#arrayName]] syntax for dynamic content
Add legally binding e-signatures with multi-signer support and status tracking
Combine multiple PDFs in a specified order with the &structure parameter
Go to https://go.datawise.app and sign up for a free account. Then create your first application to get an API key.
Create a DOCX template with placeholders like [[firstName]], [[%logo]] for images, and [[#items]] for loops.
Send your template file (ddx_template), dynamic data parameters, and output format (ddx_outputFormat) to the API endpoint with your API key.
Get back your dynamically generated document as DOCX or PDF, with all placeholders filled, images inserted, and tables generated - ready for distribution or signature collection.
multipart/form-dataInclude your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEYcurl -X POST https://api.datawise.app/api/datawise_document_exchange \ -H "Authorization: Bearer YOUR_API_KEY" \ -F "ddx_template=@template.docx" \ -F "ddx_outputFormat=pdf" \ -F "firstName=John" \ -F "lastName=Doe"
Returns: ArrayBuffer (binary data representing the generated DOCX or PDF file)
// Response object properties
{
status: 200,
statusText: 'OK',
headers: Headers { 'content-type': 'application/octet-stream', ... },
body: ReadableStream,
ok: true
}
// Access the document data
const documentBuffer = await response.arrayBuffer();
// Save or process the binary document data{
"status": "success",
"signatureRequestId": "sig_xyz789",
"signers": [
{
"email": "john@example.com",
"status": "pending"
}
],
"documentUrl": "https://api.datawise.app/sign/xyz789"
}Returns: Response object with error details in JSON format. Error message structure may vary depending on the type of error.
// Response object properties
{
status: 400,
statusText: 'Bad Request',
headers: Headers { 'content-type': 'application/json', ... },
body: ReadableStream,
ok: false
}
// Parse the error message
const errorData = await response.json();
// errorData example:
{
error: {
code: 'VALIDATION_ERROR',
message: 'Validation error description',
details: { errorCode: 'VALIDATION_ERROR' },
timestamp: '2025-10-02T16:27:54.846Z',
correlationId: '6a4kf9nkepp7'
}
}| Prefix | Purpose | Example |
|---|---|---|
| None | Standard dynamic data | firstName=John |
| % | Dynamic images | %logo_200x100=image.png |
| # | Loops/Arrays | #products=[...] |
| & | PDF Merging | &cover=file.pdf |
| ddx_ | System parameters | ddx_template / ddx_outputFormat |
| ddxE_ | E-signature | ddxE_signers / ddxE_senderEmail |
Ready to integrate?
© Copyright 2026, Datawise Document Exchange.