| Method | Path | Summary |
| --- | --- | --- |
| `GET` | `/v0/inboxes/{inbox_id}/export` | [Export Inbox](/content/docs/reference/api/export#export-inbox/index.html) |
| `GET` | `/v0/pods/{pod_id}/inboxes/{inbox_id}/export` | [Export Inbox in Pod](/content/docs/reference/api/export#export-inbox-in-pod/index.html) |

## [Export Inbox](/content/docs/reference/api/export#export-inbox/index.html)

http

```
GET /v0/inboxes/{inbox_id}/export
```

Every message in the inbox, oldest first, streamed as an attachment named `<inbox_id>.<format>`.

**Authentication:** `Authorization: Bearer <api key>` or the dashboard `mm_session` cookie. Permission: `message_read`.

#### [Path parameters](/content/docs/reference/api/export#path-parameters/index.html)

| Field     | Description |
| --------- | ----------- |
| `inbox_id` | `string` Required - ID of the inbox: its email address, as in AgentMail (inbox_id == email). |

#### [Query parameters](/content/docs/reference/api/export#query-parameters/index.html)

| Field   | Description |
| ------- | ----------- |
| `format` | `
