> For the complete documentation index, see [llms.txt](https://dar-open-network.gitbook.io/developers/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dar-open-network.gitbook.io/developers/dar-id/authentication/1.-request-dar-id-identity.md).

# 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}
```
