Webhooks
Create Webhook
POST
/
v1
/
webhooks
/
create
curl --request POST \
--url https://api.vocode.dev/v1/webhooks/create \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"method": "GET",
"subscriptions": [
"event_message"
],
"url": "<string>"
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"method": "GET",
"subscriptions": [
"event_message"
],
"url": "<string>",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
method
enum<string>
An enumeration.
Available options:
GET
, POST
subscriptions
enum<string>[]
requiredAvailable options:
event_message
, event_action
, event_phone_call_connected
, event_phone_call_ended
, event_transcript
, event_recording
, event_human_detection
url
string
requiredResponse
200 - application/json
id
string
requiredmethod
enum<string>
An enumeration.
Available options:
GET
, POST
subscriptions
enum<string>[]
requiredAvailable options:
event_message
, event_action
, event_phone_call_connected
, event_phone_call_ended
, event_transcript
, event_recording
, event_human_detection
url
string
requireduser_id
string
requiredcurl --request POST \
--url https://api.vocode.dev/v1/webhooks/create \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"method": "GET",
"subscriptions": [
"event_message"
],
"url": "<string>"
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"method": "GET",
"subscriptions": [
"event_message"
],
"url": "<string>",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}