# Configure API Key

## Introduction

The SDK needs your Convai API key to authenticate requests and enable character conversations.

## Prerequisites

* A Convai account
* API key from your [Convai dashboard](https://convai.com/). [(Where to find your API key)](https://docs.convai.com/api-docs/convai-playground/get-started/dashboard-overview#profile-and-settings)

## Step-by-step

{% stepper %}
{% step %}

### Open the Convai Account window in Unity

In the Unity top menu, go to **Convai → Account**.

<figure><img src="/files/19LStQVh8TBtYdkgLstC" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Copy your API Key from Convai

* Open Convai in your browser and sign in.
* Locate your **API Key** in the dashboard/profile settings.
* Copy the API key.

<figure><img src="/files/Qe0APXEH8Z6mFhBxZBu6" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Paste and update the key in Unity

* Paste the key into the **API Key** field.
* Click **Update API Key**.
* **Expected result:** Account details and usage information refresh successfully.

<figure><img src="/files/eDklHSuhuQrSBL7BtUtD" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

## Troubleshooting

* **Account info doesn’t update**
  * Confirm the API key is correct (no extra spaces).
  * Check internet connection and retry.
* **You can’t find your API key**
  * Use the linked dashboard/profile documentation section.

## Conclusion

Your project is now authenticated with Convai. Next, validate the integration using **Sample Scenes** or continue with **Custom Scene Setup**.

{% hint style="info" %}
**Need help?** For questions, please visit the [**Convai Developer Forum**](https://forum.convai.com/).
{% 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.convai.com/api-docs/plugins-and-integrations/unity-plugin-beta-overview/getting-started/setup/configure-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.
