> For the complete documentation index, see [llms.txt](https://docs.gameket.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gameket.io/introduction/merchant/authentication.md).

# Authentication

### Request an Access Token

Make a POST request to get a Bearer token:

```bash
curl -X POST https://api.gameket.io/merchant/auth/check \
  -H "Content-Type: application/json" \
  -d '{
    "apiKey": "your_merchant_api_key",
    "secret": "your_merchant_secret"
  }'
```

**Response:**

```json
{
  "success": true,
  "data": {
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "tokenType": "Bearer",
    "expiresInSeconds": 7200,
    "expiresAt": "2026-05-10T17:10:31.000Z",
    "merchant": {
      "storeId": "store_abc123",
      "storeName": "My Store"
    }
  }
}
```

**Save the token** - You'll use it for all subsequent requests.
