# API documentation

{% hint style="info" %}
For a complete overview of the Xena API, please go to <https://xena.biz/api-doc/>
{% endhint %}

WPI

Xena is divided into diffrent APIs.

| Name          | Description                                                      | Support API keys | CQRS              |
| ------------- | ---------------------------------------------------------------- | ---------------- | ----------------- |
| Xena          | The Old core API of Xena. Contains all of the core ERP functions | Yes              | On some endpoints |
| Cars (Giulia) | All function relation to handling cars                           | No               | Yes               |
| Cars (Giulia) | All function relation to handling cars                           | No               | Yes               |
| Cars (Giulia) | All function relation to handling cars                           | No               | Yes               |
| Cars (Giulia) | All function relation to handling cars                           | No               | Yes               |
| Cars (Giulia) | All function relation to handling cars                           | No               | Yes               |

## How to find the needed API

The easiest way to find the needed API is to looking at how the Xena client gets information. You can do that with the developer tools in your own browser.

1. Find the page in Xena with the info you need.
2. Open the developer tools in your browser (F12 in Chrome)
3. Find the network tab and activate the XHR filter

   ![devtab](/files/-Lr84MSvXEhJkxk8g3I1)
4. Refresh the page (F5)
5. Now you an see all the requests our client makes to the different API.

   ![devnetwork](/files/-Lr85WMTBTvXCx-s285w)

   You can ignore websync and FiscalNotificationCount.


---

# 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/overview.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.
