> For the complete documentation index, see [llms.txt](https://dfend.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dfend.gitbook.io/documentation/developer-api/https-api/identity-status.md).

# Identity Status

## Endpoint

#### <https://api.dfend.app/identity-status>

Accepts requests from client or server environments (publishable or secret API key).

## Methods

### GET

Check whether a user has opted into DFend.

#### Accepts

`body`  <mark style="color:blue;">object</mark>  An object containing **one of the following** fields:

* `userId`  <mark style="color:blue;">string</mark>  The user's primary key or unique ID in your system.
* `id`  <mark style="color:blue;">string</mark>  The `id` value of the user's [Identity](/documentation/developer-api/types/identity.md) in DFend.

#### Returns

A JSON-encoded object containing the following fields:

* `optedIn`  <mark style="color:blue;">boolean</mark>  Whether the user has opted into DFend.
