Chats

List all 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.eyJzdWIiOiI1MSIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTc0ODUxNjQ5NCwiZXhwIjoxNzUxMTA4NDk0LCJqdGkiOiIxYzVjMTI2My0zY2NkLTQzNzEtOTE1Zi1lM2I1MzM0OWYyZTQifQ.oxt_Q93CMcB2WBA5yGLcvrJHIAWwVyrBw7-fx2IDVZs
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/"710f51e77e6282801d6921da060c51a9"
cache-control: max-age=0, private, must-revalidate
x-request-id: c93b4ea8-1d37-4bb1-87be-d151a9722967
x-runtime: 0.011211
content-length: 217

Body

{
  "chats": [
    {
      "id": 15,
      "topic": {
        "id": 13,
        "image": null,
        "title": "Orn-Langosh"
      },
      "topic_type": "User",
      "unread": 0
    },
    {
      "id": 13,
      "topic": {
        "id": 7,
        "number": 46487872,
        "title": "Central Healthcare Analyst"
      },
      "topic_type": "Job",
      "unread": 0
    }
  ]
}