> For the complete documentation index, see [llms.txt](https://documentation.virtuedeep.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.virtuedeep.tech/guides/using-the-portal/obtaining-an-api-key.md).

# Obtaining an API key

Learn how to obtain an API key, which lets your data source authenticate against the platform, using the Portal.

An API key and its secret key are what you exchange for an access token when calling the public APIs. They are how the front end of your device or application connects to Affective Computing by Virtue.

To obtain one:

1. Log in to the Portal.

<figure><img src="https://2595582246-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvj8sRVTP47RXCgM8y0Lm%2Fuploads%2Fgit-blob-7c7f0bd56a38a218060201c3899b30c87a2c406f%2FPortal%20login%20screen.png?alt=media" alt=""><figcaption><p>Logging in to the Portal</p></figcaption></figure>

2. In the left sidebar, go to **Developers Hub → API Keys**.
3. In the upper-right corner, click **+ Generate API Key**, then confirm.

<figure><img src="https://2595582246-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvj8sRVTP47RXCgM8y0Lm%2Fuploads%2Fgit-blob-a6ea91845e049f76476108968f7ce48ece7867af%2FPortal%20-%20generating%20an%20API%20key.png?alt=media" alt=""><figcaption><p>Generating an API key</p></figcaption></figure>

The generated **API key** and **secret key** are shown once, in a dialog. Copy both before closing it.

{% hint style="warning" %}
The secret key is displayed only at generation time and cannot be retrieved afterwards. If you lose it, generate a new key and retire the old one. Keys are listed on this page and can be deleted from the Actions column.
{% endhint %}

***

### Related information

{% content-ref url="/pages/247urD6fHJf2z26fE4lw" %}
[API keys management](https://documentation.virtuedeep.tech/affective-computing-by-virtue/about-our-framework/sentio-features/api-keys-management.md)
{% endcontent-ref %}

{% content-ref url="/pages/9j5QlBJVIm7c97agdUqF" %}
[Authenticating your data source to use our APIs](https://documentation.virtuedeep.tech/guides/using-the-public-apis/getting-started/authenticating-your-data-source-to-use-our-apis.md)
{% endcontent-ref %}
