# Authentication documentation

{% hint style="warning" %}
Find the documentation on the docs endpoint of your instance via "<mark style="color:blue;">https\://\<yourcustomername>.fidentity.ch/docs"</mark>
{% endhint %}

## Get your clientID

1. [Sign in to your dashboard](/dashboard.md)
2. Go to "user management" in the left side navigation

<figure><img src="/files/xJifQBRCBiLqsZVrsNmk" alt=""><figcaption></figcaption></figure>

3. Click “Generate API Key” to obtain your client ID and secret. <mark style="color:orange;">Remember to store them safely as they are only displayed once.</mark> If you lose them, you’ll need to regenerate a new API key and the old one will be overwritten. This step only needs to be performed once.

<figure><img src="/files/23pMdM2BF6RGrCUAN76o" alt=""><figcaption></figcaption></figure>

You can use these credentials to create access tokens on the <mark style="color:blue;">/authenticate</mark> endpoint. You only need to regenerate the access token once it expires, not for each new process.


---

# 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.fidentity.ch/api/authentication-documentation.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.
