---
title: "Export conversation."
method: GET
path: "/api/v1/projects/{projectId}/conversations/{sessionId}/export"
tags: ["Conversations"]
---

# Export conversation.

`GET /api/v1/projects/{projectId}/conversations/{sessionId}/export`

## Request

- Base URL: `https://app.customgpt.ai`
- URL: `https://app.customgpt.ai/api/v1/projects/{projectId}/conversations/{sessionId}/export`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/poll-the-people/apis/customgpt-ai/docs/api/v1/projects/:projectId/conversations/:sessionId/export/get.ts> (a function with typed inputs; its response is checked against the schema)

Exports the complete conversation history (all prompts and agent responses) as a downloadable file. Use this to archive conversations, share transcripts, or analyze conversation content offline. The file format is selected by the `format` query parameter.

## Path parameters

- `projectId` integer, required
- `sessionId` string, required

## Query parameters

- `format` 'json' | 'excel' | 'csv' | 'pdf'
- `isCustomRowsNumber` string
- `rowsNumber` integer
- `startDate` string, date
- `endDate` string, date

## Response `200`

Export a conversation as a downloadable file

## Other responses

- `400`: Bad Argument
- `401`: API Token is either missing or invalid
- `404`: Agent not found
- `429`: Too many requests. You have exceeded your API rate limit.
- `500`: Internal Server Error

## Changes

- **2026-11-03** `77aab4354382`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/poll-the-people/apis/customgpt-ai/changes/api/v1/projects/:projectId/conversations/:sessionId/export/get.md)

---

[API](https://skmtc.dev/poll-the-people/apis/customgpt-ai.md) - [All operations](https://skmtc.dev/poll-the-people/apis/customgpt-ai/llms.txt) - [OpenAPI document](https://skmtc.dev/poll-the-people/apis/customgpt-ai/revisions/77aab4354382?raw)
