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

Retrieve a stored template

Returns a single stored template by its identifier, including its full template source. Deactivated records are returned as well.

get
/templates/{id}/
Authorizations
AuthorizationstringRequired

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

Path parameters
idintegerRequired

The unique identifier of the stored template.

Responses
200

The requested stored template.

application/json

A stored template returned by the API. The full template source is part of the response, and deactivated records are returned in the same shape as active ones.

pkintegerRead-onlyRequired

Unique identifier of the stored template.

namestring · max: 100Required

The path of the template being overridden, as it was stored — without surrounding whitespace and without a leading slash.

Example: emails/orders/completed.html
contentstringRequired

The template source, returned exactly as it was stored.

Example: {% extends "emails/base.html" %} {% block content %}<h1>Your order is complete.</h1>{% endblock %}
languagestringRequired

The language the record applies to, as one of the language codes configured for the deployment.

Example: tr-tr
is_activebooleanRequired

Whether the record is used when the template is rendered. false on a record that was deleted through this API.

Example: true
sitesinteger[]Required

Identifiers of the sites the record is bound to. Empty on a record that is bound to no site, which is never rendered.

Example: [1]
created_datestring · date-timeRead-onlyRequired

When the record was created.

modified_datestring · date-timeRead-onlyRequired

When the record was last modified.

get/templates/{id}/
GET /api/v1/remote/1/templates/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "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?