How to smoothly migrate to Call API V2
audio_websocket_protocol
, audio_encoding
, sample_rate
call_type
to distinguish web call and phone call, access_token
for web call to join WebRTC room.access_token
field used to join the call.from_number
, to_number
, direction
fields.create
-> createPhoneCall
(Node.js) or create_phone_call
(Python)register
-> createWebCall
(Node.js) or create_web_call
(Python)startConversation
-> startCall
: the parameters now require the access token.stopConversation
-> stopCall
call
which contains the new call object. The old field data
is being deprecated.
See more details in Webhook Guide.