---
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

---

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