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

List email templates with their metadata

Returns every email template the platform sends, each with the metadata needed to manage it: its name, its type, the path of its body and subject templates, the dynamic variables usable inside it, and the timestamps of the stored override that backs it (if any).

type groups the templates by the message they belong to — for example order for order-related mails, account for account mails such as the password reset, and loyalty, user, promotions, tradein, wishlists or agreement for the rest. It is derived from the template path and is fixed by the platform.

subject and subject_path describe the paired subject-line template, matched to the body template by the <name>-subject.<extension> convention. They are null when a template has no paired subject template (for example, a subject template listed in its own right).

available_variables maps each dynamic variable the platform passes into that template's render context to its accessible-field schema, so an editor knows both what may be referenced and which sub-fields each variable exposes. Object variables map to a nested object of their fields (a one-element array for collections); scalar variables map to a plain placeholder.

Subject templates are not returned as their own rows; each body template carries its paired subject in subject and subject_path.

created_at and updated_at are taken from the stored template override whose name matches the path (see the Store a template endpoint). They are null when no override is stored — the template is then served from the file on disk, which carries no such timestamps.

product_data_schema at the top level describes the product-card structure that order emails can reference for each product, as a nested field schema in the same shape as a template's available_variables, so hidden or unwanted fields can be managed against a known shape.

The response is not paginated and does not accept parameters.

get
/templates/email_templates/
Authorizations
AuthorizationstringRequired

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

Responses
200

The email templates and the product-card field list.

application/json

Every email template with its metadata, plus the field list of the product-card structure order emails can reference.

get/templates/email_templates/
GET /api/v1/remote/1/templates/email_templates/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "product_data_schema": {
    "name": "...",
    "sku": "...",
    "category": {
      "name": "..."
    },
    "productimage_set": [
      {
        "image": "..."
      }
    ]
  },
  "templates": [
    {
      "name": "password_update_success",
      "type": "account",
      "path": "emails/accounts/password-update-success.html",
      "subject": "Password Update Success Subject",
      "subject_path": "emails/accounts/password-update-success-subject.html",
      "created_at": null,
      "updated_at": null,
      "available_variables": {
        "order": {
          "number": "...",
          "shipping_address": {
            "city": "..."
          },
          "orderitem_set": [
            {
              "product": {
                "name": "..."
              }
            }
          ]
        },
        "site_domain": "..."
      }
    }
  ]
}

Last updated

Was this helpful?