# OpenAPI

> 참고
>
> 대시보드에서 발급한 허용된 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}
- {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>

### 공통 오류 코드 <a href="#undefined" id="undefined"></a>

Open API 요청 시 발생하는 공통 에러코드는 다음과 같습니다.

<table><thead><tr><th width="177">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>프로젝트 아이디가 없는 경우</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/quickstart/openapi.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.
