Skip to main content
WSS

Documentation Index

Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt

Use this file to discover all available pages before exploring further.

Messages
Connected Frame
type:object

First frame sent by Telnyx after the WebSocket connection is established. When a streaming auth token is configured, Telnyx includes it in the connected.x-telnyx-streaming-auth-token field and sends it as the x-telnyx-streaming-auth-token WebSocket header.

Start Frame
type:object

Frame sent before media begins. Identifies the stream, call metadata, custom parameters, and media format.

Telnyx Media Frame
type:object

Telnyx-to-application media frame with a base64-encoded RTP payload without RTP headers.

Stop Frame
type:object

Frame sent when Telnyx stops media streaming for the call.

Mark Callback Frame

Telnyx sends a mark callback when the media immediately preceding a submitted mark finishes playing. If no audio is playing or queued, the mark is returned immediately. A clear frame also returns queued marks.

DTMF Frame
type:object

Frame sent when Telnyx detects DTMF on the call.

Error Frame
type:object

Frame sent when an error occurs during media streaming.

Client Media Frame
type:object

Application-to-Telnyx media frame. In RTP bidirectional mode, media.payload is a base64-encoded RTP payload. Supported RTP codecs are PCMU, PCMA, G722, OPUS, AMR-WB, and L16. For media-file playback, media.payload is a base64-encoded MP3 file.

Mark Frame
type:object

Application-to-Telnyx mark frame used to track media completion. Send a mark after a media frame. Telnyx sends the same mark back when the immediately preceding media finishes playing, or immediately if no audio is queued.

Clear Frame
type:object

Stops the current media playback and clears queued media. Queued marks are sent back by Telnyx.