---
title: "Export everything an agent holds, as a JSON attachment"
method: GET
path: "/agents/{id}/export"
tags: ["Agents"]
---

# Export everything an agent holds, as a JSON attachment

`GET /agents/{id}/export`

## Request

- Base URL: `https://api.atako.ai`
- URL: `https://api.atako.ai/agents/{id}/export`
- Auth: HTTP bearer

Conversations, messages, e-mail threads and scheduled tasks. The way out for a company that will not subscribe before the trial-end retention window closes on a cascade delete (docs/specs/trial-end-lifecycle.md). Requires the same administration rights as renaming or ending the agent.

## Path parameters

- `id` string, required

## Response `200`

- object
  - `exportedAt` string, date-time
  - `agent` object
  - `conversations` object[]
  - `emailThreads` object[]
  - `scheduledTasks` object[]

## Other responses

- `401`: Missing, malformed, or invalid bearer token / API key, or revoked session (SESSION_REVOKED).
- `403`: FORBIDDEN
- `404`: Not found, or the caller is not authorized to access this resource.

---

[API](https://skmtc.dev/atako/apis/atako-api.md) · [All operations](https://skmtc.dev/atako/apis/atako-api/llms.txt) · [OpenAPI document](https://skmtc.dev/atako/apis/atako-api/revisions/aa555c56fbd7?raw)
