# 1. Request DAR ID Identity

#### **Endpoint:**

```
REDIRECT <https://$>{FRONTEND_URL}?client_id=${CLIENT-ID}&scope=Read&redirect_uri=${REDIRECT-URI}&state=${STATE}
```

#### **Required Parameters:**

| Parameter      | Type   | Description                                                                                                                                           |
| -------------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| client\_id     | string | The client ID you received from Dar ID when you registered.                                                                                           |
| scope          | string | A space-delimited list of scopes. If not provided, scope defaults to an empty list for users that have not authorized any scopes for the application. |
| redirect\_uri  | string | Your application's callback URL                                                                                                                       |
| state          | string | Random string for CSRF protection                                                                                                                     |
| response\_type | string | Must be "code" (set by default)                                                                                                                       |

#### **Optional PKCE Parameters:**

| Parameter               | Type   | Description                     |
| ----------------------- | ------ | ------------------------------- |
| code\_challenge         | string | PKCE challenge string           |
| code\_challenge\_method | string | "plain" or "S256" (recommended) |

#### **Example Request:**

```
REDIRECT <https://$>{FRONTEND_URL}?client_id=${CLIENT-ID}&scope=Read&redirect_uri=${REDIRECT-URI}&state=${STATE}
```

#### **Response:**

```
code=${CODE}&state=${STATE}
```


---

# 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://dar-open-network.gitbook.io/developers/dar-id/authentication/1.-request-dar-id-identity.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.
