oncall-engine/docs/sources/oncall-api-reference/slack_channels.md
Jack Baldry 87d0a50e03
Ensure canonical URLs match the new page locations
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
2022-10-26 12:32:47 -04:00

782 B

aliases canonical title weight
/docs/oncall/latest/oncall-api-reference/slack_channels/
https://grafana.com/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/