Nilinde
Nilinde Hub API

Verification records

Look up verifications you've already made, and summarise usage.


List verifications

GET
https://restapi.nilinde.com
/v1/verifications
Bearer

Your organization's verifications, newest first. A key sees only its own environment (test keys see test verifications).

List verifications › query Parameters

limit
​integer · min: 1 · max: 100

Page size, 1 to 100.

Default: 20
cursor
​string

nextCursor from the previous page.

apiCode
​string

Only this API, e.g. identity.national-id.

status
​string · enum
Enum values:
PENDING
COMPLETED
FAILED

List verifications › Responses

One page of verifications.

​Verification[] · required
nextCursor
​string | null · required

Pass as cursor for the next page; null on the last page.


Usage summary

GET
https://restapi.nilinde.com
/v1/verifications/summary
Bearer

Calls, success rate and cost per API over a period (default: the last 30 days).

Usage summary › query Parameters

from
​string · date-time

Start (inclusive), ISO 8601.

to
​string · date-time

End (exclusive), ISO 8601.

Usage summary › Responses

The summary.

from
​string · date-time
to
​string · date-time
environment
​string · enum
Enum values:
LIVE
TEST
calls
​integer

All verifications in the period.

completed
​integer
successRate
​number | null

Completed share of finished verifications, from 0 to 1.

totalCost
​string

Total charged in KES.

​object[]

Get a verification

GET
https://restapi.nilinde.com
/v1/verifications/{id}
Bearer

Fetch a verification again by its id, e.g. after a timeout or to show a past result.

Get a verification › path Parameters

id
​string · required

Get a verification › Responses

The verification.

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