AsyncAPI channel · Layercode · Layercode Realtime Voice WebSocket API

/v1/agents/web/websocket

Realtime voice channel. Opened by the browser with `?client_session_key=...`. Both directions exchange JSON text frames; all audio payloads are carried as base64 strings inside JSON messages.

Provider: Layercode AsyncAPI: v2.6.0 Spec: Layercode Realtime Voice WebSocket API Operations: 2 Messages: 15

Channel address

/v1/agents/web/websocket

Operations

publish
clientToServer
Messages the client sends to Layercode.
serverToClient
Messages Layercode sends to the client.

Messages

client.ready
Signals the client is connected and ready to stream.
Content-Type:
client.audio
A chunk of microphone audio from the browser.
Content-Type:
trigger.turn.start
Turn start trigger (push-to-talk)
Content-Type:
trigger.turn.end
Turn end trigger (push-to-talk)
Content-Type:
trigger.response.audio.replay_finished
Client finished playing back a response audio turn.
Content-Type:
client.response.text
A typed text message from the user.
Content-Type:
client.response.data
Arbitrary structured JSON emitted by the client UI.
Content-Type:
turn.start
Turn start
Content-Type:
response.audio
Synthesized speech audio from Layercode.
Content-Type:
response.text.delta
Response text delta
Content-Type:
response.text
Response text (complete)
Content-Type:
user.transcript.interim_delta
Interim transcript delta
Content-Type:
user.transcript.delta
Final transcript delta
Content-Type:
user.transcript
Complete turn transcript
Content-Type:
response.data
Structured JSON pushed to the client without audio.
Content-Type:

About AsyncAPI

The AsyncAPI specification describes event-driven APIs the way OpenAPI describes request/response APIs. A channel is the named pipe — a webhook URL, a Kafka topic, a WebSocket route, an MQTT subject — that producers and consumers publish or subscribe to. Each channel carries one or more messages with structured payloads, and an operation declares whether a given party sends or receives on that channel.

Browse every event-driven channel on the APIs.io network or compare with the broader Agent Skill and MCP server surfaces of the same providers.

Work with this as data

Every channel 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 event channels

4 MCP tools reach this
  • find_channelsBrowse and filter every channel 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.
All 92 tools →

Call it yourself

curl for this page
This channel
curl "https://apis.io/api/v1/channels/v1-agents-web-websocket"
All event channels
curl "https://apis.io/api/v1/channels?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.