Alert Routes V2

Configure your alert routes in incident.io.

Alert routes define how alerts from different sources are processed, grouped, and routed to the right teams and people.

List Alert Routes V2

List all alert routes in your account.

Request
query Parameters
page_size
required
integer <int64> [ 1 .. 50 ]
Default: 25

Number of alert routes to return per page

Example: page_size=25
after
string

The ID of the last alert route on the previous page

Examples:
after=01FCNDV6P870EA6S7TK1DSYDG0
Responses
200

OK response.

get/v2/alert_routes
Request samples
Response samples
application/json
{
  • "alert_routes": [
    ],
  • "pagination_meta": {
    }
}

Create Alert Routes V2

Create a new alert route in your account.

Request
Request Body schema: application/json
required
required
Array of objects (AlertRouteAlertSourcePayloadV2)

Which alert sources should this alert route match?

required
Array of objects (AlertRouteChannelConfigPayloadV2)

The channel configuration for this alert route

required
Array of objects (ConditionGroupPayloadV2)

What condition groups must be true for this alert route to fire?

created_at
string <date-time>

The time of creation of this alert route

enabled
required
boolean

Whether this alert route is enabled or not

required
object (AlertRouteEscalationConfigPayloadV2)
required
Array of objects (ExpressionPayloadV2)

The expressions used in this template

required
object (AlertRouteIncidentConfigPayloadV2)
required
object (AlertRouteIncidentTemplatePayloadV2)
is_private
required
boolean

Whether this alert route is private. Private alert routes will only create private incidents from alerts.

name
required
string

The name of this alert route config, for the user's reference

updated_at
string <date-time>

The time of last update of this alert route

version
required
integer <int64>

The version of this alert route config

Responses
201

Created response.

post/v2/alert_routes
Request samples
application/json
{
  • "alert_sources": [
    ],
  • "channel_config": [
    ],
  • "condition_groups": [
    ],
  • "created_at": "2021-08-17T13:28:57.801578Z",
  • "enabled": false,
  • "escalation_config": {
    },
  • "expressions": [
    ],
  • "incident_config": {
    },
  • "incident_template": {
    },
  • "is_private": false,
  • "name": "Production incidents",
  • "updated_at": "2021-08-17T13:28:57.801578Z",
  • "version": 1
}
Response samples
application/json
{
  • "alert_route": {
    }
}

Delete Alert Routes V2

Delete an existing alert route in your account.

Request
path Parameters
id
required
string

Unique identifier of the alert route

Example: 01FCNDV6P870EA6S7TK1DSYDG0
Responses
204

No Content response.

delete/v2/alert_routes/{id}
Request samples

Show Alert Routes V2

Load details about a specific alert route in your account.

Request
path Parameters
id
required
string

Unique identifier of the alert route

Example: 01FCNDV6P870EA6S7TK1DSYDG0
Responses
200

OK response.

get/v2/alert_routes/{id}
Request samples
Response samples
application/json
{
  • "alert_route": {
    }
}

Update Alert Routes V2

Update an existing alert route in your account.

Request
path Parameters
id
required
string

Unique identifier of the alert route

Examples:
01FCNDV6P870EA6S7TK1DSYDG0
Request Body schema: application/json
required
required
Array of objects (AlertRouteAlertSourcePayloadV2)

Which alert sources should this alert route match?

required
Array of objects (AlertRouteChannelConfigPayloadV2)

The channel configuration for this alert route

required
Array of objects (ConditionGroupPayloadV2)

What condition groups must be true for this alert route to fire?

created_at
string <date-time>

The time of creation of this alert route

enabled
required
boolean

Whether this alert route is enabled or not

required
object (AlertRouteEscalationConfigPayloadV2)
required
Array of objects (ExpressionPayloadV2)

The expressions used in this template

required
object (AlertRouteIncidentConfigPayloadV2)
required
object (AlertRouteIncidentTemplatePayloadV2)
is_private
required
boolean

Whether this alert route is private. Private alert routes will only create private incidents from alerts.

name
required
string

The name of this alert route config, for the user's reference

updated_at
string <date-time>

The time of last update of this alert route

version
required
integer <int64>

The version of this alert route config

Responses
200

OK response.

put/v2/alert_routes/{id}
Request samples
application/json
{
  • "alert_sources": [
    ],
  • "channel_config": [
    ],
  • "condition_groups": [
    ],
  • "created_at": "2021-08-17T13:28:57.801578Z",
  • "enabled": false,
  • "escalation_config": {
    },
  • "expressions": [
    ],
  • "incident_config": {
    },
  • "incident_template": {
    },
  • "is_private": false,
  • "name": "Production incidents",
  • "updated_at": "2021-08-17T13:28:57.801578Z",
  • "version": 1
}
Response samples
application/json
{
  • "alert_route": {
    }
}