oncall-engine/docs/sources/oncall-api-reference/slack_channels.md
Jack Baldry 95b6ad9f92
Convert front matter to YAML and add current aliases to all pages
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
2022-06-09 10:08:07 +01:00

763 B

aliases title weight
/docs/grafana-cloud/oncall/oncall-api-reference/slack_channels/
/docs/oncall/latest/oncall-api-reference/slack_channels/
Slack Channels HTTP API 1300

List Slack Channels

curl "{{API_URL}}/api/v1/slack_channels/" \
  --request GET \
  --header "Authorization: meowmeowmeow" \
  --header "Content-Type: application/json"

The above command returns JSON structured in the following way:

{
  "count": 1,
  "next": null,
  "previous": null,
  "results": [
    {
      "name": "meow_channel",
      "slack_id": "MEOW_SLACK_ID"
    }
  ]
}

The following available filter parameter should be provided as a GET argument:

  • channel_name

HTTP Request

GET {{API_URL}}/api/v1/slack_channels/