Skip to content

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:

curl -X GET https://<your-backend-url>/api/v1/health

See the Getting Started Guide for your actual backend URL after deployment.