Skip to content

Получить сообщения обращения

Request

Основной способ пагинации — cursor: первый запрос выполняется без before_id, следующий — с next_before_id из ответа. offset сохранён для обратной совместимости и не может использоваться вместе с before_id. В админском представлении сообщения поддержки содержат real_sender_id, real_sender_first_name и real_sender_last_name.

Security
bearerAuth or jwtCookie
Path
dialogIdinteger, (int64), >= 1required

Идентификатор приватного диалога пользователя с поддержкой.

Query
before_idinteger, (int64), >= 1
offsetinteger, >= 0
limitinteger, [ 1 .. 100 ]
Default:50
curl -i -X GET \
  'https://felmee.com/api/admin/support/chats/{dialogId}/messages?before_id=1&offset=0&limit=50' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Сообщения успешно получены

Bodyapplication/json
codeErrorstring or nullrequired

Устаревший camelCase-alias поля error_code; при ошибке оба поля содержат одинаковое значение.

successbooleanrequired

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

messagestringrequired

Человекочитаемое описание результата

error_codestring or null(ERROR_CODE)required

Код ошибки. Для успешных ответов всегда null.

Enum:"INVALID_BODY""INVALID_DATE""invalid_body""unauthorized""not_found""slot_unavailable""conflict""BUSINESS_INACTIVE""INSUFFICIENT_FUNDS""REQUISITES_REQUIRED"
dataobject or null(SupportMessagePage)required

Полезная нагрузка. Может быть объектом, массивом или null.

Response
{ "success": true, "message": "Support messages retrieved successfully", "codeError": null, "error_code": null, "data": { "messages": [], "offset": null, "limit": 50, "has_more": false, "next_before_id": null } }