> For the complete documentation index, see [llms.txt](https://docs.hollaex.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hollaex.com/advanced/exchange-keys/exchange-api-keys-troubleshoot.md).

# Exchange API Keys Troubleshoot

Exchange API Keys are something getting managed by the HollaEx Kit and CLI. There should be no issue with it for most use cases.&#x20;

But if you noticed that you are getting an error like the below and the exchange stopped functioning, that will be something highly related to the API key.

```
403 - {"message": "Access Denied: Invalid API Key"}
```

On this page, we will go through and see how to reset the Exchange API Keys and reapply them on your exchange.

### How to reset the Exchange API Keys

```
hollaex toolbox --reset_hmac_token
hollaex server --restart
```

This command will revoke your current Exchange API Keys, and generate a new one. Make sure to restart your exchange afterward to fully apply the value changes.

```
hollaex toolbox --set_activation_code
hollaex server --restart
```

This command will apply the new exchange API keys with a few other values (exchange activation code, etc) on your exchange. If there's a command prompt that asks for you to type something, you could simply press the enter key since you already when through the revoke / reapply command above.

Make sure to restart the server afterward.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.hollaex.com/advanced/exchange-keys/exchange-api-keys-troubleshoot.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
