API Documentation

Complete reference for AI Worker REST API and WebSocket connections

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/v1

Authentication

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/agents

Create a new AI agent

GET/agents

List all agents

GET/agents/:id

Get agent details

PATCH/agents/:id

Update an agent

DELETE/agents/:id

Delete an agent

Need Help?

Check out our SDKs and code examples