Webhooks

Create Webhook

Create a new webhook for the current user.

  • data: CreateWebhookPayload - The data for creating the webhook.
  • user: User - The current authenticated user.

Returns: dict - The created webhook data.

post/v2/webhooks

Request

Headers

user-agentstring nullable
authorizationstring nullable

Request body

urlstring uri required
sharedSecretstring nullable
allPassTemplatesboolean nullable
allowedTemplatesPydanticObjectId[] nullable
allEventTypesboolean nullable

Example request

{
  "allowedTemplates": [
    "5eb7cf5a86d9755df3a6c593"
  ]
}

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 7 revisions of this API.