v36

latestOpenAPI 3.1.0raw.githubusercontent.com2025-10-091882241.2 MB
agents

Export Agent

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

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).

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