# unauthorized

> Missing or wrong credentials. REST: send `Authorization: Bearer <API key>`. MCP: reconnect to sign in with OAuth. Don't retry with the same bad key.

Source: https://x.builera.app/docs/en/errors/unauthorized

| | |
|---|---|
| HTTP status | 401 |
| Safe to retry | No |
| Message (fixed, English) | Missing or invalid credentials. |

## What to do {#what-to-do}

Missing or wrong credentials. REST: send `Authorization: Bearer <API key>`. MCP: reconnect to sign in with OAuth. Don't retry with the same bad key.

## Error shape {#body}

```json
{
  "code": "unauthorized",
  "message": "Missing or invalid credentials.",
  "retryable": false,
  "request_id": "req_…"
}
```

Can be returned by 173 operations

[All error codes](/docs/en/errors)
