- Docs
- Api%2Freference%2Fnotifications%2FListNotificationTemplates
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.
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
Return only the resource with this identifier. Equivalent to fetching it by path, but usable together with the other list filters.
How many items to return in one page. The default and the maximum are both
25; a larger value is rejected with 400.
25int641 <= value <= 25Cursor 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.
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.
Sort direction. Defaults to desc, newest first.
"desc""asc" | "desc"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.
Return only templates for this language.
"en" | "es" | "fr" | "de" | "it" | "pt" | "ru"Return only templates for this channel.
"email" | "sms" | "push"Return only templates for this action type.
Created strictly after this instant.
date-timeCreated strictly before this instant.
date-timeCreated at or after this instant.
date-timeCreated at or before this instant.
date-timeResponse 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"
}