- Docs
- Api%2Freference%2Fnotifications%2FListMessagesTemplates
Retrieve a list of templates
Fetch a list of templates with optional filters like prefix, public, unpublished, and pagination using limit and next token.
AuthorizationBearer <token>
In: header
Query Parameters
id?string
Filter resources by their unique identifier
limit?integer
How many items to return at one time (max 100)
Format
int64next?string
Pagination token for retrieving the next page of results
autocomplete?string
Search term for autocomplete functionality
order?string
Sort order for the results (ascending or descending)
Value in
"asc" | "desc"sortBy?string
Field name to sort the results by
language?string
language of the template
Value in
"en" | "es" | "fr" | "de" | "it" | "pt" | "ru"system?string
Filter templates that are publicly accessible.
Value in
"email" | "sms" | "push"type?string
Filter unpublished templates.
when_created[$gt]?string
Format
date-timewhen_created[$lt]?string
Format
date-timewhen_created[$gte]?string
Format
date-timewhen_created[$lte]?string
Format
date-timeResponse Body
application/json
application/json
application/json
curl -X GET "https://api-testnet.dual.network/messages/templates"{
"templates": [
{
"id": "string",
"name": "string",
"language": "en",
"system": "email",
"action_type": "register",
"title": "string",
"project": "string",
"content": "string",
"content_type": "text",
"values": {
"property1": "string",
"property2": "string"
},
"when_modified": "2019-08-24T14:15:22Z",
"when_created": "2019-08-24T14:15:22Z"
}
],
"next": "string"
}{
"code": 0,
"message": "string",
"details": {}
}{
"code": 0,
"message": "string",
"details": {}
}