Channels
Where alerts are delivered: email, Slack, Discord, Microsoft Teams, Telegram, webhooks, Pushover, SMS and voice calls. Escalation paths send to channels. A channel that keeps failing is turned off automatically; a successful test turns it back on.
List channels
Returns the team's channels, by name.
query Parameters
filter[type]Only channels of this type.
filter[enabled]Only enabled (true) or disabled (false) channels.
pagePage number, from 1.
per_pageChannels per page, 1 to 100.
List channels › Responses
Paginated set of Channel
current_pagefirst_page_urlfromlast_page_urllast_pageGenerated paginator links.
next_page_urlpathBase path for paginator generated URLs.
per_pageNumber of items shown per page.
prev_page_urltoNumber of the last item in the slice.
totalTotal number of items being paginated.
Create a channel
Send type and the settings object of that type, for example type: "email" with
email: {address}. Webhook URLs must be public addresses. Slack channels post through a
Slack workspace connected under Integrations in the dashboard, Telegram channels are
connected there too. Create channels before the escalation paths that use them.
Create a channel › Request Body
nameName shown in escalation paths
typeWhere the channel delivers; telegram can't be created through the API
enabledWhether it delivers from the start. Default true
Settings of an email channel
Settings of a slack channel
Settings of a discord channel
Settings of a microsoft_teams channel
Settings of a webhook channel
Settings of a pushover channel
Settings of an sms channel
Settings of a voice channel
Create a channel › Responses
The new channel.
idChannel ID
nameName shown in escalation paths
typeWhere the channel delivers
enabledWhether the channel delivers. false when a member turned it off or Spectate did after repeated failures (auto_disabled)
auto_disabledWhether Spectate turned the channel off because deliveries kept failing. Fix the cause, then enable it or send a test with enable
disabled_atWhen the channel was turned off automatically
disabled_reasonWhy it was turned off automatically
consecutive_failuresFailed deliveries since the last successful one
failing_sinceSince when deliveries fail
last_failure_atWhen a delivery last failed
last_failure_reasonWhy the last delivery failed
last_delivered_atWhen a delivery last succeeded
created_atWhen the channel was created
Get a channel
Returns the channel with its delivery health. Secrets in its settings are never returned.
path Parameters
channelChannel ID.
Get a channel › Responses
The channel.
idChannel ID
nameName shown in escalation paths
typeWhere the channel delivers
enabledWhether the channel delivers. false when a member turned it off or Spectate did after repeated failures (auto_disabled)
auto_disabledWhether Spectate turned the channel off because deliveries kept failing. Fix the cause, then enable it or send a test with enable
disabled_atWhen the channel was turned off automatically
disabled_reasonWhy it was turned off automatically
consecutive_failuresFailed deliveries since the last successful one
failing_sinceSince when deliveries fail
last_failure_atWhen a delivery last failed
last_failure_reasonWhy the last delivery failed
last_delivered_atWhen a delivery last succeeded
created_atWhen the channel was created
Update a channel
Changes only the fields you send. The settings object of the channel's type replaces the
current settings, including secrets: send them again. Other types' objects are refused
(422); create a new channel to change the type. Enabling clears an automatic disable.
path Parameters
channelChannel ID.
Update a channel › Request Body
nameName shown in escalation paths
enabledTurn delivery on or off. Turning it on clears an automatic disable and its failure count
New settings of an email channel
New settings of a slack channel
New settings of a discord channel
New settings of a microsoft_teams channel
New settings of a webhook channel
New settings of a pushover channel
New settings of an sms channel
New settings of a voice channel
Update a channel › Responses
The updated channel.
idChannel ID
nameName shown in escalation paths
typeWhere the channel delivers
enabledWhether the channel delivers. false when a member turned it off or Spectate did after repeated failures (auto_disabled)
auto_disabledWhether Spectate turned the channel off because deliveries kept failing. Fix the cause, then enable it or send a test with enable
disabled_atWhen the channel was turned off automatically
disabled_reasonWhy it was turned off automatically
consecutive_failuresFailed deliveries since the last successful one
failing_sinceSince when deliveries fail
last_failure_atWhen a delivery last failed
last_failure_reasonWhy the last delivery failed
last_delivered_atWhen a delivery last succeeded
created_atWhen the channel was created
Send a test notification
Delivers a test through the channel right away and returns when it was accepted. A
successful test clears the failure count and, with enable, turns a disabled channel back
on. A failed test (422 CHANNEL_TEST_FAILED) doesn't count towards turning it off. SMS
and voice tests use the team's notification credits (422 NOTIFICATION_CREDITS_EXHAUSTED
without them). Limited to 10 tests a minute per token.
path Parameters
channelChannel ID.
Send a test notification › Request Body
enableEnable the channel again when the test succeeds, also after Spectate turned it off. Default false
Send a test notification › Responses
The test was delivered.
messageWhat was sent
The channel after the test: its failure count is cleared, and with enable it's enabled again