List Slack integrations

List the Slack channels connected for incident notifications.

GET https://incidents.betterstack.com/api/v4/slack-integrations
page integer

Page to return, starting at 1.

per_page integer default: 50

Results per page. Maximum 250.

team_id string

Team to use, such as t123. Get the ID via List teams. Required when you can access more than one team.

Authorization string required

Bearer $TOKEN

Results are paginated

Use pagination.next and pagination.prev to move through pages or jump to a specific one using page and per_page. See Pagination.

200 OK
{
  "data": [
    {
      "id": "123456789",
      "type": "slack_integration",
      "attributes": {
        "slack_team_id": "T04UQ7K4QMB",
        "slack_team_name": "Acme Inc.",
        "slack_channel_id": "C07Q2KF20EU",
        "slack_channel_name": "#better-stack-incidents",
        "slack_status": "active",
        "integration_type": "channel",
        "channel_display_name": "Incidents",
        "channel_invitees": [
          {
            "type": "user",
            "id": "u123"
          },
          {
            "type": "on_call_calendar",
            "id": "1"
          }
        ],
        "alert_options": [
          {
            "type": "policy",
            "id": "73",
            "name": "High severity policy",
            "team_id": "t7",
            "team_name": "Production"
          },
          {
            "type": "team",
            "id": "t7",
            "name": "Production",
            "call": false,
            "sms": false,
            "email": true,
            "push": false,
            "critical_alert": false
          }
        ],
        "status_page_update_resources": [
          {
            "type": "status_page",
            "id": "1"
          }
        ],
        "private_channel": false,
        "alert_all_teams_and_policies": false,
        "invite_new_slack_users": true,
        "on_call_notifications": true,
        "notify_on_pause": true,
        "notify_on_resolve": true,
        "direct_message_on_mention": true,
        "ai_sre_on_mention": true,
        "restrict_incident_creation_to_channel": false,
        "post_timeline_events": true,
        "post_incident_metadata": true,
        "post_status_page_updates": true,
        "notify_alongside_primary_responder": true,
        "team_id": "t123",
        "team_name": "Production"
      }
    }
  ],
  "pagination": {
    "first": "https://incidents.betterstack.com/api/v4/slack-integrations?page=1",
    "last": "https://incidents.betterstack.com/api/v4/slack-integrations?page=1",
    "prev": null,
    "next": null,
    "total_count": 1
  }
}

Returns the list of Slack integrations.

id string

The ID of the Slack integration.

type string

Always slack_integration.

slack_team_id string

Slack workspace id.

slack_team_name string

Slack workspace name.

slack_channel_id string

Slack channel id.

slack_channel_name string

Slack channel name.

slack_status string

Whether the connected Slack account is active.
Valid values:
active: The connected Slack account is active.
account_inactive: Slack reports the connected account as inactive.

integration_type string

How incidents are posted to Slack.
Valid values:
verbose: Posts every incident to the connected channel.
thread: Starts a thread for each incident in the connected channel. Needs a paid plan.
channel: Creates a new channel for each incident. Needs a paid plan.

channel_display_name string or null

Display name for the channel in Better Stack. Send an empty string to clear it.

channel_invitees array of objects

Who is invited to incident channels. Replaces the whole list.

channel_invitees[].type string

What is invited. Possible values: user, on_call_calendar, slack_user_group.

channel_invitees[].id string

ID of the on-call schedule or Slack user group. A user is u123 or their e-mail, and is returned as u123. Get a user's ID via List team members.

alert_options array of objects

The teams and escalation policies Slack users can alert from Slack, as under Who can Slack users alert? in the web app. An update replaces the whole list. An alert channel left out of a team entry is off.

alert_options[].type string

Type of routing target.
Valid values:
team: A team, notified through the channels turned on in this entry.
policy: An escalation policy.

alert_options[].id string

A team's ID from List teams, such as t123, or an escalation policy's ID from List escalation policies.

alert_options[].name string

Team or escalation policy name.

alert_options[].team_id string

The escalation policy's team, as its team ID such as t123. Only on policy entries.

alert_options[].team_name string

The escalation policy's team name. Only on policy entries.

alert_options[].call boolean

Whether to notify the team by phone call. Only on team entries.

alert_options[].sms boolean

Whether to notify the team by SMS. Only on team entries.

alert_options[].email boolean

Whether to notify the team by e-mail. Only on team entries.

alert_options[].push boolean

Whether to send the team a push notification. Only on team entries.

alert_options[].critical_alert boolean

Whether to send the team a critical alert. Only on team entries.

status_page_update_resources array of objects

Resources whose status page updates are posted to this channel. Empty means every resource of the integration's team. Needs post_status_page_updates turned on. An update replaces the whole list.

status_page_update_resources[].type string

Resource type. Possible values: status_page, monitor, heartbeat, monitor_group, heartbeat_group, webhook_integration, email_integration, incoming_webhook, amazon_sns_integration, manually_tracked_item, logs_chart, catalog_reference.

status_page_update_resources[].id string

The resource's ID.

private_channel boolean

Whether incident channels are created as private channels. Needs at least one entry in channel_invitees.

alert_all_teams_and_policies boolean

Whether Slack users can alert every team and escalation policy in the organization, or only the ones in alert_options.

invite_new_slack_users boolean

Whether people who join the Slack workspace are invited into the integration's Better Stack team as responders.

on_call_notifications boolean

Whether the channel is notified when the primary responder changes.

notify_on_pause boolean

Whether to post when a monitor, heartbeat, group or integration is paused.

notify_on_resolve boolean

Whether to post when an incident is resolved.

direct_message_on_mention boolean

Whether to send a direct message to users mentioned in incidents.

ai_sre_on_mention boolean

Whether tagging Better Stack in Slack starts an AI SRE conversation.

restrict_incident_creation_to_channel boolean

Whether only the members of this channel can create incidents.

post_timeline_events boolean

Whether to post incident timeline events about e-mails, phone calls and integrations.

post_incident_metadata boolean

Whether to post incident metadata.

post_status_page_updates boolean

Whether to post status page updates. Turning it off clears status_page_update_resources.

notify_alongside_primary_responder boolean

Whether to post to the connected Slack channel when we notify the primary responder of an incident with no escalation policy.

team_id string

Team that owns this integration, such as t123.

team_name string

Name of the team that owns this integration.

pagination.first string

The URL of the first page of results.

pagination.last string

The URL of the last page of results.

pagination.prev string or null

The URL of the previous page, or null on the first page.

pagination.next string or null

The URL of the next page, or null on the last page.

pagination.total_count integer

How many results the whole list holds, across every page.

Example cURL

List Slack integrations
curl --request GET \
  --url https://incidents.betterstack.com/api/v4/slack-integrations \
  --header "Authorization: Bearer $TOKEN"