oncall-engine/docs/sources/oncall-api-reference/slack_channels.md
2022-06-13 14:02:31 -07:00

852 B

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