Operator-authored email templates
GET /email-templates
Every email the instance can send, each with its shipped body, any operator override, and the finite set of fields available to a template for that event (#795, ADR 0081 §2 as amended).
Requires system.config.read. Unlike site text this is NOT
anonymous: the shipped mail bodies are an operator concern, not
UI wording a logged-out visitor already sees.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”The template catalogue.
Every email an instance can send, each with its shipped text, any operator override, and the finite set of fields available to a template for that event (#795, ADR 0081 §2). The editor needs all three: the shipped body to show alongside, the override to edit, and the field list so an operator does not have to guess what is in scope.
object
object
The stable template name, e.g. admin_test.
Example
admin_testPlain-word summary of when this mail is sent.
The faces of this template — subject, text, and (when it has one) html.
object
Subject, text, or html.
The body this face ships with, from the embedded binary.
True when an operator override replaces the shipped body.
The operator override, present only when overridden.
The documented view-model for one event — the ONLY fields a template may reference. This set is the security boundary: a template naming anything outside it is refused at save.
object
object
Example
site_nameString or number.
Repeated groups an operator loops over with {{range .name}}…{{end}}; each row exposes its own fields.
object
Example
hitsobject
Example
site_nameString or number.
Authentication required, missing, or invalid
object
Human-readable error summary
Example
the request could not be completedExample
{ "error": "authentication required: sign in and retry with a valid session or API token"}Authenticated but missing required capabilities
object
Human-readable error summary
Example
the request could not be completed