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_idstringRequired

Query parameters

max_stepsintegerOptionalDefaults to 100Deprecated
use_legacy_formatbooleanOptionalDefaults to falseDeprecated

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.
specobject or nullOptional
Schema for serialized agent file that can be exported to JSON and imported into agent server.
legacy_specobject or nullOptional

Response

Successful Response

Errors