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.eyJzdWIiOiI1MSIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTczNzU1MTU1MCwiZXhwIjoxNzQwMTQzNTUwLCJqdGkiOiI4Mjg1NzRhMS1lMjg5LTQ3ZTItOTdhYS03ZDA2NjRhOTdjNmYifQ.0A0XUslm2QZ8mrlIqBnkAl16Sj2ZNBfdWYsyXqxVcK4
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/"eb02f329f44bc2ef7b0d56c23211ee1c"
cache-control: max-age=0, private, must-revalidate
x-request-id: fa9a29de-8942-457d-b0a1-5cecd8d6f85e
x-runtime: 0.011114
content-length: 205

Body

{
  "chats": [
    {
      "id": 15,
      "topic": {
        "id": 13,
        "image": null,
        "title": "Wiza-Jacobi"
      },
      "topic_type": "User",
      "unread": 0
    },
    {
      "id": 13,
      "topic": {
        "id": 7,
        "number": 48268450,
        "title": "Human Designer"
      },
      "topic_type": "Job",
      "unread": 0
    }
  ]
}