---
title: "Get all channels"
method: GET
path: "/v2/chats"
tags: ["Chat"]
---

# Get all channels

`GET /v2/chats`

## Request

- Base URL: `https://api.sandbox.eu.bandyer.com`
- URL: `https://api.sandbox.eu.bandyer.com/v2/chats`
- Auth: API key in header `apikey`

Get a list of channels.

## Query parameters

- `participants` string
- `offset` integer
- `limit` integer
- `from` string, date-time
- `to` string, date-time

## Response `200`

- object
  - `offset` integer: The number of items to skiped before starting to collect the result set.
  - `limit` integer: The numbers of items to returned.
  - `has_more` boolean: Indicates is there more values.
  - `count` integer: Total number of values returned.
  - `channels` object[]
    - `id` string: Channel id.
    - `participants` string[]
    - `last_message` object
      - `message_id` string: Message id.
      - `body` string: Message content. **This field is treated as PII/PHI**
      - `from` string: User id of the message sender.
      - `date` string, date-time: Date of the message.
      - `type` string: Type of the message.
    - `last_read_users_messages` object[]
      - `user_id` string: The user id.
      - `message_id` string: Message id.
    - `creation_date` string, date-time: Creation date of the message.
    - `deletion_date` string, date-time: Date of deletion of the message.

## Other responses

- `401`: Unauthorized
- `429`: Too Many request

---

[API](https://skmtc.dev/kaleyra/apis/kaleyra-video-rest-api-v2.md) - [All operations](https://skmtc.dev/kaleyra/apis/kaleyra-video-rest-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/kaleyra/apis/kaleyra-video-rest-api-v2/revisions/4424fd54ae42?raw)
