> For the complete documentation index, see [llms.txt](https://docs.xnomad.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xnomad.ai/xnomad.fun/agent-api/get-an-api-key.md).

# Get an API Key

## Introduction

At **xNomad.fun**, we provide users with the ability to generate an API key that allows interaction with your Agent through Agent API. This key is required for making requests that follow the **OpenAI Completion API standard**, enabling your AI-NFT agents to perform a variety of tasks like how you could do with your agent on xNomad.fun.

> You can generate your API Key on xNomad.fun. The Link is : [https://xnomad.fun](https://beta.xnomad.fun).

## Get Your First API Key

**Step 1:** \
From your dashboard, head to the **Features** section.  Under the **API Key Generation** section, click on the **"Create"** button to start the process of generating a new API key.

<figure><img src="/files/djvJRR9JMFa3HpmFg3FD" alt=""><figcaption></figcaption></figure>

**Step 2:**&#x20;

**Enter API Key Details**: enter an **API Key Name** and set the **expiration period** for the API key (e.g., 20 days).  After the set period, the key will automatically expire and require regeneration.

* The **maximum expiration period** is 30 days.

<figure><img src="/files/gRVBsaApmejLFrOwqwh7" alt=""><figcaption></figcaption></figure>

**Example**:

* API Key Name: Test API #1
* Expiration: 20 days

**Click "Create"**:\
Once you've filled in the details, click **Create** to generate the key.

**Step 3:**&#x20;

You will then see a confirmation message with the newly created API key.&#x20;

Be sure to **copy the key** immediately, as it will not be visible again after you close the window.

<figure><img src="/files/excZttzrFd83HjzRltTC" alt=""><figcaption></figcaption></figure>

**Important:** Make sure to store the key in a safe place because you won’t be able to retrieve it later.

**Step 4: Manage Your API Keys**

You can view, manage, or delete your generated API keys at any time in the **Manage API Keys** section. Here, you can also see the creation date and expiration of each key.

<figure><img src="/files/hjlEZkwnpbhy5irYpIDU" alt=""><figcaption></figcaption></figure>
