Skip to main content
POST
/
api
/
v1
/
notification-policies
Create a notification policy with match rules and escalation chain
curl --request POST \
  --url https://api.devhelm.io/api/v1/notification-policies \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "escalation": {
    "steps": [
      {
        "channelIds": [
          "3c90c3cc-0d44-4b50-8888-8dd25736052a"
        ],
        "delayMinutes": 1,
        "requireAck": true,
        "repeatIntervalSeconds": 2
      }
    ],
    "onResolve": "<string>",
    "onReopen": "<string>"
  },
  "matchRules": [
    {
      "type": "<string>",
      "value": "<string>",
      "monitorIds": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ],
      "regions": [
        "<string>"
      ],
      "values": [
        "<string>"
      ]
    }
  ],
  "enabled": true,
  "priority": 0
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "organizationId": 123,
    "name": "<string>",
    "matchRules": [
      {
        "type": "<string>",
        "value": "<string>",
        "monitorIds": [
          "3c90c3cc-0d44-4b50-8888-8dd25736052a"
        ],
        "regions": [
          "<string>"
        ],
        "values": [
          "<string>"
        ]
      }
    ],
    "escalation": {
      "steps": [
        {
          "channelIds": [
            "3c90c3cc-0d44-4b50-8888-8dd25736052a"
          ],
          "delayMinutes": 1,
          "requireAck": true,
          "repeatIntervalSeconds": 2
        }
      ],
      "onResolve": "<string>",
      "onReopen": "<string>"
    },
    "enabled": true,
    "priority": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

API key (dh_live_...) or Auth0 JWT token

Body

application/json

Request body for creating a notification policy

name
string
required

Human-readable name for this policy

Maximum string length: 255
escalation
object
required

Escalation chain defining which channels to notify; null preserves current

matchRules
object[]

Match rules to evaluate (all must pass; omit or empty for catch-all)

enabled
boolean
default:true

Whether this policy is enabled (default true)

priority
integer<int32>
default:0

Evaluation priority; higher value = evaluated first (default 0)

Response

201 - */*

Created

data
object

Org-level notification policy with match rules and escalation chain