Grafana OnCallGrafana OnCall API referenceSlack Channels HTTP API

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 like this:

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

The following available filter parameters should be provided as get arguments:

  • channel_name

HTTP Request

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