Templates

Generate a PDF from template with filled values (no signing)

Generates a PDF with template fields filled in using provided variables. This endpoint is for document generation only - no signing workflow is initiated.

post/api/v1/templates/{id}/generate

Request

  • Base URL: https://api.korala.ai
  • URL: https://api.korala.ai/api/v1/templates/{id}/generate
  • Auth: one of:
    • API key in header X-API-Key
    • bearer (a scheme the document does not define)

Path parameters

idstring required

Request body

templateDataobject

JSON input for Markdown/Liquid templates.

variablesobject

Variables to fill in template fields (by merge field name). For DOCX templates, these substitute {{placeholder}} tags in the document body. Falls back to default values if not provided.

Example request

{
  "variables": {
    "client_name": "Acme Corporation",
    "contract_date": "2026-01-15"
  }
}

Response

urlstring required

URL to download the generated PDF

expiresAtstring date-time required

Expiration time for the download URL

Changes

No recorded changes to this operation across all 1 revision of this API.