List message templates

The email templates your organization has written, newest first. Only your own appear here. Our standard templates, which are used whenever you have not written your own, are not listed. Requires the `notifications.templates.read` permission.

GET
/messages/templates
AuthorizationBearer <token>

The access token returned after a successful sign-in, sent as Authorization: Bearer <access_token>.

It identifies the person and the organization they are working in, and it lasts about fifteen minutes. When it runs out, use their refresh token at POST /auth/refresh-token instead of asking them to sign in again.

In: header

Query Parameters

id?string

Return only the resource with this identifier. Equivalent to fetching it by path, but usable together with the other list filters.

limit?integer

How many items to return in one page. The default and the maximum are both 25; a larger value is rejected with 400.

Default25
Formatint64
Range1 <= value <= 25
next?string

Cursor for the next page, taken verbatim from the next field of the previous response. Keep every other query parameter the same between pages: sortBy and order are part of what the cursor means. An absent or empty next in a response means there are no more pages.

The value is opaque. Do not parse it or build one yourself.

autocomplete?string

Search the endpoint's supported text and identifier fields. Matching may be an exact identifier lookup or a case-insensitive prefix search, depending on the resource. Alphanumeric characters only.

order?string

Sort direction. Defaults to desc, newest first.

Default"desc"
Value in"asc" | "desc"
sortBy?string

Field used to sort the result. Supported fields depend on the endpoint; use when_created for chronological ordering where it is available. The default is the resource identifier, and identifiers break ties so cursor paging stays stable.

language?string

Return only templates for this language.

Value in"en" | "es" | "fr" | "de" | "it" | "pt" | "ru"
system?string

Return only templates for this channel.

Value in"email" | "sms" | "push"
type?string

Return only templates for this action type.

when_created[$gt]?string

Created strictly after this instant.

Formatdate-time
when_created[$lt]?string

Created strictly before this instant.

Formatdate-time
when_created[$gte]?string

Created at or after this instant.

Formatdate-time
when_created[$lte]?string

Created at or before this instant.

Formatdate-time

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api.dual.network/messages/templates"
{
  "templates": [
    {
      "id": "665f1c2d4b1a2c3d4e5f6ad0",
      "name": "Ticket ready",
      "action_type": "custom",
      "system": "email",
      "language": "en",
      "title": "Your ticket {{.ticket}} is ready",
      "content": "<p>Hello {{.first_name}}, your ticket is ready.</p>",
      "content_type": "html",
      "when_created": "2026-02-20T12:00:00Z",
      "when_modified": "2026-02-20T12:00:00Z"
    }
  ]
}
{
  "code": 3,
  "message": "Key: 'limit' Error:Field validation for 'limit' failed on the 'lte' tag"
}

{
  "code": 16,
  "message": "no auth provided"
}

{
  "code": 7,
  "message": "forbidden"
}
{
  "code": 8,
  "message": "too many requests"
}
{
  "code": 13,
  "message": "internal error"
}