Overview
The REST API is your control plane for the xpander platform, enabling you to:- Manage Agents: Create, update, deploy, and delete AI agents
- Agent Workspace: Run bash commands, edit files, search code, and share artifacts inside a per-agent workspace
- Manage Workflows: Build and run multi-agent orchestration workflows
- Connectors: Connect to external services, search and manage operations
- Custom Functions: Create, generate, and execute user-defined Python tools
- Export & Import: Share agents as templates across organizations
- Execute Tasks: Invoke agents and workflows synchronously, asynchronously, or with streaming
- Control Knowledge: Manage knowledge bases and documents
- Access Toolkits: List and invoke tools across integrations
- LLM Providers: Discover available LLM providers and models
Base URL
Authentication
All API requests require authentication via thex-api-key header:
Quick Start
API Endpoints
Agents
Create, manage, and invoke AI agents
Agent Workspace
Run commands, edit files, and share artifacts in a per-agent workspace
Workflows
Build and run multi-agent orchestration workflows
Connectors
Connect to external services and manage operations
Custom Functions
Create and execute user-defined Python tools
Tasks
Monitor and manage task executions
Knowledge
Manage knowledge bases and documents
Toolkits
Access and invoke tools
LLM Providers
Discover available LLM providers and models
Key Features
- 🌐 Universal Access: Works with any programming language that supports HTTP
- ⚡ Multiple Execution Modes: Sync, async, and streaming invocation
- 📊 Complete CRUD: Full lifecycle management for all resources
- 🔒 Secure: API key authentication with organization-level scoping
- 📖 OpenAPI Spec: Complete OpenAPI 3.1 specification available
Response Format
All API responses follow a consistent JSON structure:Error Handling
The API uses standard HTTP status codes:200- Success201- Created400- Bad Request401- Unauthorized404- Not Found422- Validation Error500- Internal Server Error
Rate Limits
The API implements rate limiting to ensure fair usage:- Standard: 100 requests per minute
- Burst: 1000 requests per hour
Next Steps
Agent Endpoints
Explore agent management endpoints
Workflow Endpoints
Build multi-agent orchestrations
Examples
View code examples
OpenAPI Spec
Download OpenAPI specification

