> ## Documentation Index
> Fetch the complete documentation index at: https://oddspapi-v4.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# POST /v4/account/refresh-api-key: Rotate Your API Key

> Generate a new OddsPapi API key and invalidate the old one. Use it when a key has leaked.

Allows the client to refresh their API key.

## Endpoint

```http theme={null}
POST /v4/account/refresh-api-key
```

### Example Response

```json theme={null}
{
  "api_key": "b72d5e90-1a3c-4f8b-9d26-0e4c7a51f3b8"
}
```

## Response (200 OK)

On a successful request, the server responds with a status code `200` and returns a JSON object containing the following fields:

* **api\_key** `(string)` — The newly generated API key.

> [!NOTE]
>
> * Rate limit: 1 second


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