Outbound Answered

Our PIOPIY platform will notify the following sample JSON live event to your web server POST method URL, when an outbound call is answered.


PIOPIY webhooks implementation in different languages.

from flask import Flask,request
app = Flask(__name__)
# Receive webhooks from PIOPIY platform when call receive or make
def hello():
# Received JSON CDR from PIOPIY Platform
cdr = request.get_json()
return "got it"
if __name__ == "__main__":
app.run(debug=True, port=5000)

To know more about testing webhooks for local development purposes, go to examples.

Sample event response

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

extra_params: '{"key":"value"}',
type: 'event',
leg: 'a',
conversation_uuid: 'V0dg9Q6m4M1mCt2Gxal639cr8xnQpmpkc4MNmqPtey7',
time: 1632980450000,
to: '19170000000',
from: '440000000000',
cmiuuid: '72cb49de-898a-448f-abf6-d82cea97a1ea',
direction: 'outbound',
appid: 2222226,
request_id: 'V0dg9Q6m4M1mCt2Gxal639cr8xnQpmpkc4MNmqPtey7',
app_init: true,
callerid: '440000000000',
status: 'answered'

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

extra_paramsstringYour custom parameters
typestringType of notification from PIOPIY platform it may be cdr or event
legstringDefine the leg of the call either a or b
conversation_uuidstringA unique identifier of this conversation
timenumberTimestamp of this call
tonumberThe number the call was made to
fromnumberYour default DID Number
cmiuuidstringA unique identifier of this call
directionstringDirection of this call
app_idnumberYour app id
request_idstringThe unique request ID for this call
api_initstringThis call is initiated from API
calleridnumberThe incoming DID number
statusstringStatus of this call