Endpoints
API Reference¶
The Real-Time Voice Agent backend provides REST and WebSocket APIs for building low-latency voice applications powered by Azure Communication Services, Azure Speech Services, and Azure OpenAI.
๐ Interactive Documentation¶
For complete API specifications with interactive testing:
๐ Swagger UI - Full OpenAPI documentation with request/response schemas, authentication details, and try-it-now functionality
๐ฏ API Components¶
The backend service exposes the following high-level API components:
๐ฅ Health & Monitoring¶
- Health checks - Liveness and readiness probes for load balancers
- Agent status - List and inspect loaded agents and configurations
- TTS pool health - Monitor text-to-speech service pool status
๐ Call Management¶
- Outbound calls - Initiate PSTN calls via Azure Communication Services
- Inbound calls - Handle incoming calls and Event Grid validation
- Call lifecycle - List, terminate, and manage active calls
- Webhooks - Process ACS callback events (connected, disconnected, DTMF)
๐ Real-Time Communication¶
- Media streaming - Bidirectional audio WebSocket for ACS calls
- Browser conversations - Browser-based voice sessions with session persistence
- Dashboard relay - Real-time updates for monitoring dashboards
๐ Session & Metrics¶
- Session management - View and manage conversation sessions
- Telemetry - Session metrics, latency statistics, and turn-level analytics
- Aggregated metrics - Summary statistics across recent sessions
๐ค Agent & Scenario Management¶
- Agent builder - Dynamic agent creation, templates, and configuration
- Scenario builder - Multi-agent scenarios with handoff routing
- Tools & voices - List available agent tools and TTS voices
๐งช Demo Environment¶
- Demo profiles - Create synthetic user profiles for testing and demos
๐ Getting Started¶
Prerequisites & Deployment¶
To deploy and configure the backend service:
๐ Getting Started Guide - Complete setup instructions including:
- Prerequisites and tool installation
- Azure resource deployment with
azd up - Local development environment setup
- Configuration and environment variables
- Authentication and RBAC setup
Quick Health Check¶
Once deployed, verify your backend is running:
See the Getting Started Guide for your actual backend URL after deployment.
๐ Related Documentation¶
- Complete Endpoint Listing - Detailed endpoints, WebSocket specifications, and streaming modes
- Getting Started - Deployment and setup guide
- Architecture - System design and components
- Speech Architecture - Audio processing and streaming modes