Event webhook.
POST
/api/voip/webhookRequest body
Section titled “Request body”eventstringoptionalAllowed values:call,reservation-change-noteEvent type - defaults to “call” if not specified
referencestringrequiredUnique reference for this webhook event
sourcestringoptionalSource phone number (required for call events)
destinationstringoptionalDestination phone number (required for call events)
statusstringoptionalAllowed values:queued,starting,ringing,ongoing,busy,hangup,no-answerCall status (required for call events)
directionstringoptionalAllowed values:in,outCall direction (required for call events)
beginDatestringoptionalCall begin date in UTC (required for call events)
endDatestringoptionalCall end date in UTC (required for call events)
answerDatestringoptionalCall answer date in UTC (required for call events)
answeredbooleanoptionalWhether call was answered (required for call events)
durationnumberoptionalCall duration in seconds (required for call events)
notesstringoptionalNotes content (optional - triggers reservation-change-note creation when combined with reservation.id)
reservationobjectoptionalReservation association (optional)
Show 1 property
idnumberrequiredReservation ID
userobjectoptionalUser association (optional)
Show 1 property
idnumberrequiredUser ID
Returns
Section titled “Returns”Schema shown for 200 · application/json
idnumberreferencestringsourcestringoptionaldestinationstringoptionalstatusstringdirectionstringoptionalbeginDatestringoptionalendDatestringoptionalanswerDatestringoptionalansweredbooleanoptionalDefault:falsedurationnumberoptionalDefault:0notesstringoptionalreservationobjectoptionalShow 1 property
idnumberoptional
guestobjectoptionalShow 1 property
idnumberoptional
userobjectoptionalShow 1 property
idnumberoptional