Get a template
Authorization
ApiKeyAuth AuthorizationBearer <token>
API key from Settings → API Keys.
In: header
Path Parameters
id*string
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/templates/string"{ "id": "cm4tpl8e20001js04xq2v9k3m", "name": "Invoice", "engine": "typst", "available_fields": [ { "key": "name", "type": "text", "example": "Alice" }, { "key": "amount", "type": "text", "example": "1,200" } ], "url_base": "Yx4kPz8qWm2nRv6t", "created_at": "2026-04-01T09:00:00.000Z", "updated_at": "2026-04-22T11:00:00.000Z"}List templates GET
Returns all templates in your team, ordered by creation date ascending. Use the `engine` filter to narrow to a specific template type. Templates are created and edited in the dashboard — this endpoint is read-only.
Generate URL base POST
Creates a random, opaque 16-character token for the template used to construct on-demand signed URLs. If the template already has a `url_base`, this **replaces** it and **invalidates every signed URL** that used the old token. See [On-demand URLs](/docs/api/on-demand-urls).