Skip to main content
POST
Create a new webhook for calls

Authorizations

Authorization
string
header
required

Body

application/json
url
string<uri>
required

The endpoint that receives events from the webhook.

Example:

"https://example.com/"

events
enum<string>[]
required
Available options:
call.completed,
call.ringing,
call.recording.completed
resourceIds

The unique identifiers of the phone numbers associated with the webhook.

Pattern: ^PN(.*)$
Example:
userId
string

The unique identifier of the user that creates the webhook. If not provided, default to workspace owner.

Pattern: ^US(.*)$
Example:

"US123abc"

label
string

Webhook's label

Example:

"my webhook label"

status
enum<string>
default:enabled

The status of the webhook.

Available options:
enabled,
disabled
Example:

"enabled"

Response

Created

data
object
required