POST
/
api
/
webhooks
curl --request POST \
  --url https://api.ultravox.ai/api/webhooks \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "url": "<string>",
  "secrets": [
    "<string>"
  ],
  "events": [
    "call.started"
  ]
}'
{
  "webhookId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created": "2023-11-07T05:31:56Z",
  "url": "<string>",
  "secrets": [
    "<string>"
  ],
  "events": [
    "call.started"
  ]
}

Authorizations

X-API-Key
string
header
required

API key

Body

application/json
url
string
required
Maximum length: 200
events
enum<string>[]
required
  • call.started - Fired when a call starts
  • call.joined - Fired when a call is joined
  • call.ended - Fired when a call ends
Available options:
call.started,
call.joined,
call.ended
secrets
string[]

Response

201 - application/json
webhookId
string
required
created
string
required
url
string
required
Maximum length: 200
events
enum<string>[]
required
  • call.started - Fired when a call starts
  • call.joined - Fired when a call is joined
  • call.ended - Fired when a call ends
Available options:
call.started,
call.joined,
call.ended
secrets
string[]