API-key authentication
Create keys in the product Integrations area. Call the external API with Authorization bearer and/or x-api-key headers. Access depends on plan entitlements (api_access).
Developers
Embed DraftPrism behind your product or operations systems with a versioned REST API. Prepare templates in the product—including AI-assisted drafting when enabled—then generate documents programmatically. Authoritative schemas live in OpenAPI.
POST /api/v1/generations
{
"templateId": "tmpl_loan",
"data": {
"customerName": "Asha Mehta",
"agreementNumber": "LA-20481",
"loanAmount": 1250000
},
"mode": "ASYNC"
}Create keys in the product Integrations area. Call the external API with Authorization bearer and/or x-api-key headers. Access depends on plan entitlements (api_access).
Submit a template id and structured data payload to generate one document. Choose sync or async modes where supported by the API.
Send bulk document arrays through the v1 bulk endpoint for higher-volume jobs processed by workers.
Async jobs expose status endpoints for polling. Document-completion webhooks are not part of the current API surface.
Exact endpoints, payloads, rate limits, and error codes are defined in the OpenAPI document linked above—not duplicated here.
Create templates, connect your data, and generate professional DOCX and PDF files with DraftPrism.