# Twitch API Setup

To set up the plugin correctly, you must create a Twitch application for your website and give it the correct settings. For beginning authorize in your Twitch profile on the Twitch developer console [dev.twitch.tv](https://dev.twitch.tv/console)

Go to an applications page [dev.twitch.tv/console/apps](https://dev.twitch.tv/console/apps) and press a ***Register Your Application*** button in the top right corner.

<figure><img src="https://content.gitbook.com/content/tYnak7sETVPVtSFzlcur/blobs/2NCbKL6SMtVUYN7NXoyO/2.1.webp" alt=""><figcaption></figcaption></figure>

You will be asked to assign a name and choose one that is comfortable to remember that this setup is for the website.

In the ***OAuth Redirect URLs*** section, add your domain name in the format `https://my-site.com/`

<figure><img src="https://content.gitbook.com/content/tYnak7sETVPVtSFzlcur/blobs/4nEEvgjRHh2FTRk7Skm6/2.2.webp" alt=""><figcaption></figcaption></figure>

Also, select the category ***Website Integration***.


---

# 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://mykolapetrovych.gitbook.io/argus-wordpress-plugin/installation-guide/twitch/plugin-authorization.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.
