agents
Export Agent
Changed onExport the serialized JSON representation of an agent, formatted with indentation.
Supports two export formats:
- Legacy format (use_legacy_format=true): Single agent with inline tools/blocks
- New format (default): Multi-entity format with separate agents, tools, blocks, files, etc.
get/v1/agents/{agent_id}/export
Request
- Base URLhttps://app.letta.com
- URLhttps://app.letta.com/v1/agents/{agent_id}/export
- AuthHTTP bearer
Path parameters
agent_idstring required
Query parameters
max_stepsinteger
use_legacy_formatboolean
If true, exports using the legacy single-agent format (v1). If false, exports using the new multi-entity format (v2).
Request body
Response
Successful Response
string required
Changes
- info
added the new optional request property
/////////
- info
- info
added the new optional request property
/////////
- info