API & WebhooksDocument Templates

Document Templates

List document templates and get template metadata via the API.

Document Templates API

Read document template metadata. Template content is not exposed via the API. All endpoints require an API token with the templates.view ability.


List Templates

GET /api/v1/document-templates — Permission: templates.view

Query Parameters

ParameterTypeRequiredDescription
typestringNoFilter by type: invoice, proposal, contract, quote, receipt
searchstringNoSearch by template name
per_pageintegerNoResults per page, 1–100 (default: 25)

Example Request

curl -X GET "https://your-domain.com/api/v1/document-templates?type=invoice" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"

Example Response

{
  "data": [
    {
      "id": 5,
      "name": "Standard Invoice",
      "type": "invoice",
      "description": "Default invoice template with line items and payment terms",
      "is_default": true,
      "is_active": true,
      "created_at": "2025-01-05T10:00:00.000000Z",
      "updated_at": "2025-03-12T14:00:00.000000Z"
    }
  ],
  "meta": { "current_page": 1, "last_page": 1, "per_page": 25, "total": 1 },
  "links": { "first": "...", "last": "...", "prev": null, "next": null }
}

Get Template

GET /api/v1/document-templates/{id} — Permission: templates.view

Returns the same shape as a single item in the list response. Template content (blocks, settings) is not included.

Was this article helpful?