agents

Export 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 URL
    https://app.letta.com
  • URL
    https://app.letta.com/v1/agents/{agent_id}/export
  • Auth
    HTTP 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

      added the new optional request property /////////