Skip to content
  • Auto
  • Light
  • Dark
DiscordForumGitHubSign up
View as Markdown
Copy Markdown

Open in Claude
Open in ChatGPT

Export Agent

get/v1/agents/{agent_id}/export

Export the serialized JSON representation of an agent, formatted with indentation.

Path ParametersExpand Collapse
agent_id: string
Query ParametersExpand Collapse
Deprecatedmax_steps: optional number
Deprecateduse_legacy_format: optional boolean

If True, exports using the legacy single-agent 'v1' format with inline tools/blocks. If False, exports using the new multi-entity 'v2' format, with separate agents, tools, blocks, files, etc.

Export Agent
curl https://api.letta.com/v1/agents/$AGENT_ID/export \
    -X GET \
    -H "Authorization: Bearer $LETTA_API_KEY"
"string"
Returns Examples
"string"