Перейти к основному содержимому

Получить треды по статусам и логинам агентов

    ----
Permissions:INTEGRATOR,OPERATOR,SUPERVISOR
----
Параметры запроса
ПараметрОписание

statuses

Список статусов тредов

agentLogins

Список логинов операторов, на которых назначены треды

Пример curl

$ curl 'http://localhost:8080/api/v1/threads?statuses=ASSIGNED&statuses=CLOSED&agentsLogins=operator11&agentsLogins=operator15' -i -X GET \
-H 'Authorization: Bearer <integrator_token>' \
-H 'X-Tenant-Name: local'

Пример HTTP запроса

GET /api/v1/threads?statuses=ASSIGNED&statuses=CLOSED&agentsLogins=operator11&agentsLogins=operator15 HTTP/1.1
Authorization: Bearer <integrator_token>
X-Tenant-Name: local
Host: localhost:8080

Пример успешного HTTP ответа

HTTP/1.1 200 OK
X-Request-Id: 979ca28f-29da-4e3a-a86b-b43ecf2a96a9
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 0
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 947

[ {
"id" : 6,
"status" : "CLOSED",
"startTime" : "2024-12-28T11:39:38.145Z",
"stateChangeTime" : "2024-12-28T11:39:38.145Z",
"unread" : 2,
"unanswered" : 2,
"currentAgent" : 1,
"currentAgentLogin" : "login#1",
"lastAgent" : 14,
"lastAgentLogin" : "login#14",
"channel" : 26,
"clientId" : 2,
"clientExternalId" : "2",
"clientName" : "client#2",
"threadUrl" : "http://threads.im/arm/thread/152",
"tags" : [ ],
"info" : {
, {
"id" : 7,
"status" : "ASSIGNED",
"startTime" : "2024-12-28T11:39:38.145Z",
"stateChangeTime" : "2024-12-28T11:39:38.145Z",
"unread" : 0,
"unanswered" : 0,
"currentAgent" : 1,
"currentAgentLogin" : "login#1",
"lastAgent" : 15,
"lastAgentLogin" : "login#15",
"channel" : 27,
"clientId" : 2,
"clientExternalId" : "2",
"clientName" : "client#2",
"threadUrl" : "http://threads.im/arm/thread/167",
"tags" : [ "2", "1" ],
"info" : {
"key" : "value"

]