Skip to Content
HomeLink Hub
Authentication

Verify identity or record a KYC document

POST
/api/v1/auth/kyc/verify

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

Runs a provider lookup (PandaScrow) for the chosen kycType and records the result on the account.

  • NIN: the NIN must exist and the name on the record must contain every word of the account's first and last name (case, accents and order ignored). On success the account is marked KYC-verified immediately (kyc.status = VERIFIED, isKYCVerified = true) because the liveness step is temporarily disabled. The account's gender is also set from the record when it is male or female.
  • DRIVERS_LICENSE: the licence is looked up and the number stored. This does not verify the account.
  • CAC: the company name is searched and stored if at least one match is found. This does not verify the account.
  • BVN: accepted by request validation but rejected by the handler as unsupported.

Only the field that matches kycType is required. Unlike POST /auth/kyc/nin, nin is not checked for the 11-digit format here. Stored document numbers are never returned by the API. Failed driver's-licence and CAC provider calls surface as 500 with the provider's message appended.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

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

Request Body

application/json
  1. body
kycType*string

Document type: NIN, DRIVERS_LICENSE or CAC. BVN passes validation but is rejected with a 400.

Value in"NIN""BVN""DRIVERS_LICENSE""CAC"
nin?|

National Identification Number. Required when kycType is NIN.

licenseNumber?|

Driver's licence number. Required when kycType is DRIVERS_LICENSE.

companyName?|

Registered company name to search the CAC registry for. Required when kycType is CAC.

Response Body

  • kycType = NIN: identity verified
  • kycType = DRIVERS_LICENSE or CAC: document stored, account not verified
application/json
  1. response
status*integer
success*boolean
message*string
data*
Example Request
curl -X POST 'http://localhost:4000/api/v1/auth/kyc/verify' \  -H 'Content-Type: application/json' \  -d '{  "kycType": "NIN",  "nin": "12345678901"}'
Example Response
{  "status": 200,  "success": true,  "message": "Identity verified.",  "data": {    "status": "VERIFIED",    "isKYCVerified": true  }}