Skip to content

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: myCoolPbx1234
recordingobject
Information about the recording
srcstring
Source number used in the recording file
example: +3522033332017
dststring
Destination number used in the recording file
example: +35220602700
filesobject
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.wav
receivestring
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.wav
transmitstring
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.wav
callobject
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: external
directionstring
Direction of the call (incoming or outgoing)
example: incoming
detected_languagestring
Detected language of the call (if languge detection ran)
example: en
detected_language_confidencestring
Confidence of the detected language (if languge detection ran)
example: 0.99
detected_language_attemptsstring
Number of attempts to detect the language (if languge detection ran)
example: 1
channelobject
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: TRUE
via_numberstring
Number which was used to route the call
example: 1234
via_namestring
Name which was used to route the call
example: Test 1234
callflow_idstring
UUID of the callflow where the web hook has been triggered
example: 8a274b6e-d50b-4abd-ad18-fc153898841c
callflow_namestring
Name of the callflow where the web hook has been triggered
example: Default Call Flow External
userobject
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-fc153898841c
dialed_extenstring
Dialed Extension Number
example: 1234
dialed_exten_idstring
Dialed Extension Id
example: 8a274b6e-cccc-cccc-ad18-fc153898841c
caller_idobject
Information about the caller id set on the call
namestring
Caller ID name of the incoming call
example: LAURES Christophe
numberstring
Caller ID number of the incoming call (How we got it form the Source)
example: +3522033332017
number_internationalstring
Caller ID number of the incoming call (Formatted to +E.164)
example: +3522033332017
international_prefixstring
International Prefix guessed by the PBX
example: 352
queueobject
Information set after a Queue was executed
idstring
ID of the Queue
example: 54374fbc-8a38-4712-b832-97b86bde5e4a
namestring
Name of the Queue
example: Demo Q
exit_keystring
This variable is set when the Call left a Queue because the Caller pressed a Exit Key
example: 5
statusstring
Why the user left the Queue
example: TIMEOUT
positionstring
Position which the user was when he left the queue
example: 1
abandonedstring
When set to TRUE the call has not been answered in the queue
example: TRUE
click2dialobject
Call has been initiated by a click2dial (not set if call is not initiated by a click2dial)
idstring
ID of the click2dial
example: 54374fbc8a384712b83297b86bde5e4a
ivrobject
Information set after a IVR was executed
idstring
ID of the IVR
example: 54374fbc-8a38-4712-b832-97b86bde5e4a
namestring
Name of the IVR
example: Demo IVR
stepobject
Selected step of the IVR
idstring
ID of the IVR Step
example: 54374fbc-8a38-4712-b832-97b86bde5e4a
optionstring
Selected option of the IVR Step
enum: 0 1 2 3 4 5 6 7 8 9 * # timeout default
example: 1

Responses

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: 1
caller_idobject
Set the caller id of the call
numberstring
Overwrite the caller id number
example: +35220333300
namestring
Overwrite the caller id name
example: My Company
queue_priorityinteger
If set we set the Queue Priority to the specified number. This can be used to prioritise calls in the Queues
example: 10
viaobject
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: 1
transferobject
Transfer the call to a other destination (Work in progress)
destinationstring
Destination to transfer the call to
example: +35220333300
typeobject
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_device
example: number
caller_identity_idUUID
Caller Identity UUID used during the transfer (Optional)
example: 8a274b6e-cccc-cccc-ad18-fc153898841c
carrier_idUUID
Carrier UUID used during the transfer (Optional)
example: 8a274b6e-cccc-cccc-ad18-fc153898841c
timeoutinteger
Timeout in seconds for the transfer (Optional, Default 300)
example: 300
volumeobject
Change the volume gain of the call
txinteger
Transmit volume gain of the call
example: 2
rxinteger
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.