Exotel AgentStream Voice Streaming API
Version 1.0
Exotel AgentStream (also surfaced through the Voicebot and Stream applets) is a documented public WebSocket API for real-time voice media streaming during a call. When a call hits a Voicebot/Stream applet in an Exotel call flow, Exotel opens a secure WebSocket (`wss://`) connection to the endpoint you configure and streams the caller's audio as base64-encoded linear PCM in ~100 ms frames. With the Voicebot applet the stream is BIDIRECTIONAL: your server can send audio (and `mark`/`clear` control events) back over the same socket to speak to the caller and to barge in. The Stream applet is unidirectional (caller audio to your server only). CONNECTION MODEL: Exotel is the WebSocket CLIENT; your bot/server hosts the `wss://` endpoint. This document therefore models YOUR server as the AsyncAPI "server" that Exotel connects to. Replace the host below with your own endpoint. GROUNDING: Event names and JSON message shapes (connected, start, media, dtmf, mark, stop inbound; media, mark, clear outbound) and the audio format are taken from Exotel's AgentStream developer guide. Field-level schemas are modeled from the documented example messages.
Channels
Messages
Servers
your-bot-host.example.com
AsyncAPI Specification
Work with this as data
Every AsyncAPI spec here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for asyncapi
4 MCP tools reach this
find_asyncapisBrowse and filter every AsyncAPI spec in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/asyncapis/exotel-asyncapi"
curl "https://apis.io/api/v1/asyncapis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.