---
title: "Fetch all chat messages of a session"
method: GET
path: "/sessions/{session_id}/chat"
tags: ["Sessions"]
---

# Fetch all chat messages of a session

`GET /sessions/{session_id}/chat`

Returns a URL to download all chat messages of the session ID in CSV format.
<!-- theme: warning -->
> #### NOTE
>
> This API is in beta and is disabled by default. [Contact us](https://dyte.io/contact) to enable it
> for your organization.

## Path parameters

- `session_id` string, required

## Response `200`

Returns all chat messages of a session.

- object
  - `success` boolean
  - `data` ChatMessage
    - `chat_download_url` string, required — URL where the chat logs can be downloaded
    - `chat_download_url_expiry` string, required — Time when the download URL will expire

## Changes

- **2025-04-04** (v2) `cb67ff854c71` — 1 breaking, 1 info
  - added the new path request parameter `session_id`
  - the endpoint scheme security `Authorization` was added to the API
- **2025-04-02** (v2) `68b9e665bfcc` — 1 warning, 1 info
  - deleted the `path` request parameter `session_id`
  - the endpoint scheme security `Authorization` was removed from the API
- **2024-11-19** (v2) `d8c5d90e84ac` — 1 breaking, 1 info
  - added the new path request parameter `session_id`
  - the endpoint scheme security `Authorization` was added to the API

[Change history](https://skmtc.dev/dyte-io/apis/dyte-rest-apis/changes/sessions/:session_id/chat/get.md)

---

[API](https://skmtc.dev/dyte-io/apis/dyte-rest-apis.md) · [All operations](https://skmtc.dev/dyte-io/apis/dyte-rest-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dyte-io/dyte-rest-apis/revisions/f62d3edd92ae/schema)
