POST
/
v1
/
webhooks
/
update
curl --request POST \
  --url https://api.vocode.dev/v1/webhooks/update \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "subscriptions": [
    "event_message"
  ],
  "url": "<string>",
  "method": "GET"
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "subscriptions": [
    "event_message"
  ],
  "url": "<string>",
  "method": "GET"
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

id
string
required

Body

application/json
subscriptions
Available options:
event_message,
event_action,
event_phone_call_connected,
event_phone_call_ended,
event_phone_call_did_not_connect,
event_transcript,
event_recording,
event_human_detection
url
method

An enumeration.

Available options:
GET,
POST

Response

200 - application/json
id
string
required
user_id
string
required
subscriptions
enum<string>[]
required
Available options:
event_message,
event_action,
event_phone_call_connected,
event_phone_call_ended,
event_phone_call_did_not_connect,
event_transcript,
event_recording,
event_human_detection
url
string
required
method
enum<string>

An enumeration.

Available options:
GET,
POST