Get Distribution Threads

Gets all distribution threads.

Permissions

  ----
  Permissions:INTEGRATOR,BOT
  ----

Request Parameters

ParameterTypeDescription
fromId long (optional)The search will be performed with a thread ID greater than the specified one
pagelongPage number, default = 0
sizelongPage size, default = 1000

HTTP Request

GET /api/v1/distribution-threads?fromId=1 HTTP/1.1
Authorization: Bearer <integrator_token>
Host: localhost:8080

Response Parameters

ParameterTypeDescription
thread.idlongInternal thread ID in edna Chat Center
thread.externalClientIdstring Client ID in an external system
thread.campaignstringMass distribution broadcast
thread.createdAtdateDate 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"
        }
    ]
}