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.eyJzdWIiOiI1MSIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTc2MzYyNjM2MSwiZXhwIjoxNzY2MjE4MzYxLCJqdGkiOiJiZmRjZjMwZS1kYWRjLTQzNWYtYWFiZS0yOTljYzIxMjZjMWQifQ.62iwmHPlQaZv8LqcAr3evMb8zIJwMZuLjfEf4MNYaq8
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/"b3cbd3d84f09d019710fb4f6c322bf91"
cache-control: max-age=0, private, must-revalidate
x-request-id: e9bc173b-f2d1-4639-bc41-e4803e6ee2dd
x-runtime: 0.013271
content-length: 231
Body
{
"chats": [
{
"id": 15,
"topic": {
"id": 13,
"image": null,
"title": "Wisozk, Spencer and Kuphal"
},
"topic_type": "User",
"unread": 0
},
{
"id": 13,
"topic": {
"id": 7,
"number": 81254415,
"title": "Manufacturing Facilitator"
},
"topic_type": "Job",
"unread": 0
}
]
}