Skip to Content
HomeLink Hub
Authentication

Verify a NIN (step one of the two-step KYC flow)

POST
/api/v1/auth/kyc/nin

Access: Bearer token required. Also requires: KYC not already verified.

Looks the NIN up with the identity provider (PandaScrow) and compares the name on the record with the name on the account: every word of the account's first and last name must appear among the record's first, middle and last names (case, accents and order are ignored). On a match the NIN is stored and the KYC status moves to AWAITING_LIVENESS. This does not set isKYCVerified; the step was designed to be followed by a liveness check.

No liveness endpoint is currently exposed by this API, so an account that only completes this step stays in AWAITING_LIVENESS. The path that completes verification today is POST /auth/kyc/verify with kycType: "NIN". The names returned in data are the ones on the NIN record, not the account.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

Access token returned by sign-in. Send it as Authorization: Bearer <token>.

Request Body

application/json
  1. body
nin*string

National Identification Number: exactly 11 digits.

Match^[0-9]{11}$

Response Body

NIN found and the name matches

application/json
  1. response
status*integer
success*boolean
message*string
data*
Example Request
curl -X POST 'http://localhost:4000/api/v1/auth/kyc/nin' \  -H 'Content-Type: application/json' \  -d '{  "nin": "12345678901"}'
Example Response
{  "status": 200,  "success": true,  "message": "NIN verified. One step left.",  "data": {    "status": "AWAITING_LIVENESS",    "firstName": "ADAEZE",    "lastName": "OKONKWO"  }}