# Slack API: {"ok":false,"error":"invalid_auth"}

**Code:** `invalid_auth` · **Category:** API · **Seen on:** Slack

The Slack token is invalid, revoked or sent in the wrong way.

## 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

1. Reinstall the app and copy the new token
2. Send `Authorization: Bearer xoxb-…`
3. Check the token type

## Detailed fix by platform

### cURL

1. `curl -H "Authorization: Bearer $TOKEN" https://slack.com/api/auth.test`

## How to diagnose

1. **Test** — Does auth.test succeed?
2. **Type** — Bot or user token?
3. **Install** — App still installed?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/api/slack-invalid-auth)
