# Generating your API key

The steps are the same as defined in the [Getting Started](/introduction/getting-started.md) section. But for the sake of a refresher, find the steps below:

1. Log in to your dashboard at <https://app.adjutor.io/login&#x20>;
2. Navigate to the 'Apps’ menu&#x20;
3. Click on the 'Create an app' button (located at the top right section of the page) and enter the required details.&#x20;
4. While creating an app ensure you select all necessary API services you wish to access.&#x20;
5. Click on 'save details' and the key would be displayed on your screen for you to copy and paste within the environment variable of your application.

## Resetting your API Key <a href="#resetting-your-api-key" id="resetting-your-api-key"></a>

If at any point, you suspect that your key has been compromised, the API key should be instantly revoked and regenerated. This can be done within the same Admin panel where the key was previously generated. Find the steps below:

1. Log in to your dashboard at <https://app.adjutor.io/>
2. Navigate to the 'Apps’ menu'&#x20;
3. Click on the particular app whose API key you wish to reset.&#x20;
4. Click on "Reset app key"

{% embed url="<https://blog.lendsqr.com/wp-content/uploads/2024/07/Documentation_reset_key-Made-with-Clipchamp.mp4>" %}

{% hint style="warning" %}

#### Notes

1. If you do not include your API key when making a request, or you use an incorrect/outdated key, the request will fail.
2. Your API keys carry many privileges, so be sure to treat it as you would any other password and grant access only to those who need it. Do not share your secret API keys in publicly accessible areas such as GitHub, etc.
3. If a token is compromised, you can re-generate a new one from your [dashboard](https://pecunia.lendsqr.com/).&#x20;
   {% endhint %}

{% hint style="danger" %}

#### **Warning**

Regenerating a new key would immediately revoke your existing key therefore the change should be carefully planned to prevent downtime for your apps and customers.
{% endhint %}


---

# 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.adjutor.io/authentication/generating-your-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.
