# 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>
