# Open API

> 参考
>
> 调用时，须使用仪表盘发放的已授权的API Key。

## API Key确认 <a href="#apikey" id="apikey"></a>

可以在 **仪表盘** > **设置** > **项目设置** > **API Key** 中创建API Key。

> 注意
>
> 请注意，点击 **\[重发]** 按键可重发密钥，且之前的密钥将无法使用。

## 使用Open API <a href="#openapi" id="openapi"></a>

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

```curl
https://dashboard-api.gamechat.naverncp.com/v1/api/project/{projectId}
- 将Game Chat的project id应用于{projectId}部分
```

<table><thead><tr><th width="158">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>

### 通用错误代码 <a href="#undefined" id="undefined"></a>

Open API请求时发生的通用错误代码如下：

<table><thead><tr><th width="195">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: 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:

```
GET https://docs.gamechat.me/basics/game-chat-v2/game-chat-zhong-wen/open-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
