Subscribe to a webhook
Subscribe to a webhook
Path Parameters
Possible values: [incomingCall
, outgoingCall
, callStart
, callEnd
, callInsights
]
The event to subscribe to
Request Body required
Possible values: [application/json
, application/x-www-form-urlencoded
]
- 201
- 400
- 401
- 403
Successfully subscribed to the webhook
Schema
data object
Possible values: [application/json
, application/x-www-form-urlencoded
]
Possible values: [incomingCall
, outgoingCall
, callStart
, callEnd
, callInsights
]
{
"data": {
"url": "https://example.com/webhook",
"contentType": "application/json",
"event": "incomingCall",
"active": true,
"description": "My webhook"
}
}
Invalid request body
Schema
- Array [
- ]
errors object[]
Human readable error code
Human readable error message
Human readable error detail
{
"errors": [
{
"code": "ERROR_CODE",
"message": "An error occurred while calling the endpoint",
"detail": "View more info at developers.rinkel.com"
}
]
}
Unauthorized
Current plan does not include integrations
Callbacks
incomingCall
Request Body required
The unique id of the call
The time an incoming call was initiated
The number that was called
The number that called
- 200
Your server returns this code if it accepts the callback
outgoingCall
Request Body required
The unique id of the call
The time an outgoing call was initiated
The number that was called
The number that is calling
- 200
Your server returns this code if it accepts the callback
callStart
Request Body required
The unique id of the call
The time outgoing call was answered
The email of the user that answered the call
Possible values: [``, 1
, 2
, 3
, 4
, 5
, 6
, 7
, 8
, 9
, 0
, *
, #
]
The choice made by the callee in the interactive menu
- 200
Your server returns this code if it accepts the callback
callEnd
Request Body required
The unique id of the call
The time an outgoing call was initiated
Possible values: [UNANSWERED
, ANSWERED
, BLACKLISTED
, VOICEMAIL
, CALLCENTER
, OUTSIDE_OPERATION_TIMES
]
The cause of the call ending
- 200
Your server returns this code if it accepts the callback