API Overview
Compozy provides a comprehensive **REST API** that enables programmatic access to the Next-level Agentic Orchestration Platform, tasks, and tools. The API follows RESTful design principles and provides a unified interface for managing all aspects of your AI-powered workflows.
About the API
The Compozy REST API serves as the central management interface for the workflow orchestration engine, providing powerful capabilities for building and managing AI-powered automation systems.
RESTful Design
OpenAPI Specification
Orchestration
Manage Resources
Monitor Operations
Integrate Systems
API Categories
Getting Started
Configure Base URL
http://<your-compozy-instance>/api/v0
Authentication Setup
Most endpoints require authentication. Include your API key in requests:
Authorization: Bearer your_api_key_here
Make Your First Request
# Execute a workflow
curl -X POST http://localhost:5001/api/v0/workflows/my-workflow/executions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer your_api_key" \
-d '{
"input": {
"message": "Hello, world!"
}
}'
Monitor Execution
Check execution status and retrieve outputs:
# Get execution status
curl -X GET http://localhost:5001/api/v0/executions/workflows/{execution_id} \
-H "Authorization: Bearer your_api_key"
# Get execution outputs (when completed)
curl -X GET http://localhost:5001/api/v0/executions/workflows/{execution_id}/outputs \
-H "Authorization: Bearer your_api_key"
Response Format Standards
Standard Success Response:
{
"data": {
"exec_id": "exec_01234567-89ab-cdef-0123-456789abcdef",
"workflow_id": "my-workflow",
"status": "running",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
},
"message": "Workflow execution started successfully"
}
Authentication & Security
- API Key Authentication
Use Bearer tokens in the Authorization header for secure API access
- Role-Based Access
Different endpoints require different permission levels (read, write, admin)
- Rate Limiting
Built-in rate limiting to prevent abuse and ensure fair resource usage
- Request Validation
All inputs validated against JSON schemas before processing