Webhooks

Create a new webhook

Changed on
post/projects/{project_id}/webhooks

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

project_idinteger required

Project ID

Request body

enabledboolean nullable

Whether the webhook is enabled

eventsstring[] required

Event types to subscribe to

secretstring password nullable

A credential. Write-only: it is never returned, and the AI assistant supplies it through a secret slot instead of typing it into the conversation.

urlstring required

Target URL for webhook delivery

Example request

{
  "events": [
    "deployment.created",
    "deployment.succeeded"
  ],
  "url": "https://example.com/webhook"
}

Response

Webhook created

created_atstring date-time required
enabledboolean required
eventsstring[] required
has_secretboolean required
idinteger required
project_idinteger required
updated_atstring date-time required
urlstring required

Example response

{
  "created_at": "2025-10-12T12:15:47.609192Z",
  "updated_at": "2025-10-12T12:15:47.609192Z"
}

Changes

    • breaking

      the request property secret became not nullable

    • breaking

      the secret request property type changed from string null to no type

    • info

      added subschema #2 to the secret request property oneOf list