Gets all distribution threads.
Permissions
---- Permissions:INTEGRATOR,BOT ----
Request Parameters
| Parameter | Type | Description | 
fromId  | long (optional) | The search will be performed with a thread ID greater than the specified one | 
page | long | Page number, default = 0 | 
size | long | Page size, default = 1000 | 
HTTP Request
GET /api/v1/distribution-threads?fromId=1 HTTP/1.1 Authorization: Bearer <integrator_token> Host: localhost:8080
Response Parameters
| Parameter | Type | Description | 
thread.id | long | Internal thread ID in edna Chat Center | 
thread.externalClientId | string | Client ID in an external system | 
thread.campaign | string | Mass distribution broadcast | 
thread.createdAt | date | Date when the thread was created | 
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: 396
{
    "threads": [
        {
            "id": 1,
            "externalClientId": "ad750674-f0e5-4398-b902-87075a72d16a",
            "campaign": "distribution threads campaign",
            "createdAt": "2022-02-04T11:58:36+04:00"
        },
        {
            "id": 2,
            "externalClientId": "6c139008-f288-463b-ba1f-a1a93ac2c7b5",
            "campaign": "distribution threads campaign",
            "createdAt": "2022-02-04T11:58:36+04:00"
        }
    ]
}