# `key_revoked`

A Multiplayer API error, sent with HTTP 401. Status: the Multiplayer API is in private alpha; this code is part of its published contract.

## When

The key was revoked.

## What to do

Create a new key for the project and replace the old one everywhere it is used.

## The answer

Every error is a JSON body with a stable `error` code. Clients act on the codes they know and treat any other code as a failure of its HTTP status, and keep fields they do not know.

```json
{
  "error": "key_revoked",
  "detail": "A sentence that is safe to show.",
  "next": "Create a new key for the project and replace the old one everywhere it is used.",
  "docsUrl": "https://lobbylab.gg/docs/errors/key_revoked"
}
```

See also: [every error code](/docs/errors), [the API reference](/docs/api) and [the docs](/docs).
