> For the complete documentation index, see [llms.txt](https://minara.ai/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://minara.ai/docs/minara-handbook/ja/qu-yin/agent-api/authentication.md).

# 認証

Minaraでは、APIリクエストの認証方法を2つ提供しています。

### APIキー（サブスクリプション）

の標準的な方法 **Pro** および **Partner** プランのユーザー向けです。APIキーを次の中に含めてください `Authorization` ヘッダーに各リクエストごとに含めます。

**形式：**

```
Authorization: Bearer <YOUR_API_KEY>
```

**例：**

```bash
curl -H "Authorization: Bearer sk-minara-xxxxxxxx" https://api.minara.ai/v1/developer/chat
```

> **セキュリティ：** APIキーはパスワードのように扱ってください。クライアントサイドのコードや公開リポジトリに絶対に公開しないでください。

👉 **詳しくはこちら：** [Broken mention](broken://pages/aaaf3ea72a13c3b2969add06cf379c3e2b41b6b2)

### 従量課金制（x402）

サブスクリプションなしの従量課金アクセス向けに、次をサポートしています。 [**x402プロトコル**](https://www.x402.org/)。$USDCのようなステーブルコインを使ってAPI呼び出しを直接支払えます（サブスクリプション不要）。

**x402 API URL**:[https://x402.minara.ai](https://x402.minara.ai/)

**x402エンドポイントをご覧ください：** [x402scan上のMinara](https://www.x402scan.com/server/66307a3c-aeb9-4508-9531-71eed69bc9b5)

👉 **詳しくはこちら：** [Broken mention](broken://pages/5d9798343cf97c950b8dc7e377dfffbd2f9996d0)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://minara.ai/docs/minara-handbook/ja/qu-yin/agent-api/authentication.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
