> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dojah.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Verify User with Photo ID and Selfie Image

> An endpoint that allows you to verify an individual using their selfie image and NIN

<ParamField header="AppId" type="string" required>
  Application ID from dashboard
</ParamField>

#### BODY PARAMS

<ParamField body="photoid_image" type="string" required>
  Photo image in Base 64 (Passport, NIN, Voter's Card, Driver's License)
</ParamField>

<ParamField body="selfie_image" type="string">
  Base64 value of the selfie image (NB: Kindly truncate data:image/jpeg;base64, from the selfie\_image object).
</ParamField>

<ParamField body="last_name" type="string" />

<ParamField body="first_name" type="string" />

#### RESPONSES

<ResponseField name="200" type="json">
  json
</ResponseField>

<ResponseField name="400" type="Object">
  <Expandable title="properties">
    <ResponseField name="error" type="string">
      error message
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="401" type="Object">
  <Expandable title="properties">
    <ResponseField name="error" type="string">
      error message
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json 200 theme={null}
  {
    "entity": {
      "selfie": {
        "confidence_value": 0,
        "match": false,
        "photoId_image_blurry": false,
        "selfie_image_blurry": false,
        "selfie_glare": true,
        "photoId_glare": true,
        "age_range": "26-40 Years",
        "sunglasses": false,
        "card_type": "VOTER'S CARD",
        "last_name": {
  			"match": true,
  			"last_name": "",
  			"confidence_value": 100
  		},
  		"first_name": {
  			"match": true,
  			"first_name": "",
  			"confidence_value": 100
  		}
      }
    }
  }
  ```

  ```json 400 theme={null}
  {
    "error": "Invalid request parameters"
  }
  ```

  ```json 401 theme={null}
  {
    "error": "App Couldn't be Validated"
  }
  ```
</ResponseExample>
