Slack API: {"ok":false,"error":"invalid_auth"}
The Slack token is invalid, revoked or sent in the wrong way.
Slack invalid_auth Meaning
Slack returns HTTP 200 with ok:false. Tokens that were regenerated, belong to an uninstalled app, or are sent without Bearer fail with invalid_auth or not_authed.
Common causes
- Token revoked or app uninstalled
- Using a bot token (xoxb) where a user token (xoxp) is needed
- Token missing or in the wrong header
- Workspace mismatch
⚡ Quick fix
- Reinstall the app and copy the new token
- Send
Authorization: Bearer xoxb-… - Check the token type
Detailed fix by platform
cURL
curl -H "Authorization: Bearer $TOKEN" https://slack.com/api/auth.test
How to diagnose
- Test — Does auth.test succeed?
- Type — Bot or user token?
- Install — App still installed?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in API
Other ways to find it
Where this error sits
Origin: Application & API. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 28 Nov 2026