Call flow step webhook
post
Call flow step webhook
The Voxbi PBX supports calling a Web hook during a call flow via the web hook call flow step.
The Web hook send a POST request with a JSON body as payload.
No authentication required
Request body · application/json
Request schema
instance_namestring
Name of the pbx instance
example:
myCoolPbx1234recordingobject
Information about the recording
srcstring
Source number used in the recording file
example:
+3522033332017dststring
Destination number used in the recording file
example:
+35220602700filesobject
Recording files information
combinedstring
Path to the recordings file with the combined audio
example:
/mnt/hdd/recordings/spool/myCoolPbx1234_CF_8a274b6e-d50b-4abd-ad18-fc153898841c_1751009487.68.wavreceivestring
Path to the recordings file with the audio received by the PBX
example:
/mnt/hdd/recordings/spool/myCoolPbx1234_CF_8a274b6e-d50b-4abd-ad18-fc153898841c_1751009487.68.RX.wavtransmitstring
Path to the recordings file with the audio send by the PBX
example:
/mnt/hdd/recordings/spool/myCoolPbx1234_CF_8a274b6e-d50b-4abd-ad18-fc153898841c_1751009487.68.TX.wavcallobject
Information about the call
idstring
ID of the call
typestring
Type of this call (external the call originated for a external source | Internal: the call has been started from a authorized user)
example:
externaldirectionstring
Direction of the call (incoming or outgoing)
example:
incomingdetected_languagestring
Detected language of the call (if languge detection ran)
example:
endetected_language_confidencestring
Confidence of the detected language (if languge detection ran)
example:
0.99detected_language_attemptsstring
Number of attempts to detect the language (if languge detection ran)
example:
1channelobject
Information about the current channel
idstring
ID of the channel
namestring
Name of the channel
routingobject
Information about the routing
is_vipstring
This variable is set to TRUE when the call has been marked as a VIP call
example:
TRUEvia_numberstring
Number which was used to route the call
example:
1234via_namestring
Name which was used to route the call
example:
Test 1234callflow_idstring
UUID of the callflow where the web hook has been triggered
example:
8a274b6e-d50b-4abd-ad18-fc153898841ccallflow_namestring
Name of the callflow where the web hook has been triggered
example:
Default Call Flow Externaluserobject
Information about the user where the call has been routed to
dialed_user_idstring
User ID of the dialed user
example:
8a274b6e-ffff-ffff-ad18-fc153898841cdialed_extenstring
Dialed Extension Number
example:
1234dialed_exten_idstring
Dialed Extension Id
example:
8a274b6e-cccc-cccc-ad18-fc153898841ccaller_idobject
Information about the caller id set on the call
namestring
Caller ID name of the incoming call
example:
LAURES Christophenumberstring
Caller ID number of the incoming call (How we got it form the Source)
example:
+3522033332017number_internationalstring
Caller ID number of the incoming call (Formatted to +E.164)
example:
+3522033332017international_prefixstring
International Prefix guessed by the PBX
example:
352queueobject
Information set after a Queue was executed
idstring
ID of the Queue
example:
54374fbc-8a38-4712-b832-97b86bde5e4anamestring
Name of the Queue
example:
Demo Qexit_keystring
This variable is set when the Call left a Queue because the Caller pressed a Exit Key
example:
5statusstring
Why the user left the Queue
example:
TIMEOUTpositionstring
Position which the user was when he left the queue
example:
1abandonedstring
When set to TRUE the call has not been answered in the queue
example:
TRUEclick2dialobject
Call has been initiated by a click2dial (not set if call is not initiated by a click2dial)
idstring
ID of the click2dial
example:
54374fbc8a384712b83297b86bde5e4aivrobject
Information set after a IVR was executed
idstring
ID of the IVR
example:
54374fbc-8a38-4712-b832-97b86bde5e4anamestring
Name of the IVR
example:
Demo IVRstepobject
Selected step of the IVR
idstring
ID of the IVR Step
example:
54374fbc-8a38-4712-b832-97b86bde5e4aoptionstring
Selected option of the IVR Step
enum:
0 1 2 3 4 5 6 7 8 9 * # timeout defaultexample:
1Responses
Your Reply to the PBX
💡 The json and all keys inside the json are optional (The system also accepts empty responses)
Response schema
hangupboolean
When true hangup the call (default: false)
example:
vipboolean
When true mark the call is a VIP call (default: false)
example:
1caller_idobject
Set the caller id of the call
numberstring
Overwrite the caller id number
example:
+35220333300namestring
Overwrite the caller id name
example:
My Companyqueue_priorityinteger
If set we set the Queue Priority to the specified number. This can be used to prioritise calls in the Queues
example:
10viaobject
Change the via header
numberstring
Overwrite the via number
namestring
Overwrite the via name
overwriteboolean
Overwrite instead of appending the via header (Default false)
example:
1transferobject
Transfer the call to a other destination (Work in progress)
destinationstring
Destination to transfer the call to
example:
+35220333300typeobject
Type of the transfer
- number: Transfer to a number or extension
- sip: Transfer to a sip URI
- call_flow: Transfer to a call flow (UUID of the call flow)
- user: Transfer to a user (UUID of the user)
- sip_device: Transfer to a sip device (UUID of the sip device)
enum:
number sip call_flow user sip_deviceexample:
numbercaller_identity_idUUID
Caller Identity UUID used during the transfer (Optional)
example:
8a274b6e-cccc-cccc-ad18-fc153898841ccarrier_idUUID
Carrier UUID used during the transfer (Optional)
example:
8a274b6e-cccc-cccc-ad18-fc153898841ctimeoutinteger
Timeout in seconds for the transfer (Optional, Default 300)
example:
300volumeobject
Change the volume gain of the call
txinteger
Transmit volume gain of the call
example:
2rxinteger
Receive volume gain of the call
example:
2
post
Call flow step webhook
Request sample
curl -X POST 'https://your-server.example.com/webhooks'
const response = await fetch('https://your-server.example.com/webhooks', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);
import requests
response = requests.post('https://your-server.example.com/webhooks')
response.raise_for_status()
data = response.json()
print(data)
<?php
$context = stream_context_create([
'http' => [
'method' => 'POST',
'header' => "Content-Type: application/json",
],
]);
$response = file_get_contents('https://your-server.example.com/webhooks', false, $context);
$data = json_decode($response, true);
print_r($data);
Sample request
No request example provided.
No example for this status.