Getting started
Sandbox and test data
Requests made with a test key (sk_test_…) run in the sandbox:
- They never reach IPRS, NTSA, KRA, BRS, Safaricom or the DCI.
- They are never charged.
- The data that comes back is fixed sample data, e.g. the person JANE WANJIKU DOE or a 2015 Toyota Fielder. It is not real data.
- It has exactly the same shape as live responses, so code written against the sandbox works unchanged with a live key.
Input validation, idempotency, rate limits, records and webhooks all behave exactly as they do live.
Inputs that trigger each outcome
Any valid input returns a match. Use these values to reproduce the other outcomes:
National ID, alien ID or passport (IPRS)
identity.national-id- No such person
{"idType":"NATIONAL_ID","idNumber":"00000000"} - IPRS unavailable (502, refunded)
{"idType":"NATIONAL_ID","idNumber":"99999999"}
Driving licence & PSV badge (NTSA)
identity.driving-licence- No licence under this ID
{"idNumber":"00000000"} - NTSA unavailable (502, refunded)
{"idNumber":"99999999"}
Vehicle registration search (NTSA via Pesaflow)
vehicle.registration- Not a registered owner (checks.isOwner: false)
{"registrationNumber":"KDA 123A","ownerIdNumber":"87654321"} - No such vehicle
{"registrationNumber":"KZZ 000Z"} - NTSA unavailable (502, refunded)
{"registrationNumber":"KZZ 999Z"}
KRA PIN by ID number (KRA)
tax.kra-pin- No PIN for this ID
{"idNumber":"00000000"} - KRA unavailable (502, refunded)
{"idNumber":"99999999"}
Business registration search (BRS via Pesaflow)
business.registration- No such business
{"registrationNumber":"PVT-00000000"} - BRS unavailable (502, refunded)
{"registrationNumber":"PVT-99999999"}
Phone number ownership (Safaricom)
phone.ownership- Registered to someone else (matched: false; any ID ending in 1)
{"phoneNumber":"0712345678","idNumber":"12345671"} - Safaricom unavailable (502, refunded)
{"phoneNumber":"0799999999","idNumber":"12345678"}
Last SIM swap (Safaricom)
phone.sim-swap- Safaricom unavailable (502, refunded)
{"phoneNumber":"0799999999"}
Age on network (Safaricom)
phone.age-on-network- Safaricom unavailable (502, refunded)
{"phoneNumber":"0799999999"}
Police clearance certificate (DCI)
background.police-clearance- Certificate not found
{"refNumber":"PCC-6QSLJEYKG","idNumber":"00000000"} - DCI portal unavailable (502, refunded)
{"refNumber":"PCC-6QSLJEYKG","idNumber":"99999999"}
General rules
- Any value containing
00000000returns not found. - Any value containing
99999999returns502 PROVIDER_UNAVAILABLE, a simulated outage at the source. - Number plates use
KZZ 000Z(not found) andKZZ 999Z(outage). - For phone ownership, an ID number ending in
1returnsmatched: false.
Last modified on
