---
title: "Get chat logs"
method: GET
path: "/agents/chats/exports/{id}"
tags: ["Chats Export"]
---

# Get chat logs

`GET /agents/chats/exports/{id}`

## Path parameters

- `id` string, required

## Response `200`

OK

- ExportWithId
  - `agent_id` string, required — The id of the agent that the export will run for
  - `from` string — The start of the time range for the export. If not provided, the export will start from the beginning of the agent's data
  - `to` string — The end of the time range for the export. If not provided, the export will run until the current time
  - `persistent_chats` boolean — Determines if the export should fetch persistent chats. Defaults to true.
  - `created_by` string, required — Who created the export
  - `created_at` string, required — When the export was created
  - `status` 'created' | 'started' | 'done' | 'partial' | 'error', required
  - `completed_at` string — When the export was completed
  - `result` object — The result of the export.
    - `token` string
    - `result_url` string, required
  - `error` string — Error message if the export failed. Known errors include: 'No chats found', 'No chats found in range', 'All chats in dates range have been exported'
  - `total_files_count` number, double — The total amount of the files in the export
  - `total_files_size` number, double — The total size of the files in the export
  - `export_id` string, required
  - `owner_id` string, required
  - `modified` string, required

## Other responses

- `401` — AuthorizationError
- `404` — NotFoundError

---

[API](https://skmtc.net/d-id/apis/realtime-endpoints.md) · [All operations](https://skmtc.net/d-id/apis/realtime-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/d-id/realtime-endpoints/versions/2f2425e1b6b6/schema)
