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

Разрешения

----
Permissions:INTEGRATOR,OPERATOR,SUPERVISOR
----

Пример curl

$ curl 'http://localhost:8080/api/v1/threads?statuses=ASSIGNED,CLOSED&page=0&size=5&agentLogins=operator11,operator15' -i

HTTP запрос

GET /api/v1/threads?statuses=ASSIGNED,CLOSED&page=0&size=5&agentLogins=operator11,operator15 
HTTP/1.1

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

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
Content-Length: 1016
[
    {
        "id": 152,
        "status": "CLOSED",
        "startTime": "2022-07-14T08:51:21.781Z",
        "stateChangeTime": "2022-07-14T08:51:21.781Z",
        "unread": 2,
        "unanswered": 2,
        "currentAgent": 11,
        "currentAgentLogin": "operator11",
        "lastAgent": 10,
        "lastAgentLogin": "operator11",
        "channel": 2,
        "clientId": 1024,
        "clientExternalId": "ACC1234000567",
        "clientName": null,
        "threadUrl": "http://threads.im/arm/thread/152",
        "tags": [],
        "info": {}
    },
    {
        "id": 167,
        "status": "ASSIGNED",
        "startTime": "2022-07-14T08:51:21.781Z",
        "stateChangeTime": "2022-07-14T08:51:21.781Z",
        "unread": 0,
        "unanswered": 0,
        "currentAgent": 15,
        "currentAgentLogin": "operator15",
        "lastAgent": 12,
        "lastAgentLogin": "operator12",
        "channel": 1,
        "clientId": 865,
        "clientExternalId": "ACC1234000304",
        "clientName": null,
        "threadUrl": "http://threads.im/arm/thread/167",
        "tags": [
            "1",
            "2"
        ],
        "info": {
            "key": "value"
        }
    }
]
Получить открытые треды
Cледующая статья Получить отфильтрованные треды