> ## Documentation Index
> Fetch the complete documentation index at: https://docs.overlay.fun/llms.txt
> Use this file to discover all available pages before exploring further.

# Authentication

> Overlay APIの認証方式

Overlay APIでは `api-key` ヘッダーを利用します。

<ParamField header="api-key" type="string" required>
  管理画面で発行したAPIキー。外部APIの認証に使用します。
</ParamField>

トークン、NFT、ウォレット発行などの外部APIでは `api-key` ヘッダーを利用します。

```http theme={null}
api-key: ovl_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Content-Type: application/json
```

`api-key` は管理画面で発行します。APIキーごとにユーザーが特定され、そのユーザーに紐づくSolanaまたはEVMの運営管理ウォレットが自動的に利用されます。

<Info>
  `network` に `solana` を指定した場合はユーザーのSolanaウォレット、EVM系ネットワークを指定した場合はユーザーのEVMウォレットが利用されます。
</Info>

## Common authentication errors

```json theme={null}
{
  "success": false,
  "message": "Invalid api-key",
  "error": "Unauthorized"
}
```

```json theme={null}
{
  "success": false,
  "message": "Missing API KEY in headers",
  "error": "Bad request"
}
```
