> For the complete documentation index, see [llms.txt](https://docs.metasleuth.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.metasleuth.io/ja/blocksec-aml-api/introduction/authentication.md).

# 認証

私たちのAPIはAPIキーを使用して認証されています。あなたのデータのセキュリティを確保するために、**APIキーを誰とも共有しないでください。**

### APIキーの取得方法

APIキーを生成するには、最初に[BlockSecアカウント登録](https://account.blocksec.com/signup?referer=https%3A%2F%2Fmetasleuth.io)を行ってください。登録後、\_**設定**\_セクションの[API](https://metasleuth.io/settings?type=apis)パネルにアクセスして、迅速にAPIキーを取得しましょう。

{% hint style="info" %}
カスタマイズされたAPIサービスを営業チャネルを通じてご利用のお客様は、APIキーを取得するために指定されたサービス担当者にご連絡ください。
{% endhint %}

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

### APIキーの使用方法

各APIリクエストのHTTPリクエストヘッダーに"**API-KEY**" ヘッダーを含め、値としてあなたのAPIキーを提供してください。以下の例を参照してください。

{% 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 %}
