Back to Blog
Guide

Slack API Health Check: Tell an Outage From a Bad Token

A 25-line Slack API health check that reads Slack's Status API, pings the Web API and tests your token, with real output from a working token, a fake one and a revoked one.

Slack Green Team
November 26, 2026
November 26, 2026
4 min read
Share:
slack api

To check the Slack API from code, make three calls in order: GET https://slack-status.com/api/v2.0.0/current tells you whether Slack has an open incident, POST https://slack.com/api/api.test tells you whether the Web API answers at all, and POST https://slack.com/api/auth.test with your token tells you whether your own credentials still work. The order matters, because it separates "Slack is down" from "our token is bad", which need very different fixes at 3 a.m.

We wrote that check in Python and ran it on 26 November 2026 against a throwaway Slack app: once with its working bot token, once with a made-up token, and once right after revoking the token.

Slack's Status API

slack-status.com has a public JSON API with no key. current returns the overall state and any open incidents; this is what it returned during our test, 15 days after the last incident closed:

{
  "status": "ok",
  "date_created": "2026-11-11T07:24:01-08:00",
  "date_updated": "2026-11-11T10:58:05-08:00",
  "active_incidents": []
}

history returns past incidents with their notes. It returned 25 items that day, going back to 31 May 2026. The newest one, without its 10 notes:

{
  "id": 1583,
  "title": "Trouble loading Slack and saving changes.",
  "type": "incident",
  "status": "resolved",
  "url": "https://slack-status.com/2026-11/b8bb993128ac94f5",
  "date_created": "2026-11-11T07:24:01-08:00",
  "date_updated": "2026-11-11T10:58:05-08:00",
  "services": [
    "Connectivity",
    "Messaging",
    "Apps/Integrations/APIs",
    "Workspace/Org Administration"
  ]
}

The services list is how you tell whether an incident touches you. Of those 25 incidents, 8 listed Messaging, 4 listed Apps/Integrations/APIs, 4 Connectivity and 3 Login/SSO. Only the API ones are likely to break a bot, so a health check that pages someone should look at services, not just at status.

The health check

import sys, time, requests

STATUS = "https://slack-status.com/api/v2.0.0/current"
API = "https://slack.com/api/"

def timed(fn):
    t = time.monotonic()
    out = fn()
    return out, round((time.monotonic() - t) * 1000)

def check(token):
    s, ms1 = timed(lambda: requests.get(STATUS, timeout=10).json())
    print(f"status page {ms1} ms: status={s['status']} incidents={len(s['active_incidents'])}")
    if s["status"] != "ok":
        return "SLACK INCIDENT: " + s["active_incidents"][0]["title"]
    t, ms2 = timed(lambda: requests.post(API + "api.test", timeout=10).json())
    print(f"api.test    {ms2} ms: ok={t['ok']}")
    if not t["ok"]:
        return "WEB API NOT ANSWERING"
    a, ms3 = timed(lambda: requests.post(API + "auth.test", timeout=10,
                   headers={"Authorization": "Bearer " + token}).json())
    print(f"auth.test   {ms3} ms: ok={a['ok']} error={a.get('error')}")
    if not a["ok"]:
        return "OUR TOKEN IS BAD: " + a["error"]
    return "OK: " + a["team"] + " / " + a["user"]

if __name__ == "__main__":
    print(check(sys.argv[1]))

api.test needs no token, so a failure there means Slack's API is not answering for anyone, or your network cannot reach it. auth.test then checks your token and returns the team and bot user it belongs to.

Never appear "away" on Slack again

Cloud-based. No downloads. Works 24/7 even when your laptop is off.

What it printed

A working bot token, a made-up token (xoxb-not-a-real-token), and the same bot token after auth.revoke:

status page 44 ms: status=ok incidents=0
api.test    282 ms: ok=True
auth.test   291 ms: ok=True error=None
OK: Slack / sglab1126
---
status page 46 ms: status=ok incidents=0
api.test    282 ms: ok=True
auth.test   280 ms: ok=False error=invalid_auth
OUR TOKEN IS BAD: invalid_auth

---
status page 57 ms: status=ok incidents=0
api.test    286 ms: ok=True
auth.test   278 ms: ok=False error=account_inactive
OUR TOKEN IS BAD: account_inactive
CaseStatus pageapi.testauth.test error
Working bot tokenok, 0 incidentsoknone
Made-up tokenokokinvalid_auth
Bot token after auth.revokeokokaccount_inactive

The revoked token did not return token_revoked. Revoking an app's only bot token removes the bot user from the workspace, so Slack reports the account as inactive instead. If you alert on token errors, treat invalid_auth, token_revoked, token_expired and account_inactive all as "our token is bad". Our pages on invalid_auth and revoking tokens cover the causes of each.

The whole check took under 400 ms from a laptop in Seoul: about 45 ms for the status page, which sits behind a CDN, and about 280 ms each for the two Web API calls. That is cheap enough to run every minute.

Where to run it

  • • Run it on start-up of your bot and before a batch job posts, so a bad token fails loudly instead of in the middle of a run.
  • • Run it on a schedule from somewhere other than the bot's own host, so a dead host also shows up.
  • • When auth.test fails, stop and alert; retrying with the same token will not fix it. When api.test fails or the status page lists an Apps/Integrations/APIs incident, back off and retry later. Rate limits are a third case: ratelimited errors come with a Retry-After header, as our rate limit tests show.

To test a token by hand instead of in code, our Slack API tester runs auth.test and other calls from the browser, and the bot token guide explains which token types your app has.

FAQ

Does slack-status.com have an RSS feed or webhook?

It has RSS and Atom feeds at slack-status.com/feed/rss and /feed/atom, an email subscription form on the page, and the JSON API above. For alerts in a channel, a scheduled job that reads current can post when the status changes.

Does api.test count against my rate limit?

It is a Web API method like any other, but one call a minute is far below any tier. It needs no token, so it cannot tell you anything about your app.

Why does the status page say ok when my bot is failing?

Because most bot failures are on the app side: a revoked or expired token, a missing scope, or a bot that was removed from the channel. That is exactly what the auth.test step separates out.

Always Active

Stop Jiggling Your Mouse.

Join hundreds of remote workers who never worry about their Slack status. Set it up once, stay green forever.

Related Articles

Guide

Slack MSI Installer: Gone After 4.48.102, Use MSIX

Slack's last MSI is 4.48.102 from March 2026; every later version 404s. We read both old MSIs and the current MSIX package to show what each installs and how to move a deployment to MSIX.

Slack Green Team
Guide

Slack LaTeX and Math: What Renders, What Doesn't, What Works

Slack shows LaTeX as raw text in messages and canvases, even though its web client ships KaTeX. We tested every route and give the two that work: Unicode math and a formula rendered to an image with 15 lines of Python.

Slack Green Team
Guide

Slack Canvas Images: Add, Size and Insert Them by API

We inserted a PNG, an animated GIF and a 6000 px image into a Slack canvas with canvases.edit. Slack files rendered; an outside image URL became a link card even though the API said ok.

Slack Green Team