List all chats
Chats
GET chats
Endpoint
GET /api/v1/chats
Parameters
Name | Description |
---|---|
by_company | Filter by company_id (admin only) |
Request
Route
GET /api/v1/chats
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI1MSIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTc0MjQ2NDkwNSwiZXhwIjoxNzQ1MDU2OTA1LCJqdGkiOiI0NzQ5ZjViOS0xM2U1LTQ5MDMtOWExZC0zNDMxNWE4OTMyMzMifQ.OUIglzr4CJKy8EsYdL4NZNOF3zeObJvzoWdFyPJg-WA
Host: example.org
Cookie:
Query Parameters
{}=
Response
Simulated Response
Status
200
Headers
x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"5277202a6a0307901b60c60ddf993b29"
cache-control: max-age=0, private, must-revalidate
x-request-id: ecbd8c28-d9a6-4d4a-976f-bfd807b93ba7
x-runtime: 0.021019
content-length: 207
Body
{
"chats": [
{
"id": 15,
"topic": {
"id": 13,
"image": null,
"title": "Bernier LLC"
},
"topic_type": "User",
"unread": 0
},
{
"id": 13,
"topic": {
"id": 7,
"number": 11566405,
"title": "Internal Officer"
},
"topic_type": "Job",
"unread": 0
}
]
}