API Documentation
Complete reference for AI Worker REST API and WebSocket connections
Quick Links
Getting Started
The AI Worker API allows you to programmatically create and manage AI agents, integrate voice and text capabilities, and leverage RAG for intelligent responses.
Base URL: https://api.aiworker.com/v1Authentication
All API requests require authentication using an API key in the Authorization header.
Authorization: Bearer YOUR_API_KEY
Example Request
curl -X POST https://api.aiworker.com/v1/agents \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Customer Support Agent",
"voice": "sage",
"instructions": "You are a helpful customer support agent"
}'REST Endpoints
POST
/agentsCreate a new AI agent
GET
/agentsList all agents
GET
/agents/:idGet agent details
PATCH
/agents/:idUpdate an agent
DELETE
/agents/:idDelete an agent