List the available Template types

GET/api/templates

Discovery endpoint: the template types this API understands and how many templates of each type exist. Every other templates endpoint takes one of these type values.

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area
curl -X GET "https://yoursite.com/api/templates" \
  -H "authtoken: YOUR_API_TOKEN"

Success-Response:

HTTP/1.1 200 OK
[
  { "type": "email", "label": "email template", "total": 47, "path": "/api/templates/email" },
  { "type": "ticket", "label": "ticket template", "total": 3, "path": "/api/templates/ticket" },
  { "type": "contract", "label": "contract template", "total": 2, "path": "/api/templates/contract" },
  { "type": "proposal", "label": "proposal template", "total": 2, "path": "/api/templates/proposal" }
]
MethodGET
Path/api/templates
GroupTemplates
Sincev1.0.0
Defined inRestApi/Controllers/TemplatesController.php