> For the complete documentation index, see [llms.txt](https://help.blotato.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.blotato.com/platform-publishing/platforms/slack.md). Agents can also search and read this documentation through its [MCP server](https://help.blotato.com/~gitbook/mcp).

# Slack API and MCP

Publish text and images to a connected Slack channel using its channelId. Slack posts do not support video.

Choose a connected Slack channel. Blotato posts to channels, not to the workspace itself. Call `blotato_list_accounts` with `platform` set to `slack`, and use the requested subaccount's `id` as `channelId`. REST lookup: `GET /v2/users/me/accounts/{accountId}/subaccounts`.

## Fields

| Field       | Use                                               |
| ----------- | ------------------------------------------------- |
| `channelId` | Required Slack channel ID, such as `C0123456789`. |

For MCP, pass `channelId` alongside `accountId`, `platform`, `text`, and `mediaUrls`. For REST, `channelId` belongs inside `post.target`.

## Media and formats

Publish text, images, or both. A Slack post needs text or at least 1 image. Text is limited to 3,000 characters. Emoji and full-width characters count as 2. Blotato escapes `&`, `<`, and `>`, which count as 5, 4, and 4 characters toward the limit.

Attach up to 10 JPEG, PNG, or GIF images, up to 20 MB each. Blotato converts other image formats to JPEG. Slack posts do not support video.

Read [Slack media requirements](https://help.blotato.com/rest-api-reference/publish-post/media.md#slack) and [upload and conversion rules](https://help.blotato.com/api-and-mcp-concepts/media-uploads-and-conversion.md). Public media URLs go directly in `mediaUrls`. No upload step required.

## MCP example

Call `blotato_create_post` with the following shape. Replace the lookup IDs, the example channel ID, and example media URLs with returned IDs and your media. Adjust the example's settings to the user's request.

```json
{
  "accountId": "ACCOUNT_ID_FROM_LOOKUP",
  "platform": "slack",
  "text": "A post for your Slack channel.",
  "mediaUrls": [],
  "channelId": "C0123456789"
}
```

## REST example

Send this JSON to `POST https://backend.blotato.com/v2/posts` with your `blotato-api-key` header.

```json
{
  "post": {
    "accountId": "ACCOUNT_ID_FROM_LOOKUP",
    "content": {
      "platform": "slack",
      "text": "A post for your Slack channel.",
      "mediaUrls": []
    },
    "target": {
      "targetType": "slack",
      "channelId": "C0123456789"
    }
  }
}
```

## Verify the result

1. Save the returned `postSubmissionId`.
2. If processing continues, use `blotato_get_post_status` or `GET /v2/posts/:postSubmissionId`.
3. Report the returned status and public URL when supplied. For Slack, the public URL opens the message in its channel.

For scheduling, add `scheduledTime` or `useNextFreeSlot` as an MCP argument or a REST top-level sibling of `post`. See [Scheduling](https://help.blotato.com/api-and-mcp-concepts/scheduling.md) and [completion rules](https://help.blotato.com/api-and-mcp-concepts/async-jobs-and-polling.md).

## Limits and troubleshooting

Select the channel the user requested when the workspace has several connected channels. `blotato_list_accounts` fills `requiredFields.channelId` with the first connected channel only, so do not treat it as the user's choice. A `channelId` outside the connected channels returns `422` with "Page / subaccount not found".

Blotato publishes up to 100 posts per channel in a rolling 24 hours. Each connected channel counts as 1 connected account. The workspace itself does not count.

* To post to a private channel, run `/invite @Blotato` in the channel in Slack. Then reconnect the workspace in Blotato and select the channel.
* If Slack no longer accepts Blotato's connection, reconnect the workspace in [Accounts](https://my.blotato.com/accounts).
* If Slack does not confirm a post, check the channel before you publish again. The post might already be there.
* For error codes and fixes, see [Slack errors](https://help.blotato.com/social-accounts-and-platform-faqs/slack/errors.md).

See [Slack account guide](https://help.blotato.com/settings/social-accounts/slack.md), [platform help](https://help.blotato.com/social-accounts-and-platform-faqs/slack.md), and the [Publish Post reference](https://help.blotato.com/rest-api-reference/publish-post.md) for options and examples.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.blotato.com/platform-publishing/platforms/slack.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
