Inbound Hangup

To receive the inbound webhooks, you must complete the webhooks setup. After completing the webhooks setup, our PIOPIY platform will notify your web server POST method URL with JSON call detail record(CDR) when an incoming call got hangup.

Sample CDR response

This is the sample JSON call detail record(CDR), where the PIOPIY platform will notify your web server POST method URL.

"to": 4471000000,
"appid": 2222226,
"time": 1571049056000,
"from": 919100000000,
"direction": "inbound",
"duration": 20,
"cmiuuid": "82b529c5-4e6e-4ac7-aed6-b70df9caeed6",
"conversation_uuid": "82b529c5-4e6e-4ac7-aed6-b70df9caeed6",
"leg": "a",
"status": "hangup",
"type": "cdr"

The above sample JSON live event consists of several properties. Each property has a description and take a look at it.


These are the list of properties and its description

tonumberYour incoming DID number
app_idnumberYour app id
timenumberTimestamp of this call
fromnumberThe number who made a call
directionstringDirection of this call
durationnumberThe total duration of this call in seconds
cmiuuidstringA unique identifier of this call
conversation_uuidstringA unique identifier of this conversation
legstringDefine the leg of the call either a or b
statusstringStatus of this call
typestringType of notification from PIOPIY platform it may be cdr or event