Peleza β€” Trust built on data
πŸ‡°πŸ‡ͺ KYC
On this page

National ID (No Image)

Verify a Kenyan national ID and return demographic details without biometric image assets.

Test data

Sandbox test data

Use these values against the sandbox host. Click a value to copy it.

National ID numbers

Request

POST/api/v1/national-id
{{baseUrl}}/api/v1/national-id
HeaderTypeDescription
AuthorizationstringBearer YOUR_ACCESS_TOKEN from the OAuth client-credentials flow
Content-Typestringapplication/json

Body Parameters

ParameterTypeDescriptionRequired
id_numberstringKenyan national ID number to verifyrequired
customer_numberstringOptional reference for your own tracking (max 255 characters)optional

Response

200 OKSample dataExample response
{
  "success": true,
  "response_code": 200,
  "message": "National ID Details Fetched Successfully",
  "data": {
    "first_name": "JOHN",
    "last_name": "DOE",
    "other_name": "SAMPLE",
    "name": "DOE JOHN SAMPLE",
    "gender": "Male",
    "dob": "1990-01-01",
    "id_number": "12345678",
    "citizenship": "Kenyan",
    "valid": true,
    "status": "Active"
  },
  "request_id": "550e8400-e29b-41d4-a716-446655440000"
}

Response Fields

FieldTypeDescription
successbooleanWhether the request succeeded
response_codenumberApplication response code (typically mirrors HTTP)
messagestringHuman-readable status message
dataobjectPayload for the verified resource
request_idstringUUID for support and audit trails

Set {{baseUrl}} to https://api.peleza.com (production) or https://sandbox.peleza.com (sandbox). Authenticated calls need a Bearer token from POST /api/v1/oauth/token.