# How to Generate an API Key

API Key is needed to interact with Copperx APIs. You can easily create, regenerate and delete API Keys from our powerful dashboard.

To create an API Key for the Copperx API, you need to register for an account on the Copperx. Once registered, you can log in and generate an access token.

1. Go to the [Copperx Dashboard](https://dashboard.copperx.dev/developer/apikeys).
2. Login with your Copperx account.
3. Click **Developer** in the top menu and click on **API Keys**.
4. Press **Generate Key** button on top-right to generate a new API Key.
5. Give the name to your API Key and click **Generate Key**. You can different names to your API Keys, like `staging`, `production`, etc.
6. You will receive an API Secret Key. Do save this key at somewhere secure place as you can only see it once.

<figure><img src="/files/5sCazya1kKSbN4o0PaAF" alt=""><figcaption></figcaption></figure>

### Regenerate Key

You can easily regenerate your API Key from Developer > API Keys.

1. Click **Developer** in the top menu and click on **API Keys**.
2. Hover over the key that you want to regenerate, and click on 3 dots **`⋮` > Regenerate**.
3. To confirm, click on **Regenerate Key**.
4. You will receive a regenerated API Secret Key.

📌 *Use separate keys for development and production environments.*


---

# Agent Instructions: 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:

```
GET https://docs.copperx.io/setup-and-configuration/how-to-generate-an-api-key.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
