Outbound Webhooks Answered

To receive the outbound answered 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 answered.

Sample CDR response

This is the sample JSON live event, where the PIOPIY platform will notify your web server POST method URL.

  • Leg A
  • Leg B
"to": 9100000000,
"appid": 2222226,
"time": 1571038130000,
"from": 4471000000,
"direction": "outbound",
"duration": 29,
"cmiuuid": "4f96a766-7d59-49d9-b937-f2e74030d33a",
"conversation_uuid": "4f96a766-7d59-49d9-b937-f2e74030d33a",
"callerid": 04471000000,
"vn": 4471000000,
"out": "true",
"status": "answered",
"leg": "a",
"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

tonumberThe number the call was made to
app_idnumberYour app id
timenumberTimestamp of this call
fromnumberYour default DID Number
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
calleridnumberThe incoming DID number
vnnumberYour default DID Number
outstringThis call is initiated from API
statusstringStatus of this call
recordstringCall recording is enabled
filenamestringThe file name of the recorded conversation
legstringDefine the leg of the call either a or b
typestringType of notification from PIOPIY platform it may be cdr or event