> For the complete documentation index, see [llms.txt](https://docs.blynk.io/en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.blynk.io/en/blynk.console/developers/oauth2.md).

# OAuth2

Here you can generate and store Client Id and Client Secret that will be used for integration with third-party systems.

<figure><img src="https://1839001309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBFTVMf7L6S67HOuqVC%2Fuploads%2FZZrxEeUrmik2uciSbSOZ%2Foauth2.png?alt=media&amp;token=7a535d1d-2690-4cd1-a794-f679f2e10160" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
You need Client Id and Client Secret in order to identify the client requesting for authentication. Those credentials let any 3rd party service authenticate with the Access Token URI. It is used to identify the request as coming from expected and trusted source.
{% endhint %}

## Table contents

There are 4 specific columns:

* Name
* Client ID
* Client Secret
* URLs

## Create New Token

<figure><img src="https://1839001309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBFTVMf7L6S67HOuqVC%2Fuploads%2Fx7UDnYTmOxI0aRKZC3w5%2Ftoken.png?alt=media&amp;token=86998394-657f-4d89-ab40-c1ba0321acb0" alt=""><figcaption></figcaption></figure>

* **Name** – we recommend to use web services names up to 64 symbols.
* **Redirect URLs** – add up to 11 (click **Add URL** and **Bin** buttons) URLs to external web services

## Actions

* **Hover Client ID** or **Secret** to view it – hint will appear, click **Copy** pictogram to put it to your clipboard
* **Actions Menu**
  * **Edit** – (also can be accessed by click on row area) opens *Token modal window*
  * **Delete** – opens delete modal window. Follow the steps described there.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.blynk.io/en/blynk.console/developers/oauth2.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
