Skip to main content
POST
/
v1
/
alert_routes
Creates an alert route
curl --request POST \
  --url https://api.rootly.com/v1/alert_routes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '
{
  "data": {
    "type": "alert_routes",
    "attributes": {
      "name": "<string>",
      "alerts_source_ids": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ],
      "enabled": true,
      "owning_team_ids": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ],
      "rules": [
        {
          "name": "<string>",
          "destinations": [
            {
              "target_type": "Service",
              "target_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
            }
          ],
          "condition_groups": [
            {
              "conditions": [
                {
                  "property_field_condition_type": "is_one_of",
                  "property_field_type": "attribute",
                  "property_field_name": "<string>",
                  "property_field_value": "<string>",
                  "property_field_values": [
                    "<string>"
                  ],
                  "alert_urgency_ids": [
                    "<string>"
                  ],
                  "conditionable_type": "AlertField",
                  "conditionable_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
                }
              ],
              "position": 123
            }
          ],
          "position": 123,
          "fallback_rule": true
        }
      ]
    }
  }
}
'
{
  "data": {
    "id": "954c0f48-4753-4182-a349-5ca9614d0313",
    "type": "alert_routes",
    "attributes": {
      "name": "Test Alert Route c4c2",
      "enabled": true,
      "created_at": "2026-01-21T11:14:22.663-08:00",
      "updated_at": "2026-01-21T11:14:22.663-08:00",
      "alerts_source_ids": [
        "cacd80f4-f705-4749-bc93-771054bd3f2b"
      ],
      "owning_team_ids": [
        "1852a133-5432-46e5-a5b4-e0bdb32681be"
      ],
      "rules": [
        {
          "id": "c81e8e3f-e15d-421d-a4b2-be4e8320a8f0",
          "name": "Test Routing Rule",
          "alerts_source_id": null,
          "condition_type": "all",
          "enabled": true,
          "position": 1,
          "destination": {
            "target_type": "Group",
            "target_id": "1852a133-5432-46e5-a5b4-e0bdb32681be"
          },
          "created_at": "2026-01-21T11:14:22.669-08:00",
          "updated_at": "2026-01-21T11:14:22.669-08:00",
          "destinations": [
            {
              "target_type": "Group",
              "target_id": "1852a133-5432-46e5-a5b4-e0bdb32681be"
            }
          ],
          "condition_groups": [
            {
              "position": 1,
              "conditions": [
                {
                  "property_field_condition_type": "is_one_of",
                  "property_field_name": "summary",
                  "property_field_type": "attribute",
                  "property_field_value": null,
                  "property_field_values": [
                    "Error from system"
                  ],
                  "conditionable_id": null,
                  "conditionable_type": null
                }
              ]
            }
          ],
          "owning_teams": [],
          "fallback_rule": false
        }
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/vnd.api+json
data
object

Response

unknown attribute filtered out gracefully

data
object
required