API referenceSections

Add a webhook or Telegram channel; a webhook's signing secret is shown once

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

POST /api/v1/tenants/{tid}/alerts

Add a webhook or Telegram channel; a webhook's signing secret is shown once

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

object
  • kind string required
    Allowed values: "webhook" "telegram" "email"
  • name string required
  • url string optional write-only
  • token string optional write-only
  • chat_id string optional write-only
  • email string optional

    The address

  • events array<string> required
Example
{
  "kind": "webhook",
  "name": "string",
  "url": "string",
  "token": "string",
  "chat_id": "string",
  "email": "string",
  "events": [
    "string"
  ]
}

Responses

201 Created

Content type: application/json

AlertChannel & object
  • id string required
  • tenant_id string required
  • kind string required
    Allowed values: "webhook" "telegram" "email"
  • name string required
  • target string required

    The webhook's host, the Telegram chat or the email address

  • events array<string> required
  • created_at string (date-time) required
  • deliveries array<AlertDelivery> optional
    • at string (date-time) required
    • event string required
    • title string required
    • status integer required

      HTTP status, 0 when nothing answered

    • error string required
  • secret string optional

    Webhook signing secret, shown only now

Example
{
  "id": "string",
  "tenant_id": "string",
  "kind": "webhook",
  "name": "string",
  "target": "string",
  "events": [
    "string"
  ],
  "created_at": "2026-01-01T00:00:00Z",
  "deliveries": [
    {
      "at": "2026-01-01T00:00:00Z",
      "event": "string",
      "title": "string",
      "status": 0,
      "error": "string"
    }
  ],
  "secret": "string"
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required