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

# NIN with Face

> Verify a customer's NIN combined with a facial image for enhanced identity confirmation.

> [!WARNING]
>
> This service is not available at the moment. We're working to restore it — please check back soon.

The NIN with Face endpoint verifies a customer's National Identification Number and performs a facial comparison against a provided photo URL. It returns full NIN profile data plus face match results.

## Endpoint

```
POST /api/onboarding/nigeria_kyc/nin_with_face/
```

## Request

### Headers

| Header | Value | Required |
| - | - | - |
| `x-access-token` | Your API secret key | Yes |
| `Content-Type` | `application/json` | Yes |

### Body Parameters

| Parameter | Type | Required | Description |
| - | - | - | - |
| `identification_number` | string | Yes | The customer's 11-digit National Identification Number |
| `image_url` | string | Yes | URL of the customer's photo for facial comparison |

### Example

```bash cURL theme={null}
curl -X POST "https://adhere-api.smartcomply.com/api/onboarding/nigeria_kyc/nin_with_face/" \
  -H "x-access-token: YOUR_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{"identification_number": "70123456789", "image_url": "https://example.com/photo.jpg"}'
```

```python Python theme={null}
import requests
response = requests.post(
    "https://adhere-api.smartcomply.com/api/onboarding/nigeria_kyc/nin_with_face/",
    headers={"x-access-token": "YOUR_SECRET_KEY", "Content-Type": "application/json"},
    json={"identification_number": "70123456789", "image_url": "https://example.com/photo.jpg"},
)
```

## Response

### 200 OK

| Field | Type | Description |
| - | - | - |
| `data.nin_data` | object | Full NIN profile (same fields as the [NIN endpoint](https://docs.adherecompliance.com/v3/kyc/nigeria/nin.md)) |
| `data.face_data.message` | string | Face match result message |
| `data.face_data.confidence` | number | Match confidence percentage (0–100) |
| `data.verification.status` | string | `"VERIFIED"` if identity confirmed |
| `data.verification.reference` | string | Unique verification reference ID |

```json theme={null}
{
  "status": "success",
  "data": {
    "nin_data": {
      "lastName": "UCHE",
      "firstName": "KARIM",
      "middleName": "IKENNA",
      "gender": "male",
      "dateOfBirth": "2002-11-09",
      "nin": "90187493033",
      "telephoneNo": "09088118811",
      "residenceAddress": "5, ODEYEMI STREET, ANIMASHAUN",
      "residenceLga": "Ifo",
      "residenceState": "Ogun",
      "image": "<base64-encoded-jpeg>"
    },
    "face_data": {
      "message": "Face Match",
      "confidence": 99.99
    },
    "verification": {
      "status": "VERIFIED",
      "reference": "8314a5fc-bdb5-40c8-98bd-72aef9f1a868"
    }
  },
  "message": "National Identification Number details retrieved successfully"
}
```

### 400 Bad Request

```json theme={null}
{
  "status": "failed",
  "data": [],
  "message": "Sorry, your check cannot be processed at the moment. Please try again in a few minutes"
}
```

### 401 Unauthorized

```json theme={null}
{
  "status": "failed",
  "message": "Authentication credentials were not provided."
}
```


## OpenAPI

````yaml POST /api/onboarding/nigeria_kyc/nin_with_face/
openapi: 3.0.3
info:
  title: Adhere API
  description: >-
    Identity verification, credit checks, transaction monitoring, and loan fraud
    detection across Africa.
  version: 3.0.0
servers:
  - url: https://adhere-api.smartcomply.com
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Nigeria KYC
  - name: Kenya KYC
  - name: Ghana KYC
  - name: Rwanda KYC
  - name: Uganda KYC
  - name: Document Verification
  - name: Biometrics
  - name: Individual Credit
  - name: Business Credit
  - name: Transaction Monitoring
  - name: Transaction Screening
  - name: Transaction KYC
  - name: Loan Fraud
  - name: User Journey
paths:
  /api/onboarding/nigeria_kyc/nin_with_face/:
    post:
      tags:
        - Nigeria KYC
      summary: NIN with Face
      operationId: ninWithFace
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - identification_number
                - image_url
              properties:
                identification_number:
                  type: string
                  description: 11-digit National Identification Number
                  example: '70123456789'
                image_url:
                  type: string
                  description: URL of the customer's photo for facial comparison
                  example: https://example.com/photo.jpg
      responses:
        '200':
          description: NIN with face verified
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  responses:
    BadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: failed
              data:
                type: array
                items: {}
              message:
                type: string
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: failed
              message:
                type: string
                example: Authentication credentials were not provided.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-access-token
      description: Your Adhere API secret key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.