# Fion Developer API

## Required Authorization

All API requests are required to provide authorization in the form of API keys.&#x20;

API keys are obtained from the contacting Fion. They should be passed in the authorization as a Bearer token.

## Authorization Example

<mark style="color:blue;">`GET`</mark> `https://api.fion.tech/example`

This example shows how to pass the API key in requests. It is allowed to include additional query parameters as well.

#### Headers

| Name      | Type   | Description |
| --------- | ------ | ----------- |
| x-api-key | string | \<api\_key> |

{% tabs %}
{% tab title="200 Server will continue to process business logic if authorization is successful" %}

```
Server will return intended response.
```

{% endtab %}

{% tab title="401 Server will return this error when the API key is missing or no longer active." %}

```
{ message: "Unauthorized" }
```

{% endtab %}
{% endtabs %}


---

# 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.fion.tech/master.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.
