Skip to main content

List of templates

An example request to get a list of templates for sending messages to a user.

URI: /api/json.php

All requests to API are sent in JSON format using the POST method.

Header parameters

Requests must contain header Content-Type: application/json, otherwise, the request will be considered invalid even if it has valid JSON.

Request example

{
"auth": "bb56a4369eb19***cfec6d1776bd25",
"data": [
{
"type": "template/list"
}
]
}

Response examples

HTTP Status Code: 200
Content Type: JSON application/json

{
"success": true,
"data": [
{
"success": true,
"data": [
{
"id": 1,
"name": "First",
"template": "Template text",
"count": "13 / 1",
"datetime": "2022-05-03T14:21:17+03:00"
}
]
}
]
}