# Create a key

URL: https://docs.lastscanned.com/reference/account/createKey

`POST https://api.lastscanned.com/v1/keys`

The full key is in this response only.

Body:

```json
{
  "name": "production"
}
```

Responses:
- 200: The new key.
- 401: `unauthorized`: missing, wrong or revoked key, or a disabled account.

```json
{
  "key": "lsk_live_…",
  "prefix": "lsk_live_1a2b3c4d",
  "name": "production"
}
```

Full spec: https://docs.lastscanned.com/openapi.yaml