List Slack integrations
List the Slack channels connected for incident notifications.
Page to return, starting at 1.
Results per page. Maximum 250.
Team to use, such as t123. Get the ID via List teams. Required when you can access more than one team.
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.
{
"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
}
}
{
"errors": "Invalid Team API token. How to find your Team API token: https://betterstack.com/docs/uptime/api/getting-started-with-uptime-api/#get-an-incidents-api-token"
}
Returns the list of Slack integrations.
The API token is missing or invalid.
Your role doesn't allow viewing this, or the token can't be used for this API.
The ID of the Slack integration.
Always slack_integration.
Slack workspace id.
Slack workspace name.
Slack channel id.
Slack channel name.
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.
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.
Display name for the channel in Better Stack. Send an empty string to clear it.
Who is invited to incident channels. Replaces the whole list.
What is invited. Possible values: user, on_call_calendar, slack_user_group.
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.
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.
Type of routing target.
Valid values:team: A team, notified through the channels turned on in this entry.policy: An escalation policy.
A team's ID from List teams, such as t123, or an escalation policy's ID from List escalation policies.
Team or escalation policy name.
The escalation policy's team, as its team ID such as t123. Only on policy entries.
The escalation policy's team name. Only on policy entries.
Whether to notify the team by phone call. Only on team entries.
Whether to notify the team by SMS. Only on team entries.
Whether to notify the team by e-mail. Only on team entries.
Whether to send the team a push notification. Only on team entries.
Whether to send the team a critical alert. Only on team entries.
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.
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.
The resource's ID.
Whether incident channels are created as private channels. Needs at least one entry in channel_invitees.
Whether Slack users can alert every team and escalation policy in the organization, or only the ones in alert_options.
Whether people who join the Slack workspace are invited into the integration's Better Stack team as responders.
Whether the channel is notified when the primary responder changes.
Whether to post when a monitor, heartbeat, group or integration is paused.
Whether to post when an incident is resolved.
Whether to send a direct message to users mentioned in incidents.
Whether tagging Better Stack in Slack starts an AI SRE conversation.
Whether only the members of this channel can create incidents.
Whether to post incident timeline events about e-mails, phone calls and integrations.
Whether to post incident metadata.
Whether to post status page updates. Turning it off clears status_page_update_resources.
Whether to post to the connected Slack channel when we notify the primary responder of an incident with no escalation policy.
Team that owns this integration, such as t123.
Name of the team that owns this integration.
The URL of the first page of results.
The URL of the last page of results.
The URL of the previous page, or null on the first page.
The URL of the next page, or null on the last page.
How many results the whole list holds, across every page.
Example cURL