> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blujay.io/llms.txt
> Use this file to discover all available pages before exploring further.

# OAUTH_TOKEN_INVALID

> OAuth token invalid

| HTTP status | Retryable |
| - | - |
| `401` | No |

## What happened

The request used a connected app's access token (not a workspace API key) that is invalid, has expired, or was revoked. Access tokens last one hour.

## How to fix it

If you're calling the API yourself, use your workspace API key as the bearer token. If this came from a connected app, reconnect it in Blujay so it gets a fresh token.

## Example response

An illustrative example. The `message` wording and the contents of `details` vary; branch on `error.code`.

```json theme={null}
{
  "status": "error",
  "error": {
    "code": "OAUTH_TOKEN_INVALID",
    "message": "OAuth token invalid",
    "type": "auth",
    "http_status": 401,
    "retryable": false,
    "doc_url": "https://docs.blujay.io/errors/oauth-token-invalid",
    "details": []
  },
  "trace_id": "trc_8f2a1c0e4b7d",
  "timestamp": "2026-10-14T17:30:48.000Z"
}
```

## Still stuck?

Email [support@blujay.io](mailto:support@blujay.io) with the `trace_id` from the error response. See [Errors](/errors.md) for the response format.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.