Skip to content
DraftPrism

Developers

Document generation for your stack

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.

API integration · Illustrative preview

POST /api/v1/generations

{
  "templateId": "tmpl_loan",
  "data": {
    "customerName": "Asha Mehta",
    "agreementNumber": "LA-20481",
    "loanAmount": 1250000
  },
  "mode": "ASYNC"
}
Illustrative interface preview using sample data. Not a live product screenshot.

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).

Single document generation

Submit a template id and structured data payload to generate one document. Choose sync or async modes where supported by the API.

Bulk generation

Send bulk document arrays through the v1 bulk endpoint for higher-volume jobs processed by workers.

Status polling

Async jobs expose status endpoints for polling. Document-completion webhooks are not part of the current API surface.

Integration use cases

  • Generate customer contracts from your CRM or loan system
  • Produce invoices after order completion events
  • Batch overnight statement runs from warehouse exports
  • Offer white-label document downloads inside your SaaS

Exact endpoints, payloads, rate limits, and error codes are defined in the OpenAPI document linked above—not duplicated here.

Start generating clearer documents

Create templates, connect your data, and generate professional DOCX and PDF files with DraftPrism.