> For the complete documentation index, see [llms.txt](https://docs.gamechat.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gamechat.me/basics/game-chat-v2/game-chat-ri-ben-yu/openapi.md).

# OpenAPI

> 参考
>
> ダッシュボードで発行した、許可された API Keyを使用すると呼び出せます。

## API Keyの確認

API Keyは、**ダッシュボード** > **設定** > **プロジェクトの設定** > **API Key** で作成できます。

> 注意
>
> **\[再発行]** ボタンをクリックするとキーが再発行され、以前のキーは使用できなくなるのでご注意ください。

## Open APIを使用する

### Base URL <a href="#baseurl" id="baseurl"></a>

```curl
https://dashboard-api.gamechat.naverncp.com/v1/api/project/{projectId}
- {projectId}には Game Chatの project IDを適用
```

<table><thead><tr><th width="185">Region</th><th>URL</th></tr></thead><tbody><tr><td>kr</td><td>https://dashboard-api.gamechat.naverncp.com/v1</td></tr><tr><td>sg</td><td>https://sg-dashboard-api.gamechat.naverncp.com/v1</td></tr><tr><td>jp</td><td>https://jp-dashboard-api.gamechat.naverncp.com/v1</td></tr></tbody></table>

## 共通エラーコード

Open APIのリクエスト時に発生する共通エラーコードは次の通りです。

<table><thead><tr><th width="165">Code</th><th>Description</th></tr></thead><tbody><tr><td>-1</td><td>ダッシュボードにないキーを使用した場合</td></tr><tr><td>-2</td><td>ダッシュボードのキーとヘッダのキーが別の場合</td></tr><tr><td>-3</td><td>ダッシュボードで削除したキーを使用した場合</td></tr><tr><td>-4</td><td>ダッシュボードで未使用として処理されたキーを使用した場合</td></tr><tr><td>-5</td><td>キーの期限が切れた場合</td></tr><tr><td>-6</td><td>プロジェクト IDがない場合</td></tr></tbody></table>


---

# 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://docs.gamechat.me/basics/game-chat-v2/game-chat-ri-ben-yu/openapi.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.
