Сегменты

Список сегментов

Возвращает пользовательские сегменты с условиями и пагинацией.

get/v1/public/segments

Request

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

Query parameters

namestring
Example:VIP

Поиск по имени сегмента (частичное совпадение без учёта регистра).

Response

Список сегментов.

okboolean required

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

Example response

{
  "ok": true,
  "data": {
    "items": [
      {
        "id": 17,
        "name": "VIP контакты",
        "applyConditionsType": "and",
        "conditions": [
          {
            "id": 101,
            "field": "contactEmail",
            "variableId": 42,
            "operator": "equal",
            "value": "vip@example.com"
          }
        ],
        "createdAt": "2026-04-01T12:00:00.000Z",
        "updatedAt": "2026-04-20T09:30:00.000Z"
      }
    ]
  },
  "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.