Export Agent
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.Documentation Index
Fetch the complete documentation index at: https://docs.xpander.ai/llms.txt
Use this file to discover all available pages before exploring further.
Path Parameters
The unique identifier (UUID) of the agent to export
Request Body
Display name for the template
Description of what the template does
Emoji icon for the template (e.g., βπ§β, βπβ)
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:
Unique identifier for the template (UUID)
Template display name
Template description
Emoji icon representing the template
UUID of the organization that created the template
Complete agent configuration
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
Authorizations
API Key for authentication
Path Parameters
Body
application/json

