How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Layercode Webhooks API

HMAC-signed webhook Layercode POSTs to your backend with session and transcript events (session.start, message, data, session.update, session.end); your backend streams response.tts / response.data / response.end events back as Server-Sent Events that drive the agent's speech.

Layercode Webhooks API is one of 5 APIs that Layercode publishes on the APIs.io network, described by an AsyncAPI event-driven specification.

Tagged areas include Webhook, SSE, and Event. The published artifact set on APIs.io includes API documentation, an API reference, and an AsyncAPI specification.

This event API exposes 2 operations across 1 channel, and defines 15 schemas. It is described by AsyncAPI 2.6.0, at version 1.0.0.

The API connects through a single server, api.layercode.com/v1/agents/web/websocket (wss).

2 operations 1 channels 15 schemas

Metadata

The identity and technical contract details declared by the specification.

Specification
AsyncAPI 2.6.0
API Version
1.0.0
Base URL
https://docs.layercode.com/api-reference/webhook-sse-api
Resource Areas
1

Channels & Operations 2

Across 1 channel, the API surfaces 2 operations. Each is listed below with its action, channel, parameters, and response codes.

Channels 2
SUB
/v1/agents/web/websocket
Messages Layercode sends to the client.
serverToClient body
PUB
/v1/agents/web/websocket
Messages the client sends to Layercode.
clientToServer body

Messages & Schemas 15

The contract defines 15 schemas that model the data carried by its messages. Each schema is shown below with its type and property counts.

ClientReady
message
Signals the client is connected and ready to stream.
ClientAudio
message
A chunk of microphone audio from the browser.
TriggerTurnStart
message
TriggerTurnEnd
message
TriggerAudioReplayFinished
message
Client finished playing back a response audio turn.
ClientResponseText
message
A typed text message from the user.
ClientResponseData
message
Arbitrary structured JSON emitted by the client UI.
TurnStart
message
ResponseAudio
message
Synthesized speech audio from Layercode.
ResponseTextDelta
message
ResponseText
message
UserTranscriptInterimDelta
message
UserTranscriptDelta
message
UserTranscript
message
ResponseData
message
Structured JSON pushed to the client without audio.

Specification

The full machine-readable AsyncAPI contract behind this narrative.

Source

layercode-asyncapi.yml Raw ↑

Other APIs Layercode publishes across the network.

Layercode Realtime Voice API
Layercode Agents API
Layercode Calls API
Layercode Sessions API
Where this information came from

This is an independent, third-party profile of Layercode Webhooks API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.