Skip to main content

Subscribe to a webhook

Subscribe to a webhook

Path Parameters
    event string required

    Possible values: [incomingCall, outgoingCall, callStart, callEnd, callInsights]

    The event to subscribe to

Request Body required
    url uri required
    contentType string required

    Possible values: [application/json, application/x-www-form-urlencoded]

    active boolean required
    description string
Responses

Successfully subscribed to the webhook


Schema
    data object
    url uri
    contentType string

    Possible values: [application/json, application/x-www-form-urlencoded]

    event string

    Possible values: [incomingCall, outgoingCall, callStart, callEnd, callInsights]

    active boolean
    description string

Callbacks

incomingCall
Request Body required
    id string

    The unique id of the call

    datetime date-time

    The time an incoming call was initiated

    to string

    The number that was called

    from string

    The number that called

Responses

Your server returns this code if it accepts the callback

outgoingCall
Request Body required
    id string

    The unique id of the call

    datetime date-time

    The time an outgoing call was initiated

    to string

    The number that was called

    from string

    The number that is calling

Responses

Your server returns this code if it accepts the callback

callStart
Request Body required
    id string

    The unique id of the call

    datetime date-time

    The time outgoing call was answered

    answeredBy string

    The email of the user that answered the call

    choice string

    Possible values: [``, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, *, #]

    The choice made by the callee in the interactive menu

Responses

Your server returns this code if it accepts the callback

callEnd
Request Body required
    id string

    The unique id of the call

    datetime date-time

    The time an outgoing call was initiated

    cause string

    Possible values: [UNANSWERED, ANSWERED, BLACKLISTED, VOICEMAIL, CALLCENTER, OUTSIDE_OPERATION_TIMES]

    The cause of the call ending

Responses

Your server returns this code if it accepts the callback

Loading...