# Authentication

PayNow's API is reachable by an HTTPS/REST gateway for serving requests using JSON.

#### Base URL

```yaml
https://api.paynow.gg/v1
```

***

\
Authentication is provided with the `Authorization` HTTP header in the format `Authorization: AUTH_PREFIX TOKEN`.

| Auth Type   | Auth Prefix  |
| ----------- | ------------ |
| API Key     | `apikey`     |
| Customer    | `customer`   |
| Game Server | `gameserver` |

*Auth prefixes are case insensitive.*

Example headers for the different types of authentication:

```yaml
Authorization: apikey pnapi_v1_BRaqcrwTqptneZTsxUJKVPH1L9y14HZBae18vybzhVwT
```

```yaml
Authorization: customer yArTi2CZekPCHyxjetxUfRnUMANF5hXBxHyDrf3Nia38gGtfJCqa1EJYReqDPUaaV1UNN1U
```

```yaml
Authorization: gameserver J7273cAJT7s3cP5WdSjJPtVCsLXK3bVfVPJimTX2YDT4
```

<br>


---

# 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.paynow.gg/getting-started/authentication.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.
