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.eyJzdWIiOiI1MSIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTc1MzI2NjE2OCwiZXhwIjoxNzU1ODU4MTY4LCJqdGkiOiI3MzQyYzZkOS0xNDI4LTRlOTAtYTYzYi0xY2FiNmJmOWFjZGYifQ.E_BTrdh7gtO6TOgQAfsDnj5pNUBuVgbYa5O2DWPJo0w
Host: example.org
Cookie:
Query Parameters
{}=
Body
{
}
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/"a6de3f7ae836226705c8bf7779c6c7ad"
cache-control: max-age=0, private, must-revalidate
x-request-id: 89537d8c-2db5-404f-96a1-4a3737ca4135
x-runtime: 0.021941
content-length: 220
Body
{
"chats": [
{
"id": 15,
"topic": {
"id": 13,
"image": null,
"title": "Erdman, Effertz and Lemke"
},
"topic_type": "User",
"unread": 0
},
{
"id": 13,
"topic": {
"id": 7,
"number": 83600918,
"title": "Sales Assistant"
},
"topic_type": "Job",
"unread": 0
}
]
}