# Using Xena API Key

{% hint style="warning" %}
**API keys are to be deprecated.** \
As part of our ongoing efforts to improve security, we're in the process of fully integrating OAuth support into the Xena platform.&#x20;

This update will bring a number of benefits, including improved security measures, and increased flexibility to how developers can get access and manage data in Xena. As a result, we will be phasing out the usage of API keys in the future.

To make the transition as smooth and seamless as possible, we will provide notice and detailed guidance to you, before the deprecation of API keys will take place.

You can always stay updated by following our blog: <https://xena.biz/da/blog/>
{% endhint %}

## Creating Xena API keys

After you log in, enter the menu Setup > Import/export data > API-keys

<figure><img src="https://3101502904-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZdybBvJaAboIV6zNHC%2Fuploads%2FE3jebWG89l1al1aIUphC%2F9%20API%20key.png?alt=media&#x26;token=172a0d89-59a0-4db9-8bf6-4f4d72312615" alt=""><figcaption></figcaption></figure>

## API call

To call the Xena API you need a header called `XenaApiKey: [KEY]` and that's it.

![Insomnia GET request with API Key.](https://3101502904-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZdybBvJaAboIV6zNHC%2F-M0w9V2Myb5JPx57kX0S%2F-M0w9VgTZuvfW7hEpllJ%2FxenaApiKeyInsomniaGetExample.png?generation=1582631098140399\&alt=media)
