Export Agent
Export the serialized JSON representation of an agent, formatted with indentation.
Authentication
AuthorizationBearer
Header authentication of the form Bearer <token>
Path parameters
agent_id
Query parameters
max_stepsDeprecated
use_legacy_formatDeprecated
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.
Request
This endpoint expects an object.
spec
Schema for serialized agent file that can be exported to JSON and imported into agent server.
legacy_spec
Response
Successful Response