An AI agent posting to Slack hits a 429 mid-burst because chat.postMessage isn’t governed by Slack’s numbered Tier 1-4 limits at all — it sits in a separate “Special” tier that caps sustained posting at roughly one message per second per channel, on top of a workspace-wide ceiling. Short bursts above that are tolerated, but a workflow that fires several updates back-to-back, instead of one every second, crosses that line fast. The documented fix isn’t exponential backoff — it’s honoring the Retry-After header the 429 response already hands you.
The symptom: clean in testing, broken under real load
This failure has a recognizable shape. A developer wires up a bot that relays AI-generated output to Slack — a summary from an LLM call, a batch of alerts, a digest split across several messages — and tests it by hand, posting one message, checking it looks right, posting another a few seconds later. It works every time. Then it ships, and the first time the workflow has a backlog to clear, or splits a long summary into six separate chat.postMessage calls fired in the same second, Slack returns HTTP 429 Too Many Requests. The request that gets rejected is often not even an unusually large one — it’s just adjacent in time to several others.
The instinct is to assume the fix is “retry a few times” or “add exponential backoff,” because that’s the standard pattern for rate limits on most APIs. For Slack’s Web API, that instinct is only half right, and applying it blindly can make the problem worse, not better.
chat.postMessage doesn’t live in the tier table you’d expect
A rate-limit tier is a bucket Slack assigns to each Web API method that determines how often it can be called. Slack’s own documentation lists four numbered tiers for most methods: Tier 1 methods should be accessed infrequently with only a small amount of tolerated burst; Tier 2 allows occasional bursts; Tier 3, typically used for paginated collections, explicitly says “sporadic bursts are welcome”; and Tier 4 has what Slack calls generous burst behavior. None of those apply to posting a message.
chat.postMessage sits in what Slack calls the Special tier — a set of methods with limits that don’t fit the numbered table. For posting, Slack’s documentation states the rule directly: apps “may post no more than one message per second per channel,” whether that happens through chat.postMessage, an incoming webhook, or any other posting method, and there is also a workspace-wide limit layered on top of the per-channel one. Short bursts above one-per-second are allowed. Sustained posting above that rate is what gets throttled.
That’s the part that catches automation builders off guard: the limiting factor usually isn’t total message volume over a day, it’s density — how many of those messages land in the same one-or-two-second window, in the same channel.
What the 429 response is actually telling you
Retry-After is the HTTP response header Slack returns alongside a 429, giving the number of seconds to wait before calling that method again for that workspace. Slack’s own example shows a response of Retry-After: 30. Two scope details matter here: the restriction applies only to the specific method that got rate limited, for that specific workspace — calls to other methods, or the same method in a different workspace, are unaffected. Slack is also explicit that it does not publish exact numeric burst allowances beyond the one-per-second baseline, because those thresholds are subject to change. That’s why “how many messages can I send before it breaks” doesn’t have a fixed numeric answer you can hardcode — the header is the only reliable signal, generated fresh on each rate-limited response.
The documented fix: read the header, don’t guess a delay
The naive version of a Slack-posting loop retries on failure with a fixed or arbitrary delay, which either wastes time waiting longer than necessary or — worse — retries before Slack’s window has actually reset, triggering another 429 and extending the outage:
// BEFORE — naive retry, ignores what Slack actually tells you
async function postNaive(channel, text) {
for (let i = 0; i < 3; i++) {
const res = await fetch("https://slack.com/api/chat.postMessage", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.SLACK_BOT_TOKEN}`,
"Content-Type": "application/json; charset=utf-8",
},
body: JSON.stringify({ channel, text }),
});
if (res.ok) return res.json();
await sleep(2000); // guessed delay — may be too short, may be unnecessarily long
}
throw new Error("Failed after 3 retries");
}
The fixed version reads Retry-After directly from the response and waits exactly that long before trying again — no guessing, and no risk of retrying inside Slack's own cooldown window:
// AFTER — honors Slack's own Retry-After header
async function postToSlack(channel, text, attempt = 0) {
const res = await fetch("https://slack.com/api/chat.postMessage", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.SLACK_BOT_TOKEN}`,
"Content-Type": "application/json; charset=utf-8",
},
body: JSON.stringify({ channel, text }),
});
if (res.status === 429) {
if (attempt >= 5) throw new Error("Slack rate limit: retries exhausted");
const retryAfterSeconds = Number(res.headers.get("retry-after")) || 1;
await sleep(retryAfterSeconds * 1000);
return postToSlack(channel, text, attempt + 1); // same method, same workspace
}
const data = await res.json();
if (!data.ok) throw new Error(`Slack API error: ${data.error}`);
return data;
}
function sleep(ms) {
return new Promise((resolve) => setTimeout(resolve, ms));
}
Each part of the fixed version exists for a documented reason: it checks res.status === 429 specifically rather than treating all failures the same, because a 429 isn't an error to log and move past — it's Slack telling you exactly how long to wait. It reads the retry-after header rather than a constant, because that value is generated per-response and reflects Slack's actual current state for that method and workspace, not a number you could have hardcoded in advance. And it caps retries instead of looping forever, because a persistent 429 on the same channel usually means the workflow is posting faster than one message per second as a matter of design, not as a one-off burst — the real fix in that case is to slow the source, not retry harder.
If you're doing this in n8n, Zapier, or Make instead of raw code
No-code automation tools don't all read Retry-After the way the code above does, and that gap is worth knowing before you rely on a "retry" checkbox to solve this. n8n's own documentation describes handling 429s through fixed, manually configured delays rather than the response header: the Retry On Fail setting re-attempts a failed request, and its Wait Between Tries value should be set longer than the API's limit interval — n8n's own example sets this to 1000ms for an API with a one-request-per-second limit, which lines up with Slack's documented posting rate. n8n also offers a Loop Over Items + Wait pattern, and an HTTP Request node Batching option (Items per Batch / Batch Interval) that the documentation says is equivalent to it — both pace requests with a fixed interval you choose, not a value read from Slack's response.
That distinction matters in practice. A fixed 1000ms wait works for Slack's steady one-per-second baseline, but it isn't aware of the actual Retry-After value Slack returns if you still get throttled — so pairing a conservative fixed interval (pace every post at roughly one per second per channel, never send a batch of several at once) with Retry On Fail as a safety net is more reliable than trusting the retry setting alone to recover from a 429. If your automation tool supports a code step, lifting the small fetch wrapper above into it, instead of relying purely on a fixed-wait retry setting, closes that gap.
How to confirm it's actually fixed
"It hasn't happened today" isn't verification, because this failure is load-dependent and will reappear the next time the workflow has a backlog to clear. Log every 429 response along with the Retry-After value Slack sent back, so a recurring pattern on one channel shows up as data rather than a support ticket. If a single posting workflow is still hitting 429s after you've added the header-aware retry, the real issue is upstream: something is generating more than one Slack post per second per channel by design — a summary being split into too many separate messages, or two workflows posting to the same channel without coordinating — and the fix there is to batch the content into fewer messages, not to retry harder.
There's also a design-level fix worth considering alongside the code-level one: if a workflow is splitting one logical update into several chat.postMessage calls — a six-part summary sent as six separate messages, say — combining that content into a single message using Slack's Block Kit formatting cuts the request count directly, which does more for the one-message-per-second ceiling than any retry logic can. Retry-After handling and message batching solve different parts of the same problem: one recovers gracefully after a 429, the other reduces how often you risk hitting one in the first place, and a production integration posting on any kind of schedule benefits from both rather than either alone.
This is a narrower, Slack-specific companion to a broader point worth knowing before you compare rate limits across different AI and automation APIs: see our breakdown of how rate limits and pricing tiers compare across major AI APIs as you scale. If a Slack-posting workflow is also calling an LLM API in the same chain, the retry pattern here pairs naturally with the exponential-backoff pattern we covered for a flaky Claude API call in n8n and with why a fixed timeout setting isn't enough for every API on the Zapier side. And if the bot itself is reading Slack history rather than just posting to it, our walkthrough of a Slack standup digest bot built on conversations.history covers the read side of the same API.
Sources: Slack — Rate limits, n8n — Handle rate limits.



