PDF ExportList PDF templates

List PDF templates

Returns the PDF templates an export can print with, the default first. Pass a template's id as template to POST /exports/pdf. A template sets the PDF's paper, cover page, header image, page numbers, footer text, watermark, fonts and colours. Templates are designed in the dashboard, in the export dialog under Settings, Exports; they cannot be created or changed through the API.

Listing templates needs an admin key, on the Professional or Enterprise plan.

curl -X GET "https://api.documentationai.app/api/v1/exports/pdf/templates" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "templates": [
    {
      "id": "9d2e6a70-3c1b-4f58-a7e4-6b5c4d3e2f1a",
      "name": "Customer handover",
      "isDefault": false
    }
  ]
}
GET
/exports/pdf/templates
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

API key generated from the Documentation.AI dashboard (Settings → API Keys). Pass as Authorization: Bearer dai_...

API key generated from the Documentation.AI dashboard (Settings → API Keys). Pass as Authorization: Bearer dai_...
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. API key generated from the Documentation.AI dashboard (Settings → API Keys). Pass as Authorization: Bearer dai_...

Responses

templatesarray