# invalid_publishable_key

> The invalid_publishable_key Problem Details code: The publishable key is unknown or revoked, or the workspace or partner cannot use it.

Source: https://docs.nexafone.so/v1/errors/invalid_publishable_key/

| | |
| --- | --- |
| HTTP status | `401` |
| Area | Keys and SDK sessions |
| Problem `type` | `https://docs.nexafone.so/errors/invalid_publishable_key` |

The publishable key is unknown or revoked, or the workspace or partner cannot use it.

## What the `detail` says

The `detail` explains the occurrence; it can read, for example:

- The publishable key is not valid.

## Handling it

Check the credential: send a valid, unrevoked key or a fresh token.

## Example

```json
{
  "type": "https://docs.nexafone.so/errors/invalid_publishable_key",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_publishable_key",
  "detail": "The publishable key is not valid.",
  "requestId": "01J9Z8Q4TQ3W6M5V2X7Y8Z9A0B"
}
```

Match on `code`, never on `detail`: the wording may change. See [Problem Details](/v1/errors/).
