782 B
782 B
| aliases | canonical | title | weight | |
|---|---|---|---|---|
|
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/