Nilinde
Nilinde Hub API

Police clearance (certificate of good conduct) verification against the DCI portal.


Police clearance certificate (DCI)

POST
https://restapi.nilinde.com
/v1/verifications/background.police-clearance
Bearer

Verifies a DCI police clearance (certificate of good conduct) against the DCI portal, using its reference number and the holder's ID number. Returns the verdict, holder name, issue and expiry dates (valid one year from issue) and any recorded offences. found: false with reason CERTIFICATE_NOT_FOUND or ID_MISMATCH is DCI's own answer. Checks can take up to a minute.

Price: set by your bundle; one charge per call. "Not found" answers (result.found: false) are charged. Source failures return 502 and are refunded.

Try it: press Test on the request panel, choose ApiKey under Authentication and paste your test key (kept for this browser session). Use Example loads a scenario for each outcome. Test keys return sandbox sample data, free.

Police clearance certificate (DCI) › Headers

Idempotency-Key
​string · maxLength: 255

Makes retries safe: a repeat with the same key and body returns the original verification without charging again. Up to 255 characters.

Police clearance certificate (DCI) › Request Body

refNumber
​string · pattern: ^PCC-[A-Z0-9]{6,12}$ · required

Reference number printed on the certificate.

Example: PCC-6QSLJEYKG
idNumber
​string · pattern: ^\d{6,10}$ · required

National ID number of the certificate holder.

Example: 12345678

Police clearance certificate (DCI) › Responses

Verification completed; see result.

One verification. Returned by every verification API, by `GET /v1/verifications/{id}`, and in webhooks.
id
​string · required

Unique id; use it to fetch the verification again.

api
​string · required

The verification API that was called, e.g. identity.national-id.

status
​string · enum · required

COMPLETED includes "not found" answers; FAILED means the source failed and the charge was refunded.

Enum values:
PENDING
COMPLETED
FAILED
environment
​string · enum · required

TEST for test keys (sandbox data), LIVE for live keys.

Enum values:
LIVE
TEST
​object | null · required

The answer, specific to each API (see its examples). Always has found: false when the source holds no record.

error
​object | null · required

Set when status is FAILED.

cost
​string · required

Amount charged in KES, as a decimal string. "0" for test keys and failed verifications.

createdAt
​string · date-time · required
latencyMs
​integer | null

Time the source took to answer, in milliseconds.

completedAt
​string | null · date-time