# OpenAPI

> Note
>
> You must use an allowed API key issued via the dashboard to make an API call.

## Checking the API key

An API key can be generated via **Dashboard > Settings > Project settings > API key**.

> Caution
>
> Click the **\[Reissue]** button to reissue a key. Note that a new key will render the old key useless.

## Using open API

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

```curl
https://dashboard-api.gamechat.naverncp.com/v1/api/project/{projectId}
- Use project ID of Game Chat for {projectId}
```

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

### Common error codesCommon error codes

The following are common error codes that can occur when making requests to the API:

<table><thead><tr><th width="165">Code</th><th>Description</th></tr></thead><tbody><tr><td>-1</td><td>Using a key not on the dashboard</td></tr><tr><td>-2</td><td>Discrepancy between dashboard key and header key</td></tr><tr><td>-3</td><td>Using a key that was deleted on the dashboard</td></tr><tr><td>-4</td><td>Using a key that was treated as unused on the dashboard</td></tr><tr><td>-5</td><td>Expired key</td></tr><tr><td>-6</td><td>No project 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-english/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.
