Comprehensive API reference and integration guide. Multi-provider WebRTC voice agent supporting OpenAI Realtime API and ElevenLabs Conversational AI.
curl -X POST http://localhost:3001/api/set_prompt \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $INTERNAL_AGENT_PLATFORM_API_KEY" \
-d '{
"uuid": "openai-session-123",
"prompt": "You are a helpful voice assistant. Be conversational and friendly.",
"provider": "openai",
"voice": "alloy"
}'Then access: http://localhost:3001/voice/openai/openai-session-123
curl -X POST http://localhost:3001/api/set_prompt \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $INTERNAL_AGENT_PLATFORM_API_KEY" \
-d '{
"uuid": "elevenlabs-session-456",
"prompt": "You are a friendly conversational AI assistant.",
"provider": "elevenlabs",
"voice": "ballad"
}'Then access: http://localhost:3001/voice/elevenlabs/elevenlabs-session-456
Configure and start a voice session.
Content-Type: application/jsonAuthorization: Bearer $INTERNAL_AGENT_PLATFORM_API_KEY{
"uuid": "string", // Unique session identifier
"prompt": "string", // System prompt for the AI agent
"provider": "openai|elevenlabs", // Voice provider (default: "elevenlabs")
"voice": "string" // Voice name (default: "ballad")
}Route: /voice/openai/[sessionId]
Route: /voice/elevenlabs/[sessionId]
Add ?debug=true to any voice session URL for detailed logging:
http://localhost:3001/voice/openai/session-123?debug=true http://localhost:3001/voice/elevenlabs/session-456?debug=true
INTERNAL_AGENT_PLATFORM_API_KEY=your-secure-token-here