For the complete documentation index, see llms.txt. This page is also available as Markdown.

List stored templates

Returns a paginated list of stored templates, ordered by name ascending unless the sort parameter says otherwise.

Deactivated templates are part of the list. Filter on is_active to see only the ones that are in use.

Only the name, the active state and the site can be filtered on. A parameter that is not one of those — the language, for instance — is ignored and the unfiltered page is returned, so check the response count before assuming a filter was applied.

The full template source of every record is part of the response, which makes a page of records large. Narrow the page with limit when only the names are of interest.

get
/templates/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Query parameters
pageintegerOptional

The page number to return.

Default: 1
limitintegerOptional

The number of items to return per page.

Default: 10
sortstringOptional

Orders the results by one or more fields. Separate multiple fields with commas. Prefix a field with a hyphen (-) for descending order.

Example: -id
namestringOptional

Filter by name. The whole name must match, letter case and extension included; a partial name returns an empty page.

Example: emails/orders/completed.html
is_activebooleanOptional

Filter by active state. true returns the records that are used when a template is rendered, false the deactivated ones.

sitesintegerOptional

Filter by the identifier of a site the record is bound to. Repeat the parameter to widen the result to the records bound to any of the given sites.

Responses
200

A page of stored templates.

application/json

A paginated list of stored templates.

countintegerOptional

Total number of stored templates matching the request.

nextstring · nullableOptional

URL of the next page, or null if this is the last page.

previousstring · nullableOptional

URL of the previous page, or null if this is the first page.

get/templates/
GET /api/v1/remote/1/templates/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "count": 1,
  "next": null,
  "previous": null,
  "results": [
    {
      "pk": 1,
      "name": "emails/orders/completed.html",
      "content": "{% extends \"emails/base.html\" %}\n{% block content %}<h1>Your order is complete.</h1>{% endblock %}",
      "language": "tr-tr",
      "is_active": true,
      "sites": [
        1
      ],
      "created_date": "2026-01-01T00:00:00.000Z",
      "modified_date": "2026-01-01T00:00:00.000Z"
    }
  ]
}

Last updated

Was this helpful?