Skip to main content
POST
Create a notification rule

Authorizations

X-API-Key
string
header
required

Body

channel
enum<string>
required

How the notification is sent

  • SLACK - Slack
  • EMAIL - Email
  • WEBHOOK - Webhook
Available options:
SLACK,
EMAIL,
WEBHOOK
destination
string
required

Where it is sent — an email address, or the channel address for the chosen channel

Maximum string length: 500
partnerId
string | null
write-only

Target partner id; honored only for multi-partner operators, ignored otherwise.

ruleId
string<uuid> | null

Announce only alerts raised by this detection rule; omit to cover every rule

secret
string
write-only

Secret used to sign each delivery, as an HMAC-SHA256 of the signing timestamp and the body. Never returned on a read: omit it to keep the stored one, or on create to have one generated

Maximum string length: 255
headers
object
write-only

Fixed headers added to every delivery, for an endpoint behind its own authentication. At most 10, and never returned on a read. The content type, signature, timestamp and event-type headers are set automatically and cannot be overridden

severityFilter
string[]

Alert severities that qualify. Narrow it, or a busy detection rule will flood the destination

isActive
boolean
default:true

Whether this rule currently announces anything

Response

201 - application/json
id
string<uuid>
required
read-only

Primary key

partnerId
integer
required
read-only
ruleId
string<uuid>
required
read-only
channel
enum<string>
required

Delivery channel

  • SLACK - Slack
  • EMAIL - Email
  • WEBHOOK - Webhook
Available options:
SLACK,
EMAIL,
WEBHOOK
destination
string
required
read-only

Slack/webhook URL or email address

severityFilter
any
required
read-only

Alert severities that trigger this rule

isActive
boolean
required
read-only

Whether this rule is currently enforced

createdAt
string<date-time>
required
read-only
updatedAt
string<date-time>
required
read-only