Base URL
The default base URL for all API endpoints is:config.yaml:
Authentication
All API endpoints require authentication via API keys. Include your API key in the request headers:Rate Limiting
The API implements GCRA (Generic Cell Rate Algorithm) rate limiting per IP address:- Read operations: 200 requests/hour
- Write operations: 100 requests/hour
- Message operations: 60 requests/hour
- Workflow runs: 100 requests/hour
retryAfter value in seconds.
Security Headers
All responses include security headers:X-Content-Type-Options: nosniffX-Frame-Options: DENYX-XSS-Protection: 1; mode=blockStrict-Transport-Security: max-age=31536000; includeSubDomains
CORS Configuration
CORS is enabled by default with the following settings:Available Endpoints
OpenAI Compatibility
Chat Completions
OpenAI-compatible chat completions endpoint
Agent Management
Agent Endpoints
Create, list, get, delete, and message agents
Workflow Execution
Workflow Endpoints
Create, list, run workflows and get run status
Health Check
Check the API health status:Error Handling
The API returns standard HTTP status codes:200 OK- Request succeeded201 Created- Resource created successfully204 No Content- Request succeeded with no response body401 Unauthorized- Missing or invalid authentication404 Not Found- Resource not found429 Too Many Requests- Rate limit exceeded500 Internal Server Error- Server error
Observability
The API includes OpenTelemetry metrics:api_request_duration_ms- Request duration histogramfunction_error_total- Error counter by function- Request counts by path, method, and status code
config.yaml.