Webhook sent when a TeXML call is completed. 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
Webhook sent when a TeXML call is completed.
The unique identifier of the account (user_id).
"f5586561-8ff0-4291-a51b-c7dfe4139ff9"
The timestamp when the call was initiated.
"2024-01-15T10:30:26.028Z"
The unique identifier of the call (call_control_id).
"v3:9X2vxPDFY2RHSJ1EdMS0RHRksMTg7ldNxdjWbVr9zBjbGjGsSe-aiQ"
Legacy call identifier, same as CallSid.
"v3:9X2vxPDFY2RHSJ1EdMS0RHRksMTg7ldNxdjWbVr9zBjbGjGsSe-aiQ"
The status of the call.
completed, busy, no-answer, canceled, failed "completed"
The source of the callback.
call-progress-events "call-progress-events"
The unique identifier of the connection.
"1234567890"
The phone number or SIP address of the caller.
"+35319605860"
The sequence number of the event.
3
The UTC timestamp when the webhook was generated.
"2024-01-15T10:30:00Z"
The phone number or SIP address that was called.
"+13129457420"
The time when the call was answered (only present when CallStatus is 'completed').
"2024-01-15T10:30:15Z"
The call control ID (only present when CallStatus is 'completed').
"v3:9X2vxPDFY2RHSJ1EdMS0RHRksMTg7ldNxdjWbVr9zBjbGjGsSe-aiQ"
The duration of the call in seconds (conditional, only present if start_time and end_time are available).
"45"
The call leg ID (only present when CallStatus is 'completed').
"abc123-leg1"
JSON-encoded call quality statistics (only present when CallStatus is 'completed').
"{\"mos\":4.2,\"jitter\":10,\"packet_loss\":0.5}"
The call session ID (only present when CallStatus is 'completed').
"session-abc123"
The display name of the caller.
"John Doe"
The duration of the dialed call in seconds (conditional, only present in hangup action callbacks for Dial).
"120"
The unique identifier of the dialed call (conditional, only present in hangup action callbacks for Dial).
"v3:9X2vxPDFY2RHSJ1EdMS0RHRksMTg7ldNxdjWbVr9zBjbGjGsSe-aiQ"
Legacy dialed call identifier, same as DialCallSid (conditional, only present in hangup action callbacks for Dial).
"v3:9X2vxPDFY2RHSJ1EdMS0RHRksMTg7ldNxdjWbVr9zBjbGjGsSe-aiQ"
The status of the dialed call (conditional, only present in hangup action callbacks for Dial).
completed, busy, no-answer, canceled, failed "completed"
The time when the call ended (only present when CallStatus is 'completed').
"2024-01-15T10:31:00Z"
Error code if an error occurred (conditional).
"10001"
Error message if an error occurred (conditional).
"Call failed"
The reason for call hangup (only present when CallStatus is 'completed').
"normal_clearing"
The source of the hangup (conditional, only present for hangup events).
"caller"
The timestamp when the event occurred (only present when CallStatus is 'completed').
"2024-01-15T10:31:00Z"
The organization ID (only present when CallStatus is 'completed').
"org-abc123"
The unique identifier of the parent call that initiated this outbound call (conditional, only present for outbound calls initiated via Dial).
"v3:MdI91X4lWFEs7IgbBEOT9M4AigoY08M0WWZFISt1Yw2axZ_IiE4pqg"
Legacy parent call identifier, same as ParentCallSid (conditional, only present for outbound calls initiated via Dial).
"v3:MdI91X4lWFEs7IgbBEOT9M4AigoY08M0WWZFISt1Yw2axZ_IiE4pqg"
The duration of the recording in seconds (conditional, only present if recording was enabled).
"90"
The URL where the call recording can be accessed (conditional, only present if recording was enabled).
"https://api.telnyx.com/v2/recordings/abc123.wav"
SHAKEN/STIR attestation level (conditional, only present if shaken_stir_data is available).
"A"
Whether SHAKEN/STIR validation passed (conditional, only present if shaken_stir_data is available).
true
The SIP hangup cause code (conditional, only present for hangup events).
"200"
The time when the call started (only present when CallStatus is 'completed').
"2024-01-15T10:30:00Z"
The user ID (only present when CallStatus is 'completed').
"f5586561-8ff0-4291-a51b-c7dfe4139ff9"
The server must return an HTTP 200, otherwise we will reattempt delivery at the failover webhook URL.