# Setup

{% stepper %}
{% step %}
**Create Discord Application**

Go to the [Discord Developer Portal](https://discord.com/developers/applications)

If you don't have a Discord account, create one - it's free!

Click "New Application" and give it a name (e.g., "Key System")
{% endstep %}

{% step %}
**Configure OAuth2**

Navigate to the "OAuth2" tab in your Discord application.

Add the following redirect URI:

`https://api.jnkie.com/api/session/discord/callback`

<figure><img src="https://junkie-development.de/docsapp/images/discord-oauth2-setup.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Get Client Credentials**

In the "OAuth2" tab, copy your **Client ID** and **Client Secret**.

{% hint style="danger" %}
Keep your Client Secret secure! Never share it publicly or commit it to version control.
{% endhint %}
{% endstep %}

{% step %}
**Create Discord Bot**

Navigate to the "Bot" tab in your Discord application.

Click "Add Bot" to create a bot for your application.

Copy the **Bot Token** (you may need to reset it first).

<figure><img src="https://junkie-development.de/docsapp/images/discord-bot-token.png" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# 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.jnkie.com/discord-oauth2/setup.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.
