---
title: "Export an Agent's configuration as a portable bundle (v2)"
method: GET
path: "/v2/agents/{idOrAddress}/export"
tags: ["Agents"]
---

# Export an Agent's configuration as a portable bundle (v2)

`GET /v2/agents/{idOrAddress}/export`

## Request

- Base URL: `https://api.chat.ethora.com`
- URL: `https://api.chat.ethora.com/v2/agents/{idOrAddress}/export`
- Auth: HTTP bearer

Returns `schemaVersion: ethora.agent.bundle.v1` containing the
agent doc with identifiers stripped. The bundle holds the agent's
*configuration* (prompt, RAG tags, model choice, heartbeat, etc.)
but NOT the RAG corpus - sources are owned by the App and the
destination should reindex from the original URLs.

Authorization: owner of the agent, super-admin, or anyone if the
agent's `visibility` is `public`.

## Path parameters

- `idOrAddress` string, required

## Query parameters

- `format` 'json' | 'zip'

## Response `200`

bundle

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

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