> ## 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.

# National Identity Number (NIN)

> Verify a customer's identity using their 11-digit National Identification Number.

The NIN endpoint retrieves a customer's verified identity data from the National Identity Management Commission (NIMC) database. It returns comprehensive personal details including biographic data, next-of-kin information, and a customer photo.

## Endpoint

```
POST /api/onboarding/nigeria_kyc/nin/
```

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

### Example

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

```javascript Node.js theme={null}
const response = await fetch(
  "https://adhere-api.smartcomply.com/api/onboarding/nigeria_kyc/nin/",
  {
    method: "POST",
    headers: {
      "x-access-token": "YOUR_SECRET_KEY",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ identification_number: "70123456789" }),
  }
);
const data = await response.json();
```

```python Python theme={null}
import requests

response = requests.post(
    "https://adhere-api.smartcomply.com/api/onboarding/nigeria_kyc/nin/",
    headers={
        "x-access-token": "YOUR_SECRET_KEY",
        "Content-Type": "application/json",
    },
    json={"identification_number": "70123456789"},
)
data = response.json()
```

## Response

### 200 OK

| Field | Type | Description |
| - | - | - |
| `data.nin` | string | The NIN that was queried |
| `data.firstName` | string | First name |
| `data.middleName` | string | Middle name |
| `data.lastName` | string | Surname |
| `data.gender` | string | `"male"` or `"female"` |
| `data.dateOfBirth` | string | Date of birth in `YYYY-MM-DD` format |
| `data.birthState` | string | State of birth |
| `data.birthLga` | string | LGA of birth |
| `data.telephoneNo` | string | Registered phone number |
| `data.email` | string \| null | Email address (if available) |
| `data.residenceAddress` | string | Current residential address |
| `data.residenceState` | string | State of residence |
| `data.residenceLga` | string | LGA of residence |
| `data.residenceTown` | string | Town of residence |
| `data.maritalStatus` | string | e.g., `"single"`, `"married"`, `"separated"` |
| `data.educationalLevel` | string | Highest education level |
| `data.employmentStatus` | string | e.g., `"employed"`, `"unemployed"` |
| `data.religion` | string | Religion |
| `data.spokenLanguage` | string | Primary spoken language |
| `data.height` | string | Height in centimetres |
| `data.profession` | string | Stated profession |
| `data.nokFirstname` | string | Next-of-kin first name |
| `data.nokSurname` | string | Next-of-kin surname |
| `data.nokAddress1` | string | Next-of-kin address |
| `data.nokState` | string | Next-of-kin state |
| `data.nokLga` | string | Next-of-kin LGA |
| `data.image` | string | Base64-encoded JPEG of the customer's photo |
| `data.trackingId` | string | NIMC tracking reference |

```json theme={null}
{
  "status": "success",
  "data": {
    "title": "mr",
    "lastName": "DOE",
    "firstName": "JOHN",
    "middleName": "JOSEPH",
    "gender": "male",
    "dateOfBirth": "2000-10-21",
    "birthLga": "Olamaboro",
    "birthState": "Kogi",
    "centralID": "",
    "educationalLevel": "secondary",
    "email": null,
    "nin": "12345678901",
    "employmentStatus": "unemployed",
    "height": "180",
    "maritalStatus": "separated",
    "religion": "christianity",
    "telephoneNo": "08050003000",
    "residenceAddress": "MR SNUFUSS'S HOUSE SNUFUSS STREET PHASE 3",
    "residenceLga": "Gwagwalada",
    "residenceState": "FCT Abuja",
    "residenceTown": "GWAGWALADA",
    "nokFirstname": "JOHN",
    "nokSurname": "DOE",
    "nokAddress1": "NO 6 ADUM ROAD OGUGU CENTRE",
    "nokState": "Kogi",
    "nokLga": "Olamaboro",
    "profession": "STUDENT",
    "spokenLanguage": "IGALA",
    "trackingId": "S2R0NYFO01113TR",
    "image": "<base64-encoded-jpeg>"
  },
  "message": "National Identification Number details retrieved successfully"
}
```

### 400 Bad Request

Returned when the NIN is missing, malformed, or not found.

```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/
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/:
    post:
      tags:
        - Nigeria KYC
      summary: NIN Verification
      operationId: nin
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - identification_number
              properties:
                identification_number:
                  type: string
                  description: 11-digit National Identification Number
                  example: '70123456789'
      responses:
        '200':
          description: NIN verified successfully
        '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.