Skip to main content
WEBHOOK
TexmlCallAnsweredWebhook
{
  "AccountSid": "f5586561-8ff0-4291-a51b-c7dfe4139ff9",
  "CallInitiatedAt": "2024-01-15T10:30:26.028Z",
  "CallSid": "v3:9X2vxPDFY2RHSJ1EdMS0RHRksMTg7ldNxdjWbVr9zBjbGjGsSe-aiQ",
  "CallSidLegacy": "v3:9X2vxPDFY2RHSJ1EdMS0RHRksMTg7ldNxdjWbVr9zBjbGjGsSe-aiQ",
  "CallStatus": "in-progress",
  "CallbackSource": "call-progress-events",
  "ConnectionId": "1234567890",
  "From": "+35319605860",
  "SequenceNumber": 2,
  "Timestamp": "2024-01-15T10:30:00Z",
  "To": "+13129457420",
  "CallDuration": "15",
  "CallerId": "John Doe",
  "Codec": "PCMU",
  "ErrorCode": "10001",
  "ErrorMessage": "Call failed",
  "ParentCallSid": "v3:parent-call-id",
  "ParentCallSidLegacy": "v3:parent-call-id",
  "SamplingRate": "8000",
  "ShakenStirAttestation": "A",
  "ShakenStirValidated": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

telnyx-timestamp
integer<int64>
required

Unix timestamp (seconds since epoch) of when the webhook was sent - compatible with webhook-timestamp Unix timestamp for replay attack prevention

telnyx-signature-ed25519
string
required

Base64 encoded Ed25519 signature for webhook verification - compatible with webhook-signature Ed25519 signature of timestamp|payload for verification

Body

application/x-www-form-urlencoded

Webhook sent when a TeXML call is answered.

AccountSid
string
required

The unique identifier of the account (user_id).

Example:

"f5586561-8ff0-4291-a51b-c7dfe4139ff9"

CallInitiatedAt
string<date-time>
required

The timestamp when the call was initiated.

Example:

"2024-01-15T10:30:26.028Z"

CallSid
string
required

The unique identifier of the call (call_control_id).

Example:

"v3:9X2vxPDFY2RHSJ1EdMS0RHRksMTg7ldNxdjWbVr9zBjbGjGsSe-aiQ"

CallSidLegacy
string
required

Legacy call identifier, same as CallSid.

Example:

"v3:9X2vxPDFY2RHSJ1EdMS0RHRksMTg7ldNxdjWbVr9zBjbGjGsSe-aiQ"

CallStatus
enum<string>
required

The status of the call.

Available options:
in-progress
Example:

"in-progress"

CallbackSource
enum<string>
required

The source of the callback.

Available options:
call-progress-events
Example:

"call-progress-events"

ConnectionId
string
required

The unique identifier of the connection.

Example:

"1234567890"

From
string
required

The phone number or SIP address of the caller.

Example:

"+35319605860"

SequenceNumber
integer
required

The sequence number of the event.

Example:

2

Timestamp
string<date-time>
required

The UTC timestamp when the webhook was generated.

Example:

"2024-01-15T10:30:00Z"

To
string
required

The phone number or SIP address that was called.

Example:

"+13129457420"

CallDuration
string

The duration of the call in seconds (conditional, only present if start_time and end_time are available).

Example:

"15"

CallerId
string

The display name of the caller.

Example:

"John Doe"

Codec
string

The audio codec used for the call (conditional).

Example:

"PCMU"

ErrorCode
string

Error code if an error occurred (conditional).

Example:

"10001"

ErrorMessage
string

Error message if an error occurred (conditional).

Example:

"Call failed"

ParentCallSid
string

The unique identifier of the parent call (conditional, only present for outbound calls initiated via Dial).

Example:

"v3:parent-call-id"

ParentCallSidLegacy
string

Legacy parent call identifier, same as ParentCallSid (conditional, only present for outbound calls initiated via Dial).

Example:

"v3:parent-call-id"

SamplingRate
string

The audio sampling rate (conditional).

Example:

"8000"

ShakenStirAttestation
string

SHAKEN/STIR attestation level (conditional, only present if shaken_stir_data is available).

Example:

"A"

ShakenStirValidated
boolean

Whether SHAKEN/STIR validation passed (conditional, only present if shaken_stir_data is available).

Example:

true

Response

200

The server must return an HTTP 200, otherwise we will reattempt delivery at the failover webhook URL.