> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Slack

> Your Slack workspace: channels, history, threads and users, and message search.

![](https://mintcdn.com/webrouter/T_A5Quwg50s_JK2y/logo/data-apis/slack.svg?fit=max\&auto=format\&n=T_A5Quwg50s_JK2y\&q=85\&s=cff17053fabcc8a8d80ae66a13b078d7)

[Web Catalog · Messaging](https://docs.webrouter.net/data-apis.md?category=messaging)

Needs&#x20;

`SLACK_BOT_TOKEN`

Endpoints

7

Auth

Key in header

[Vendor docs](https://docs.slack.dev/reference/methods/)

## Setup

| Variable | | What it is |
| - | - | - |
| `SLACK_BOT_TOKEN` | required | a Slack bot token (xoxb-...) from your Slack app's OAuth & Permissions page (api.slack.com/apps); a user token (xoxp-...) also works and is required for search.messages |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Slack answers HTTP 200 even on failure: check the ok field, and read error when it is false (not\_in\_channel, missing\_scope, channel\_not\_found...).
* A bot only reads channels it is a member of, and only with the scopes the app was granted; the error names the missing scope.
* Ids, not names: channels are C..., users U.... Message ts values are strings like 1700000000.000100 and identify a message.
* Lists page by cursor: pass response\_metadata.next\_cursor back as cursor. Set limit; Slack recommends at most 200.
* Rate limits are per method (tiers 1 to 4, about 1 to 100 or more calls a minute); a 429 carries Retry-After.

## Endpoints

GET

List channels

Channels (and optionally private channels and DMs) in the workspace.

[Open](#slack-conversations-list)

GET

Get a channel

Details of one conversation.

[Open](#slack-conversations-info)

GET

Read channel messages

Messages in a conversation, newest first.

[Open](#slack-conversations-history)

GET

Read a thread

A thread's parent message and its replies.

[Open](#slack-conversations-replies)

GET

List workspace members

Members with profile, name and status.

[Open](#slack-users-list)

GET

Get one user

Profile and status of a user by id.

[Open](#slack-users-info)

GET

Search messages

Messages matching a query across the workspace.

[Open](#slack-search-messages)

### List channels

GET

`/conversations.list`

`slack.conversations.list`

Channels (and optionally private channels and DMs) in the workspace.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `types`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated: public\_channel (default), private\_channel, mpim, im.
      </td>
    </tr>

    <tr>
      <td>
        `exclude_archived`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Leave out archived channels; default false.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Under 1000; default 100.
      </td>
    </tr>

    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        next\_cursor from the previous answer's response\_metadata; omit for the first page.
      </td>
    </tr>

    <tr>
      <td>
        `team_id`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Needed for org-wide tokens.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.slack.dev/reference/methods/conversations.list) · Same job: [AgentMail](https://docs.webrouter.net/data-apis/agentmail.md#agentmail-inboxes-list), [AgentPhone](https://docs.webrouter.net/data-apis/agentphone.md#agentphone-conversations-list)

```python Python theme={null}
router.call_data_api("slack.conversations.list")
```

```text MCP theme={null}
call_data_api(endpoint="slack.conversations.list")
```

> [!NOTE]
>
> * Tier 2 rate limit.

### Get a channel

GET

`/conversations.info`

`slack.conversations.info`

Details of one conversation.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `channel`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Conversation (channel) id, e.g. C0123456789.
      </td>
    </tr>

    <tr>
      <td>
        `include_num_members`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include the member count.
      </td>
    </tr>

    <tr>
      <td>
        `include_locale`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include the locale.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.slack.dev/reference/methods/conversations.info)

### Read channel messages

GET

`/conversations.history`

`slack.conversations.history`

Messages in a conversation, newest first.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `channel`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Conversation (channel) id, e.g. C0123456789.
      </td>
    </tr>

    <tr>
      <td>
        `oldest`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only messages after this Unix timestamp.
      </td>
    </tr>

    <tr>
      <td>
        `latest`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only messages before this Unix timestamp.
      </td>
    </tr>

    <tr>
      <td>
        `inclusive`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include messages exactly at oldest or latest.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Up to 999; default 100.
      </td>
    </tr>

    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        next\_cursor from the previous answer's response\_metadata; omit for the first page.
      </td>
    </tr>

    <tr>
      <td>
        `include_all_metadata`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Return all message metadata.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.slack.dev/reference/methods/conversations.history) · Same job: [AgentMail](https://docs.webrouter.net/data-apis/agentmail.md#agentmail-messages-list), [AgentPhone](https://docs.webrouter.net/data-apis/agentphone.md#agentphone-numbers-messages), [Resend](https://docs.webrouter.net/data-apis/resend.md#resend-emails-received-list), [Saperly](https://docs.webrouter.net/data-apis/saperly.md#saperly-messages-list), [Sprout Social](https://docs.webrouter.net/data-apis/sprout-social.md#sprout-social-messages-list), [Twilio](https://docs.webrouter.net/data-apis/twilio.md#twilio-messages-list)

> [!NOTE]
>
> * Replies inside threads are not included: use slack.conversations.replies.

### Read a thread

GET

`/conversations.replies`

`slack.conversations.replies`

A thread's parent message and its replies.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `channel`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Conversation (channel) id, e.g. C0123456789.
      </td>
    </tr>

    <tr><td>`ts` required</td><td>string</td><td>query</td><td>ts of the thread's parent message. Example `1700000000.000100`</td></tr>

    <tr>
      <td>
        `oldest`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only messages after this Unix timestamp.
      </td>
    </tr>

    <tr>
      <td>
        `latest`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only messages before this Unix timestamp.
      </td>
    </tr>

    <tr>
      <td>
        `inclusive`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include messages exactly at oldest or latest.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Default 1000; Slack recommends at most 200.
      </td>
    </tr>

    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        next\_cursor from the previous answer's response\_metadata; omit for the first page.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.slack.dev/reference/methods/conversations.replies) · Same job: [AgentMail](https://docs.webrouter.net/data-apis/agentmail.md#agentmail-threads-get), [AgentPhone](https://docs.webrouter.net/data-apis/agentphone.md#agentphone-conversations-messages)

### List workspace members

GET

`/users.list`

`slack.users.list`

Members with profile, name and status.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Slack recommends at most 200; required below 1000 to page.
      </td>
    </tr>

    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        next\_cursor from the previous answer's response\_metadata; omit for the first page.
      </td>
    </tr>

    <tr>
      <td>
        `include_locale`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include each user's locale.
      </td>
    </tr>

    <tr>
      <td>
        `team_id`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Needed for org-level tokens.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.slack.dev/reference/methods/users.list)

```python Python theme={null}
router.call_data_api("slack.users.list")
```

```text MCP theme={null}
call_data_api(endpoint="slack.users.list")
```

> [!NOTE]
>
> * Emails appear only with the users:read.email scope.

### Get one user

GET

`/users.info`

`slack.users.info`

Profile and status of a user by id.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `user`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        User id, e.g. U0123456789.
      </td>
    </tr>

    <tr>
      <td>
        `include_locale`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include the locale.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.slack.dev/reference/methods/users.info)

### Search messages

GET

`/search.messages`

`slack.search.messages`

Messages matching a query across the workspace.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `query`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Search query; supports Slack modifiers like in:#channel from:@user.
      </td>
    </tr>

    <tr>
      <td>
        `count`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page; default 20, at most 100.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number; default 1, at most 100.
      </td>
    </tr>

    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Cursor paging: send \* first, then next\_cursor.
      </td>
    </tr>

    <tr><td>`sort`</td><td>string</td><td>query</td><td>score or timestamp. One of `score`, `timestamp`</td></tr>
    <tr><td>`sort_dir`</td><td>string</td><td>query</td><td>asc or desc. One of `asc`, `desc`</td></tr>

    <tr>
      <td>
        `highlight`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Add highlight markers.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.slack.dev/reference/methods/search.messages) · Same job: [SendGrid](https://docs.webrouter.net/data-apis/sendgrid.md#sendgrid-messages-search)

> [!NOTE]
>
> * Needs a USER token with search:read; a bot token is refused. Slack lists this method as legacy in favour of its Real-time Search API.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.