# How to create tokens

## Introduction

Application and Client tokens are essential in the way PlayerServers communicates with your panel and thus need to be correctly set with appropriate privileges.

## How to create Application Token

In order to create an application token, please navigate to the Pterodactyl admin interface, and select "Application API"

<figure><img src="/files/TFpMvFMk1X0QJjWf5erH" alt=""><figcaption><p>Application API interface</p></figcaption></figure>

Afterwards, click on the blue Create New button on the top right and make sure to fill the fields just like on the image below.

<figure><img src="/files/mWG3ncWRv7QfzL6m407R" alt=""><figcaption><p>Application API - required permissions</p></figcaption></figure>

As that's done, you'll receive your application token which you need to put in your `config.yml`.

## How to create Client Token

In order to create an application token, please navigate to the Pterodactyl admin interface and click on your profile icon on the top right.

<figure><img src="/files/7HaLvCOMwcQVPcHSIcN2" alt=""><figcaption><p>Click on profile icon</p></figcaption></figure>

After that, navigate to the API Credentials tab.

<figure><img src="/files/KM1HSitD5WoYMN9bdula" alt=""><figcaption><p>API Credentials</p></figcaption></figure>

From here, create a new API key. Name it whatever you want and click create. Optionally, add the IP address of your BungeeCord instance to prevent unauthorised access to your API key.

From there, proceed by putting the newly generated API key to your `config.yml` file.


---

# 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://playerservers.thearcadia.xyz/overview/pterodactyl-configuration/how-to-create-tokens.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.
