---
updatedAt: 2025-07-15T16:28:15.000Z
agentTools:
  projectIndex: https://developers.kaleyra.io/llms.txt
---

# Get all channels

Get a list of channels.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Kaleyra Video REST API v2",
    "version": "2.0.0",
    "description": "Kaleyra Video Api v2.0\n"
  },
  "servers": [
    {
      "url": "https://{base_url}",
      "variables": {
        "base_url": {
          "default": "api.sandbox.eu.bandyer.com"
        }
      }
    }
  ],
  "tags": [
    {
      "name": "Chat"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "paths": {
    "/v2/chats": {
      "get": {
        "summary": "Get all channels",
        "description": "Get a list of channels.",
        "operationId": "video-v2-channel-getAll",
        "tags": [
          "Chat"
        ],
        "parameters": [
          {
            "name": "participants",
            "description": "User ids of participants, can be single user id or user ids of both participants seperated by a comma(,).",
            "in": "query",
            "schema": {
              "type": "string",
              "examples": [
                "usr_1,usr_2",
                "usr_1"
              ]
            }
          },
          {
            "in": "query",
            "name": "offset",
            "description": "The number of items to skip before starting to collect the result set",
            "schema": {
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "integer"
            },
            "description": "The numbers of items to return"
          },
          {
            "in": "query",
            "name": "from",
            "description": "Date value only days in YYYY-MM-DD",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "in": "query",
            "name": "to",
            "description": "Date value only days in YYYY-MM-DD",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "type": "object",
                      "properties": {
                        "offset": {
                          "type": "integer",
                          "description": "The number of items to skiped before starting to collect the result set."
                        },
                        "limit": {
                          "type": "integer",
                          "description": "The numbers of items to returned."
                        },
                        "has_more": {
                          "type": "boolean",
                          "description": "Indicates is there more values."
                        },
                        "count": {
                          "type": "integer",
                          "description": "Total number of values returned."
                        }
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "channels": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Channel id."
                              },
                              "participants": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "description": "User id of participants."
                                }
                              },
                              "last_message": {
                                "type": "object",
                                "properties": {
                                  "message_id": {
                                    "type": "string",
                                    "description": "Message id."
                                  },
                                  "body": {
                                    "type": "string",
                                    "description": "Message content. **This field is treated as PII/PHI**"
                                  },
                                  "from": {
                                    "type": "string",
                                    "description": "User id of the message sender."
                                  },
                                  "date": {
                                    "type": "string",
                                    "description": "Date of the message.",
                                    "format": "date-time",
                                    "examples": [
                                      "2023-01-01T00:00:00Z"
                                    ]
                                  },
                                  "type": {
                                    "type": "string",
                                    "description": "Type of the message."
                                  }
                                }
                              },
                              "last_read_users_messages": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "user_id": {
                                      "type": "string",
                                      "description": "The user id."
                                    },
                                    "message_id": {
                                      "type": "string",
                                      "description": "Message id."
                                    }
                                  }
                                }
                              },
                              "creation_date": {
                                "type": "string",
                                "description": "Creation date of the message.",
                                "format": "date-time",
                                "examples": [
                                  "2023-01-01T00:00:00Z"
                                ]
                              },
                              "deletion_date": {
                                "type": "string",
                                "description": "Date of deletion of the message.",
                                "format": "date-time",
                                "examples": [
                                  "2023-01-01T00:00:00Z"
                                ]
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too Many request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "apikey"
      }
    }
  }
}
```