Get Open Threads

Gets a list of open threads with their details.

Permissions

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

Curl Example

$ curl 'http://localhost:8080/api/v1/threads?page=0&size=2' -i

HTTP Request

GET /api/v1/threads?page=0&size=2 HTTP/1.1
Host: localhost:8080

Example of a Successful HTTP Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
Content-Length: 1015
[
    {
        "id": 152,
        "status": "NEW",
        "startTime": "2022-02-04T07:59:05.517Z",
        "stateChangeTime": "2022-02-04T07:59:05.517Z",
        "unread": 2,
        "unanswered": 2,
        "currentAgent": 1,
        "currentAgentLogin": "operator1",
        "lastAgent": 2,
        "lastAgentLogin": "operator2",
        "channel": 2,
        "clientId": 1000,
        "clientExternalId": "ACC1234000567",
        "clientName": null,
        "threadUrl": "http://threads.im/arm/thread/100",
        "tags": [],
        "info": {
            "key": "value"
        }
    },
    {
        "id": 167,
        "status": "REASSIGNED",
        "startTime": "2022-02-04T07:59:05.517Z",
        "stateChangeTime": "2022-02-04T07:59:05.517Z",
        "unread": 0,
        "unanswered": 0,
        "currentAgent": 3,
        "currentAgentLogin": "operator3",
        "lastAgent": 4,
        "lastAgentLogin": "operator4",
        "channel": 1,
        "clientId": 567,
        "clientExternalId": "ACC1234000123",
        "clientName": null,
        "threadUrl": "http://threads.im/arm/thread/200",
        "tags": [
            "1",
            "2"
        ],
        "info": {}
    }
]