Шаблоны

Список шаблонов (устаревший)

Возвращает пользовательские шаблоны писем.

get/v1/public/templates

Request

  • Base URL: https://api.rusender.ru/api
  • URL: https://api.rusender.ru/api/v1/public/templates
  • Auth: HTTP bearer

Query parameters

namestring
Example:welcome

Поиск по имени шаблона (подстрока).

Response

Список шаблонов.

okboolean required

Флаг успешного выполнения.

Example response

{
  "ok": true,
  "data": {
    "items": [
      {
        "id": 100,
        "name": "Welcome email",
        "type": "html",
        "thumbnail": "https://cdn.example.com/thumb/100.png",
        "createdAt": "2026-01-15T10:30:00.000Z",
        "updatedAt": "2026-03-01T14:00:00.000Z",
        "html": "<html><body>Hello!</body></html>",
        "text": "Hello!"
      }
    ]
  },
  "meta": {
    "requestId": "550e8400-e29b-41d4-a716-446655440000",
    "timestamp": "2026-03-05T12:00:00.000Z",
    "pagination": {
      "page": 1,
      "limit": 20,
      "totalItems": 150,
      "totalPages": 8
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.