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

List overridable email and SMS template names

Returns the names of the email and SMS templates the platform sends, grouped into email and sms. Each entry carries the template name in value and a human-readable description in label; the name is the value to store as the name of a template.

The list is fixed by the platform and is the same for every store and every language. It is not affected by which templates are already stored, and it covers only the emails and SMS messages the platform sends — a storefront page template can be overridden as well, and its name is the path of its template file.

The email group holds both the body templates and the subject-line templates of the emails. A handful of subject templates belong to both sets the group is built from and therefore appear twice; the duplicates are identical and can be ignored.

The response is not paginated and does not accept parameters.

get
/templates/choices/
Authorizations
AuthorizationstringRequired

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

Responses
200

The overridable email and SMS template names.

application/json

The names of the email and SMS templates the platform sends, grouped by channel. Each entry pairs the template name with a human-readable description of the message it belongs to.

get/templates/choices/
GET /api/v1/remote/1/templates/choices/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "sms": [
    {
      "value": "sms/orders/order-delivered.html",
      "label": "Order Delivered"
    },
    {
      "value": "sms/account/welcome.html",
      "label": "Welcome"
    }
  ],
  "email": [
    {
      "value": "emails/orders/completed.html",
      "label": "Orders Completed"
    },
    {
      "value": "emails/orders/completed-subject.html",
      "label": "Orders Completed Subject"
    }
  ]
}

Last updated

Was this helpful?