Voice webhook v1 format
We are using a new format see our main page.
Call completed Legacy format
The voice service supports the use of webhook messages. When a voice call has been completed the result will be reported to your webhook URL. We can authenticate to your webhook with basic access authentication.
Contact us to configure your webhook URL.
Format
The webhook request is a standard HTTP POST request with a JSON body, which is formatted as follows.
Field |
| Format |
---|---|---|
id | UUID, identifying the call uniquely |
|
attributes | Contains the 'reference' used at import (identification_identifier). |
|
direction | Call direction | ENUM DIRECTION outbound
inbound |
status | The call status | ENUM STATUS ringing
active
finished
no answer
busy
rejected
invalid number
failed |
localNumber |
| E164 |
remoteNumber |
| E164 |
events | Array of events during the call, nodeId: string, node identifier
nodeType: string, ENUM NODETYPE
order: int, event order
type: string, ENUM EVENTTYPE
data: array, data that is specific to the node type and event type
time: string, RFC3339 Empty when the call is not answered. |
NODETYPE:
AddResult
CheckCallAttempt
CheckCounter
CheckGenderBirthday
CheckVariable
DTMF
DTMFString
Forward
Hangup
IsCallOutbound
IsRemoteMobile
IsRemoteVoiceMail
IsTimeInInterval
Sound
WaitForSilence
EVENTTYPE:
NodeStart
NodeUpdate
NodeResult |
createdOn |
| RFC3339 |
updatedOn |
| RFC3339 |
answeredOn | Empty if the call has not been answered. | RFC3339 or empty |
Example message for an outbound call