Get Slack integration

Returns a single Slack integration by ID.

GET https://incidents.betterstack.com/api/v2/slack-integrations/{slack_integration_id}

URL parameters

slack_integration_id
required string

Headers

Authorization
required string
200

Response body

{
  "data": {
    "id": "37",
    "type": "slack_integration",
    "attributes": {
      "slack_team_id": "T04UQ7K4QMB",
      "slack_team_name": "My Slack integration",
      "slack_channel_id": "C07Q2KF20EU",
      "slack_channel_name": "#better-stack-incidents",
      "slack_status": "active",
      "integration_type": "channel",
      "on_call_notifications": true,
      "notify_alongside_primary_responder": true,
      "channel_display_name": null,
      "channel_invitees": [
        {
          "type": "on_call_calendar",
          "id": 1
        }
      ],
      "status_page_update_resources": [],
      "private_channel": false,
      "alert_all_teams_and_policies": false,
      "invite_new_slack_users": 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": false,
      "team_name": "Testing",
      "alert_options": [
        {
          "type": "policy",
          "id": 73,
          "name": "High severity policy",
          "team_id": 7,
          "team_name": "My team"
        },
        {
          "type": "team",
          "id": 7,
          "name": "My team",
          "call": false,
          "sms": false,
          "email": true,
          "push": false,
          "critical_alert": false
        }
      ]
    }
  }
}

Response attributes

id
string
type
string
attributes.slack_team_id
string
attributes.slack_team_name
string
attributes.slack_channel_id
string
attributes.slack_channel_name
string
attributes.slack_status
string
attributes.integration_type
string
attributes.on_call_notifications
boolean
attributes.notify_alongside_primary_responder
boolean
attributes.channel_display_name
string or null
attributes.channel_invitees
array
attributes.channel_invitees[].type
string
attributes.channel_invitees[].id
integer
attributes.status_page_update_resources
array
attributes.status_page_update_resources[].type
string
attributes.status_page_update_resources[].id
integer
attributes.private_channel
boolean
attributes.alert_all_teams_and_policies
boolean
attributes.invite_new_slack_users
boolean
attributes.notify_on_pause
boolean
attributes.notify_on_resolve
boolean
attributes.direct_message_on_mention
boolean
attributes.ai_sre_on_mention
boolean
attributes.restrict_incident_creation_to_channel
boolean
attributes.post_timeline_events
boolean
attributes.post_incident_metadata
boolean
attributes.post_status_page_updates
boolean
attributes.team_name
string
attributes.alert_options
array
attributes.alert_options[].type
string
attributes.alert_options[].id
integer
attributes.alert_options[].name
string
attributes.alert_options[].team_id
integer
attributes.alert_options[].team_name
string
attributes.alert_options[].call
boolean
attributes.alert_options[].sms
boolean
attributes.alert_options[].email
boolean
attributes.alert_options[].push
boolean
attributes.alert_options[].critical_alert
boolean

Example cURL

Example
curl --request GET \
  --url https://incidents.betterstack.com/api/v2/slack-integrations/37 \
  --header "Authorization: Bearer $TOKEN"