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

# クイックスタート

## API 連携

### API 連携ドキュメントとサンプルコード

{% embed url="<https://github.com/Playma-Co-Ltd/maiagent-api-examples/>" %}

## 基本 API エンドポイント

```
https://api.maiagent.ai/api/v1/
```

## 認証

すべての API リクエストでは、API キーによる認証が必要です。リクエストヘッダーに API キーを追加してください。

「API キー」は、MaiAgent のシステム管理画面にログインしてから、以下の手順で確認してください。

1. 右上の「ユーザー名」をクリックします。
2. 「アカウント」をクリックします。
3. 「API キー」を確認できます。

```
Authorization: Api-Key <あなたのAPIキー>
```

<figure><img src="https://605688223-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVYMUz6J7vDZ0QTvb1rbN%2Fuploads%2Fgit-blob-80dd2f4698ec1ee60b09c97be27b5e97fda5cc58%2F%E6%88%AA%E5%9C%96%202024-12-02%20%E6%99%9A%E4%B8%8A10.25.06.png?alt=media" alt=""><figcaption><p>API キー</p></figcaption></figure>


---

# 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 following URL with the `ask` and `goal` query parameters:

```
GET https://docs.maiagent.ai/tech/ja/api-integration/quickstart.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `build a script that syncs our docs to a CMS` lets GitBook tailor the answer to that use case.

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.
