This webhook uses Telnyx headers (telnyx-timestamp, telnyx-signature-ed25519) that are compatible with Standard Webhooks specification for SDK generation. Custom validation logic can map these to standard webhook-timestamp and webhook-signature equivalents. See https://github.com/standard-webhooks/standard-webhooks for details.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unix timestamp (seconds since epoch) of when the webhook was sent - compatible with webhook-timestamp Unix timestamp for replay attack prevention
Base64 encoded Ed25519 signature for webhook verification - compatible with webhook-signature Ed25519 signature of timestamp|payload for verification
Show child attributes
Identifies the resource.
event "event"
The type of event being delivered.
streaming.failed "streaming.failed"
Identifies the type of resource.
"25dc3731-e51e-4927-a50d-a61cc25984b1"
ISO 8601 datetime of when the event occurred.
"2021-12-15T14:11:24.613295Z"
Show child attributes
Call ID used to issue commands via Call Control API.
"31f19208-5db0-11ec-9ea7-02420a0d3a69"
Call Control App ID (formerly Telnyx connection ID) used in the call.
"7267xxxxxxxxxxxxxx"
ID that is unique to the call and can be used to correlate webhook events.
"31f19208-5db0-11ec-9ea7-02420a0d3a69"
ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call.
"31f19208-5db0-11ec-9ea7-02420a0d3a69"
State received from a command.
"aGF2ZSBhIG5pY2UgZGF5ID1d"
A short description explaning why the media streaming failed.
"connection_failed"
Identifies the streaming.
"1edb94f9-7ef0-4150-b502-e0ebadfd9491"
Streaming parameters as they were originally given to the Call Control API.
Show child attributes
The destination WebSocket address where the stream is going to be delivered.
"wss://www.example.com/websocket"
Specifies which track should be streamed.
inbound_track, outbound_track, both_tracks "inbound_track"
The type of stream connection the stream is performing.
websocket, dialogflow "websocket"
{
"record_type": "event",
"event_type": "streaming.failed",
"id": "25dc3731-e51e-4927-a50d-a61cc25984b1",
"occurred_at": "2021-12-15T14:11:24.613295Z",
"payload": {
"call_control_id": "31f19208-5db0-11ec-9ea7-02420a0d3a69",
"connection_id": "7267xxxxxxxxxxxxxx",
"call_leg_id": "31f19208-5db0-11ec-9ea7-02420a0d3a69",
"call_session_id": "31f19208-5db0-11ec-9ea7-02420a0d3a69",
"client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d",
"failure_reason": "connection_failed",
"stream_id": "1edb94f9-7ef0-4150-b502-e0ebadfd9491",
"stream_params": {
"stream_url": "wss://www.example.com/websocket",
"stream_track": "inbound_track"
},
"stream_type": "websocket"
}
}The server must return an HTTP 200, otherwise we will reattempt delivery at the failover webhook URL.
Was this page helpful?