# Authentification

Notre API est authentifiée en utilisant la clé API. Pour assurer la sécurité de vos données, **veuillez ne pas partager votre clé API avec qui que ce soit.**

### Comment obtenir la clé API ?

Pour générer une clé API, commencez par [vous inscrire pour un compte BlockSec](https://account.blocksec.com/signup?referer=https%3A%2F%2Fmetasleuth.io). Une fois inscrit, accédez au panneau [APIs](https://metasleuth.io/settings?type=apis) dans la section ***Paramètres*** pour obtenir rapidement votre clé API.

{% hint style="info" %}
Si vous avez souscrit au service API personnalisé via notre canal de vente, veuillez contacter votre interlocuteur de service désigné pour obtenir la clé API.
{% endhint %}

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

### Comment utiliser la clé API

Incluez l'en-tête "**API-KEY**" dans les en-têtes de requête HTTP pour chaque requête à l'API, et fournissez votre clé API en tant que valeur. Voir l'exemple suivant.

{% code overflow="wrap" %}

```sh
curl -L \
  -X POST \
  -H 'Content-Type: application/json' \
  -H 'API-KEY:$API_KEY' \
  'https://aml.blocksec.com/address-label/api/v3/labels' \
  -d '{"chain_id":1,"address":"0x00d7e7409bfe09a736d3e993de9b87d0baa314d5"}'
```

{% endcode %}


---

# 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.metasleuth.io/fr/blocksec-aml-api/introduction/authentication.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.
