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

# Slack channel and message observations

> Observe Slack channels or one conversation's messages on your app.

Follow the [REST mount guide](https://docs.bijection.com/integrations/native-rest.md). Bind a sealed Slack
bot or user token using bearer auth and use a protected `data` label for
workspace data. Bind `https://slack.com` to `/api/conversations.list` for
channels or `/api/conversations.history` for messages. Use a separate mount for each feed and conversation.

| Feed | Initialization and access |
| - | - |
| `slack.channels.observations` | Use a limit of 1–100. The token needs `channels:read` and, for private channels, `groups:read`. The feed includes archived channels visible to the token and keys records by channel ID. |
| `slack.messages.observations` | Set `selection: "C0123456789"` and a limit of 1–15. The token needs the history scope and access for that conversation. Records are keyed by the exact Slack timestamp within the mount. |

A page accepts up to 36 KiB. Pagination sends Slack's opaque
`response_metadata.next_cursor` back to the same endpoint. Each completed
walk restarts on the next poll. Slack's retention, visibility and rate limits
apply. Use a history token whose app tier supports paginated polling.
If Slack rejects a retained cursor as invalid, review the gap in source health
and reset the walk.
An explicit message tombstone removes its key. Missing messages or channels
stay published. The feed covers conversation history and channel metadata.
Thread replies and attachment Files are separate resources.

[Slack Conversations API](https://docs.slack.dev/apis/web-api/using-the-conversations-api/)

## Write messages

Follow the [native write mount guide](https://docs.bijection.com/integrations/native-rest.md#native-provider-writes). Use mode `slack.messages.create-update-delete` with `providerWriter`, endpoint `https://slack.com` and pass the writer in `receivers.writers` under that mode. Seal a workspace token with `chat:write` and access to the intended conversations. Create accepts a `chat.postMessage` object including `channel`. For update and delete pass the exact `CHANNEL_ID:MESSAGE_TS` returned in evidence. The writer sets the channel and timestamp from that key. HTTP 200 must also carry `ok: true`, `channel` and `ts`. The token can update or delete only messages permitted by Slack’s authorship rules.

The writer records evidence under the mount's label. Commands take up to 24 KiB of JSON and carry no read cursor.

[Provider write API](https://docs.slack.dev/messaging/modifying-messages)

## Users, threads, reactions and file metadata

Bind one `providerEndpoint` and REST mount per collection at
`https://slack.com`. Use a sealed Slack bearer credential and one protected
`data` label for the receiver and the mount.

| Mode | Installed path | Terms |
| - | - | - |
| `slack.users.observations` | `/api/users.list` | Use a workspace credential with `users:read`. Users are keyed by user ID. |
| `slack.thread.messages.observations` | `/api/conversations.replies` | `selection` is `CHANNEL/TIMESTAMP`. Use history access for that conversation type. Includes the parent and direct replies by message timestamp. |
| `slack.message.reactions.observations` | `/api/reactions.get` | `selection` is `CHANNEL/TIMESTAMP`. Use `reactions:read` and `limit: 1`. Publishes one reaction state by message timestamp, even when the list is empty. |
| `slack.channel.files.observations` | `/api/files.list` | `selection` is the channel ID. Use workspace-scoped `files:read`. Files are keyed by file ID. The metadata omits private download URLs. |

All modes cap responses at 36 KiB. Users and files accept up to 100 rows.
Threads accept 15 messages. Reactions accept up to 100 reaction names for
the selected message and carry no cursor. Slack may omit some reacting
user IDs. An explicit thread tombstone withdraws that message. Missing
records remain published. User and thread cursors continue until Slack
ends the sweep or reports an invalid cursor. File page numbers follow
Slack's stated total and restart at the end.

[Users](https://docs.slack.dev/reference/methods/users.list/) ·
[Threads](https://docs.slack.dev/reference/methods/conversations.replies/) ·
[Reactions](https://api.slack.com/methods/reactions.get) ·
[Files](https://docs.slack.dev/reference/methods/files.list/)

## Webhook-assisted polling

Signed Events API notifications wake the installed Slack channel or message feed. Answers signed URL-verification challenges.
Bind the REST mount to a protected `data` label and follow the
[verified wake route setup](https://docs.bijection.com/integrations/native-webhooks.md#wake-a-rest-source-from-a-provider-webhook)
to seal the signing secret and register the subscription for this source.

## Capture a Slack File

On the channel-files mount, pass as `receivers.slackContent` a receiver bound with
`slackFileContentReceiver(auth, data)` from `@bijectionhq/app-rest`.
Seal a bearer token with `files:read` for the same workspace and bind
the protected label. As the mount's operator, call `files.requestProductivity` and
`files.getProductivity` at that label, using the published Slack file ID.

Capture covers non-editable hosted uploads up to 8 MiB and permits four
pending requests per mount. The driver checks the ID, creation time,
size and private download URL before and after transfer. It sends the
credential only to the Slack API and the exact `files.slack.com` file
route for that ID. The driver accepts exact ranges under a strong
validator or one complete response of the checked size. Capture has no
read cursor. A changed published File identity or explicit row withdrawal
retires the prior File. Remote files, editable snippets and redirects
are outside this capture contract.

[Slack file downloads](https://docs.slack.dev/messaging/working-with-files/#downloading-files)


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