REST API - Agents
Export Agent
Export an AI agent as a reusable template with configuration and knowledge bases
POST
Export Agent
Export an agent into a portable template that can be shared across organizations. The template packages all agent components including configuration, tools, sub-agents, and optionally knowledge bases with their documents.
Path Parameters
Request Body
Controls whether knowledge bases and their document files are included in the export
true: Includes all knowledge bases with their documents and filesfalse: Exports only agent configuration without knowledge bases
Response
Returns anAgentTemplate object:
Example Request
Example Response
Use Cases
- Cross-Organization Sharing: Share agent templates with other organizations
- Backup & Version Control: Create snapshots of agent configurations
- Standardization: Distribute pre-built agents across teams
- Reusability: Create templates for frequently used agent patterns
Notes
- Cross-Organization Sharing: Templates can be shared across different organizations - the template ID works universally
- Knowledge Base Size: When
with_knowledge_bases: true, the export includes all document content which may result in larger payloads - Tool Credentials: Tool configurations are exported without credentials - recipients will need to provide their own API keys
- Template Immutability: Exported templates are snapshots and won’t update if the original agent changes
See Also
- Import Agent - Create a new agent from a template
- Create Agent - Create a new agent from scratch
- Get Agent - Retrieve agent details
Body
application/json

