v50

latestOpenAPI 3.1.0MITraw.githubusercontent.com2026-06-16122182589.7 KB
Call webhooks

Post-call event

The post-call callback includes details such as call disposition, duration, and cost. It's triggered after the call ends.

postWebhookPostCallEvent

Payload

direction'inbound' | 'outbound' required

Direction of the call. One of inbound (call received by the account) or outbound (call placed by the account).

uuidstring required

Call ID

destinationstring nullable required

Destination of the call. For outbound calls, it contains the country name and, optionally, a mobile carrier or city name. For inbound calls, the destination includes the user-defined SIP trunk name, SIP URI, or PSTN number that the call is forwarded to.

durationinteger required

Duration of the call, in seconds

chargestring required

Total charge for the call, in USD

datestring date-time required

Date and time of the call

disposition'answered' | 'noanswer' | 'busy' | 'failed' | 'all' required

Final disposition of the call. One of answered (the called party answered), noanswer (no answer within the ring timeout), busy (the called party was busy), failed (the call could not be routed), or all (matches any disposition when used as a filter).

fromstring nullable required

ANI/From attribute of the call

tostring nullable required

DNIS/To attribute of the call

per_minutestring required

Price per minute, in USD

Example payload

{
  "direction": "outbound",
  "uuid": "99df5ffd-962a-410f-bcce-d08f1f7f328c",
  "destination": "France",
  "duration": 6,
  "charge": "0.822",
  "date": "2023-08-21T06:43:36.000Z",
  "from": "14302287001",
  "to": "33170363950",
  "per_minute": "0.027"
}

Response

Return a 200 status to indicate that the data was successfully received