---
title: "Slack Channels HTTP API | Grafana OnCall documentation"
description: "List Slack Channels shell Copy 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:"
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# List Slack Channels

shell ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```shell
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:

JSON ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```json
{
    "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/`
