# 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="/files/xxyIOJV1UYvdrvP1jL0T" 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.](/files/-M0w9VgTZuvfW7hEpllJ)


---

# 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://dev.xena.biz/xena-developer/development/get-started/using-xenaapikey.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.
