SlackUpdated
Slack API error codes and how to fix them
Slack Web API errors usually arrive as HTTP 200 with "ok": false and an error string such as not_in_channel, channel_not_found, invalid_auth or missing_scope. Rate limits come as HTTP 429 with a Retry-After header. So check ok on every response. Each error below has the fix. Siar, a unified social media API, keeps Slack’s own code and message on the post and adds the fix below.
Jump to a code: not_in_channel, channel_not_found, is_archived, invalid_auth, token_revoked, missing_scope, msg_too_long, cant_delete_message, edit_window_closed, ratelimited.
Codes and messages are what Slack returns. Where Slack documents a code, this page follows its docs.
not_in_channel · not_in_channel · the app isn't in the channel
The app is not a member of the channel (always the case for private channels, and for public ones without chat:write.public). Invite the app to the channel (`/invite @YourApp`), or add `chat:write.public` for public channels.
What Siar does with it: Siar keeps Slack's code and message on the post, word for word, marks it "don't retry" or "unknown", and still publishes to the other networks in the post. Fix the cause, then call POST /post/{id}/retry: only the failed networks are sent again, and the retry doesn't count as another post.
Slack's message: not_in_channel
channel_not_found · channel_not_found · the channel doesn't exist or the app can't see it
The channel does not exist or is private and the app was not invited. Refresh channels and pick again, or invite the app to the private channel.
What Siar does with it: Siar keeps Slack's code and message on the post, word for word, marks it "don't retry" or "unknown", and still publishes to the other networks in the post. Fix the cause, then call POST /post/{id}/retry: only the failed networks are sent again, and the retry doesn't count as another post.
Slack's message: channel_not_found
is_archived · is_archived · the channel is archived
The channel was archived. Unarchive it or choose another channel.
What Siar does with it: Siar keeps Slack's code and message on the post, word for word, marks it "don't retry" or "unknown", and still publishes to the other networks in the post. Fix the cause, then call POST /post/{id}/retry: only the failed networks are sent again, and the retry doesn't count as another post.
Slack's message: is_archived
invalid_auth · invalid_auth · the token is invalid
The bot token is invalid, revoked or the app was uninstalled. Reinstall the app to the workspace for a new token.
What Siar does with it: Siar refreshes the token itself where Slack allows it. If that fails, Siar marks the account as needing reconnection and keeps this error on the post. Later posts to the account stop with "Reconnect this account, then retry the post." until your customer reconnects through the same connect link.
Slack's message: invalid_auth
token_revoked · token_revoked · an admin removed the app
A workspace admin removed the app or revoked its token. Reinstall the app to the workspace.
What Siar does with it: Siar refreshes the token itself where Slack allows it. If that fails, Siar marks the account as needing reconnection and keeps this error on the post. Later posts to the account stop with "Reconnect this account, then retry the post." until your customer reconnects through the same connect link.
Slack's message: token_revoked
missing_scope · missing_scope (needs chat:write.customize) · the install lacks a scope
A feature (custom username/icon, reactions, private channel history) needs a scope the install does not have. Reinstall the app with the scope the error names.
What Siar does with it: Siar keeps Slack's code and message on the post, word for word, marks it "don't retry" or "unknown", and still publishes to the other networks in the post. Fix the cause, then call POST /post/{id}/retry: only the failed networks are sent again, and the retry doesn't count as another post.
Slack's message: missing_scope (needs chat:write.customize)
msg_too_long · msg_too_long · the text is over 40,000 characters
The text is over Slack's 40,000 character limit. Shorten the text.
What Siar does with it: Siar checks this rule when you create the post. A request that breaks it gets a 400 with an issues entry pointing at the field, before Slack sees it, so you fix it at create time, not when the post is due.
Slack's message: msg_too_long
cant_delete_message · cant_delete_message · the app can't delete this message
The app may only delete its own messages, and the workspace may restrict deletion. Delete it in Slack as a member with permission.
What Siar does with it: Siar keeps Slack's code and message on the post, word for word, marks it "don't retry" or "unknown", and still publishes to the other networks in the post. Fix the cause, then call POST /post/{id}/retry: only the failed networks are sent again, and the retry doesn't count as another post.
Slack's message: cant_delete_message
edit_window_closed · edit_window_closed · the edit window has passed
The workspace limits how long a message can be edited. Post a new message instead.
What Siar does with it: Siar keeps Slack's code and message on the post, word for word, marks it "don't retry" or "unknown", and still publishes to the other networks in the post. Fix the cause, then call POST /post/{id}/retry: only the failed networks are sent again, and the retry doesn't count as another post.
Slack's message: edit_window_closed
ratelimited · ratelimited · too many messages too fast
chat.postMessage allows about 1 message per second per channel; Retry-After says when. Wait for the `Retry-After` seconds, then retry. `chat.postMessage` allows about one message per second per channel.
What Siar does with it: Siar treats it as temporary and tries again on its own, up to three attempts in all. It waits for Slack's reset time when Siar can read one from the response, otherwise 30 seconds, then 60. These attempts don't use the post's manual retries. If the last attempt fails too, the error stays on the post.
Slack's message: ratelimited
Where to see a Slack error in Siar
Read a failed post with GET /post/{id}. The error field sums it up, errors lists the result per network, and errorsVerbose keeps Slack's own code, message and HTTP status, a plain-English message, and a retry verdict: retryable, non_retryable or unknown. A signed post.published webhook fires when the post has published or failed, with each network's result. Fix the cause and retry with POST /post/{id}/retry.
Siar, a unified social media API, publishes to Facebook, Instagram, Threads, X, LinkedIn profiles, Bluesky, Mastodon, Discord and Slack today. See each network's status, or go back to Post to Slack via API.
Error codes for other networks
The same pattern, for each network Siar is built for: social media API error codes, by network. For errors from Siar's own API (a 401 for a missing key, a 429 rate limit), see Siar API errors and status codes.
TikTok API error codes · YouTube API error codes · Instagram API error codes · Facebook API error codes · X (Twitter) API error codes · Threads API error codes · LinkedIn API error codes · Pinterest API error codes · Reddit API error codes · Mastodon API error codes · Discord API error codes · Bluesky API error codes · Google Business Profile API error codes · Snapchat API error codes
Frequently asked questions
Should I retry a failed Slack API request?
Only if the error is temporary. Rate limits (429 and Slack's own rate-limit codes) and 5xx errors can be retried after the reset time. Token, permission, duplicate and content errors fail the same way every time, so fix the cause first. Each entry on this page says which kind it is.
Why does the Slack API reject a request that looks right?
Usually because of something outside the request body: an expired token, a permission the user didn't grant, the account's daily limit, or text the account posted recently. Read the code and message first, then match it to an entry on this page. Validating length and media before sending catches most of the rest.
Does Siar retry failed Slack posts automatically?
For temporary errors, yes: Siar tries up to three times in all, waiting for the network's reset time when it can read one. Other errors stay on the post with Slack's own code and message. Fix the cause and retry: only the failed networks are sent again, and the retry doesn't count as another post.
Will retrying a failed post publish it twice?
Not through Siar's retry. Each network in a post is claimed once, and only the networks that failed are sent again. An interrupted send is checked against the account before anything is re-sent. But calling the create endpoint again makes a new post: Siar has no client idempotency key, so check your own records first.
Your first post is one request away.
Start with 20 free posts to try. No card. A one-time allowance, with no time limit.