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

Phone + ID

Verify a Kenyan phone number together with a national ID via POST /api/v1/phone-id/ke. Other country codes are not supported yet. HTTP 200 and 404 are billable; validation 400 is not.

Request

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

Body Parameters

ParameterTypeDescriptionRequired
phone_numberstringMSISDN β€” 07… / 01…, or +254 / 254 (normalized to local 10 digits)required
national_idstringNational ID β€” 5–10 digitsrequired
consentbooleanMust be true β€” confirms data-subject consent to perform this verificationrequired
customer_numberstringOptional reference for your own tracking (max 255 characters)optional

Sample request body

All verification APIs require consent: true in the JSON body.

Sample dataSample request body
{
  "phone_number": "0712345678",
  "national_id": "12345678",
  "consent": true
}

Response

200 OKSample dataExample response
{
  "success": true,
  "response_code": 200,
  "message": "Phone + ID Verification Details Fetched Successfully",
  "country": "ke",
  "data": {
    "phone_number": {
      "name": "JOHN DOE KAMAU",
      "phone_number": "0712345678",
      "account": "0712345678",
      "institution": null,
      "verification_status": "Match",
      "is_valid": true
    },
    "national_id": {
      "id_number": "12345678",
      "name": "JOHN DOE KAMAU",
      "first_name": "JOHN",
      "last_name": "KAMAU",
      "other_name": "DOE",
      "gender": "Male",
      "date_of_birth": "1990-01-01",
      "citizenship": "Kenyan",
      "serial_number": "237314661",
      "is_valid": true,
      "photo_path": "https://cdn.example.com/id_card_images/12345678_photo.jpg",
      "fingerprint_path": null,
      "signature_path": null
    }
  },
  "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

Error codes

Standard Peleza HTTP / response_code values (same across all API calls). Validation message text is endpoint-specific. Full reference: Error Codes.

CodeWhenBilled?
200Phone and ID details returnedYes
400Validation β€” phone_number / national_id formatNo
401Missing or invalid Bearer tokenNo
402Insufficient wallet balance or credit limitNo
403No active wallet or billing profile (or service not enabled)No
404Phone number or national ID not foundYes
408Upstream timeout / service errorNo
429Rate limitedNo
502Upstream bad or unreadable responseNo
503Verification service unavailable or request timed outNo

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.