# Authorization

Synapses API uses API keys to authenticate requests. These API keys can be generated from [synapses.kredibel.com](https://synapses.kredibel.com) or [synapses.sandbox.kredibel.com](https://synapses.sandbox.kredibel.com) for development purposes and must be supplied with each request.

## Generating API Key

1. Login to[ Synapses dashboard   ](/master.md#pages)
2. Click on the `Setting` -> `API Token` or directly visit [`<dashboard>`](/master.md#pages)`/developer/token`
3. Click “**Generate**”

## Using API Key

An API key is a token that a client provides when making API calls. Synapses API provides two methods for authentication.&#x20;

1. As a query string parameter

   | Method   | Key               |
   | -------- | ----------------- |
   | **POST** | <p><code>{</code> |

   </p><p>    <code>"key": "</code><strong><code>YOUR_API_KEY</code></strong><code>"</code>   </p><p><code>}</code></p> |
   | **GET**  | `<endpoint>/v1/example?key=`**`YOUR_API_KEY`**                                                                                       |
2. In the authorization header\
   `"Authorization: Bearer`` `**`YOUR_API_KEY`**`"`

{% hint style="info" %}
Both of the methods above work with Synapses API. The query string is easier to implement. But, makes it easier to discover for someone who should not have access to it. For every API call, we recommend using an **authorization header** since it is more secure.
{% endhint %}


---

# 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.kredibel.io/authentication-1.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.
