Create a webhook

Create a new webhook subscription. If this is the first webhook for this AI Agent, the webhook infrastructure is automatically provisioned

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
urlstringRequiredformat: "uri"
The URL that will receive webhook events
descriptionstringOptionalDefaults to
A description of the webhook
event_filterslist of stringsOptional
Event types to subscribe to. An empty list subscribes to all events
enabledbooleanOptionalDefaults to true
Whether the webhook is enabled

Response

Webhook created
idstring or nullRead-only
The webhook ID
urlstring or nullformat: "uri"
The URL that will receive webhook events
descriptionstring or null
A description of the webhook
event_filterslist of strings or null
Event types this webhook is subscribed to. If empty, the webhook receives all events
enabledboolean or null
Whether the webhook is enabled
created_atstring or nullRead-onlyformat: "date-time"
When the webhook was created
updated_atstring or nullRead-onlyformat: "date-time"
When the webhook was last updated

Errors