# Authentication

To access the API all requests need to be authenticated via a Game Server's secret key. To obtain a secret key please navigate to <https://creator.tebex.io/game-servers>, and click *Edit* on the relevant server.

Supply the secret key by setting the `X-Tebex-Secret` header in all requests to the API.

{% hint style="info" %}
Please note that all requests to the API must be sent via HTTPS.
{% endhint %}


---

# 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.tebex.io/plugin/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.
