# 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](https://dfend.gitbook.io/documentation/developer-api/types/identity) 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.
