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}/alertsAdd a webhook or Telegram channel; a webhook's signing secret is shown once
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
object
kindstring requiredAllowed values:"webhook""telegram""email"namestring requiredurlstring optional write-onlytokenstring optional write-onlychat_idstring optional write-onlyemailstring optionalThe address
eventsarray<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
idstring requiredtenant_idstring requiredkindstring requiredAllowed values:"webhook""telegram""email"namestring requiredtargetstring requiredThe webhook's host, the Telegram chat or the email address
eventsarray<string> requiredcreated_atstring (date-time) requiredatstring (date-time) requiredeventstring requiredtitlestring requiredstatusinteger requiredHTTP status, 0 when nothing answered
errorstring required
secretstring optionalWebhook 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
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required