A valid request URL is required to generate request examples{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "slack",
"destination_hint": "<string>",
"description": "<string>",
"enabled": true,
"disabled_reason": "<string>",
"last_delivered_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}Register an alert channel
Requires alerts:manage. A channel belongs to the organization rather than to one environment, deliberately: somebody watching an ops channel wants both environments’ bad news in one place, and the message says which environment it came from.
Chat destinations are checked against a host allowlist — hooks.slack.com for Slack, discord.com for Discord. That is not fussiness: unlike a webhook delivery, an alert carries no signature, so an arbitrary URL here would be a POST from our network to an address of somebody’s choosing.
Storing a destination says nothing about whether it works. POST /{id}/test is what finds out.
A valid request URL is required to generate request examples{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "slack",
"destination_hint": "<string>",
"description": "<string>",
"enabled": true,
"disabled_reason": "<string>",
"last_delivered_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}Authorizations
Headers
The organization the caller is acting on — the org_… code that appears in the panel URL. It identifies; the membership JOIN is what authorizes, so a forged code reads nothing: the answer is not_a_member (403), which does not mean the session is over. Absent, the session's default organization answers, or — if that membership was revoked while the session was open — any other one the caller still holds.
Body
Response
Registered.