Skip to content
ClickHouse Docs
ClickHouse DocsClickHouse Docs

Create Webhook

POST/api/v2/webhooks

Creates a new webhook for the authenticated team.

Authorizations

  • AuthorizationBearer API Keyheaderrequired
    `Authorization: Bearer <token>`

Request bodyJSON

  • namestringrequired

    Webhook name. Must be unique per service within the team.

    maxLength: 1024
    Example: "Production Alerts"
  • serviceslackorincidentioorgenericrequired

    Webhook service type.

    Example: "slack"
  • urlstringrequired

    Webhook destination URL.

    format: uri, maxLength: 2048
    Example: "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
  • descriptionoptionalstring

    Webhook description, shown in the UI.

    maxLength: 2048
    Example: "Sends critical alerts to the #incidents channel"
  • bodyoptionalstring

    Optional request body template. Only for generic/incidentio; rejected for slack.

    maxLength: 16384
    Example: "{\"alert\": \"{{title}}\", \"severity\": \"{{level}}\"}"
  • headersoptionalmap ofstring

    Write-only. Custom HTTP headers sent with the webhook request. Never returned on read. Only for generic/incidentio; rejected for slack. Each value is capped at 4096 characters.

    Example: {"Authorization":"Bearer secret-token"}
  • queryParamsoptionalmap ofstring

    Write-only. Query parameters appended to the webhook URL. Never returned on read. Only for generic/incidentio; rejected for slack. Each value is capped at 4096 characters.

Response

JSON

200

Successfully created webhook

JSON
  • The webhook object.

    3 variants

    One of the following:

    • SlackWebhookslack
      7 properties
      • idstringrequired

        Webhook ID

        Example: "507f1f77bcf86cd799439011"
      • namestringrequired

        Webhook name

        Example: "Production Alerts"
      • serviceslackrequired

        Webhook service type

        Example: "slack"
      • updatedAtstringrequired

        Last update timestamp

        format: date-time
        Example: "2025-06-15T10:30:00.000Z"
      • createdAtstringrequired

        Creation timestamp

        format: date-time
        Example: "2025-01-01T00:00:00.000Z"
      • urloptionalstring

        Slack incoming webhook URL

        Example: "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
      • descriptionoptionalstring

        Webhook description, shown in the UI

        Example: "Sends critical alerts to the #incidents channel"
    • IncidentIOWebhookincidentio
      7 properties
      • idstringrequired

        Webhook ID

        Example: "507f1f77bcf86cd799439012"
      • namestringrequired

        Webhook name

        Example: "Incident Response"
      • serviceincidentiorequired

        Webhook service type

        Example: "incidentio"
      • updatedAtstringrequired

        Last update timestamp

        format: date-time
        Example: "2025-06-15T10:30:00.000Z"
      • createdAtstringrequired

        Creation timestamp

        format: date-time
        Example: "2025-01-01T00:00:00.000Z"
      • urloptionalstring

        incident.io alert event HTTP source URL

        Example: "https://api.incident.io/v2/alert_events/http/abc123"
      • descriptionoptionalstring

        Webhook description, shown in the UI

        Example: "Routes alerts to incident.io for on-call escalation"
    • GenericWebhookgeneric
      8 properties
      • idstringrequired

        Webhook ID

        Example: "507f1f77bcf86cd799439013"
      • namestringrequired

        Webhook name

        Example: "PagerDuty Integration"
      • servicegenericrequired

        Webhook service type

        Example: "generic"
      • updatedAtstringrequired

        Last update timestamp

        format: date-time
        Example: "2025-06-15T10:30:00.000Z"
      • createdAtstringrequired

        Creation timestamp

        format: date-time
        Example: "2025-01-01T00:00:00.000Z"
      • urloptionalstring

        Webhook destination URL

        Example: "https://example.com/webhooks/alerts"
      • descriptionoptionalstring

        Webhook description, shown in the UI

        Example: "Forwards alert payloads to an external monitoring service"
      • bodyoptionalstring

        Optional request body template

        Example: "{\"alert\": \"{{title}}\", \"severity\": \"{{level}}\"}"
Navigation