Create a webhook OAuth Scope: webhooks:write

Create a new webhook for a given publication.

Authentication

AuthorizationBearer

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

Path parameters

publicationIdstringRequiredformat: "^(pub_[0-9a-fA-F\-]+)$"
The prefixed ID of the publication object

Request

This endpoint expects an object.
urlstringRequiredformat: "uri"
The webhook URL to send events to.
event_typeslist of enumsRequired
The types of events the webhook will receive.
descriptionstringOptional
A description of the webhook.

Response

Webhook created
dataobject

Errors