Events API
Every event Nexiel sends to your webhook endpoints is also readable through the API for 30 days, so a receiver that was down or missed deliveries can catch up on its own.
Routes
Each product has the same two routes. Call them with an API key of that product. All three show the events of your whole organization, so pick the one whose key your service already holds.
| List | Called with |
|---|---|
GET /v1/verify/events | A Verify key |
GET /v1/screen/events | A Screen key |
GET /v1/credentials/events | A Credentials key |
GET /v1/{product}/events/{eventId} returns one event. Read-only keys may use both routes.
The event object
Each event is exactly the envelope a webhook delivery carries, with the same id, so the code that handles deliveries handles these too.
{
"id": "0b6f6c38-7d3e-4f55-9a31-6a0d7d1f8e52",
"type": "verify.session.completed",
"apiVersion": "2026-11-19",
"livemode": false,
"createdAt": "2026-11-19T10:01:12.000Z",
"data": {
"sessionId": "f1be0a07-e161-4827-a4c3-3337952859ff",
"clientId": "my-shop",
"checkType": "age-verification",
"mode": "sandbox",
"timestamp": "2026-11-19T10:01:12.000Z",
"booleanProofs": {
"ageOver18": true
},
"evidencePackAvailable": false
}
}id: the event id. It never changes across retries, redeliveries and this API, so deduplicate on it.type: the event type, one of the types listed on Webhooks.apiVersion: the API version the event is rendered in.livemode:truefor a live-mode event,falsefor a test-mode one.createdAt: when the event happened.data: the event's payload. It holds identifiers, outcomes and hashes, never personal data.
An event never carries an evidence pack. For the two evidence_pack.ready events, the API returns the identifiers and hashes only. Claim the pack, or receive it by push, as described in Evidence packs.
Which events you see
- Events of your own organization only, from every product and every API key of the organization, the same events your webhook endpoints receive. Any API key of the organization, including a read-only key, can read them.
- Events of your key's mode: a test key reads test-mode events, a live key live ones. Organization-level events that belong to no mode, such as a change in your KYB status, appear for both, with
livemodeset to the mode of the key reading them. - Events from the last 30 days. An older event, or one of another organization or mode, is answered 404, the same as an id that never existed.
Listing and filtering
The list is newest first and paged like every other list, with limit, starting_after and the created filters described in Pagination. type narrows it to comma-separated event types, or to a family such as verify.session.*.
curl -s -g "https://compliance.nexiel.io/v1/verify/events?type=verify.session.*&created[gte]=2026-11-18T00:00:00Z&limit=100" \
-H "Authorization: Bearer $NEXIEL_ACCESS_TOKEN" \
-H "Nexiel-Version: 2026-11-19"curl -s https://compliance.nexiel.io/v1/verify/events/0b6f6c38-7d3e-4f55-9a31-6a0d7d1f8e52 \
-H "Authorization: Bearer $NEXIEL_ACCESS_TOKEN" \
-H "Nexiel-Version: 2026-11-19"Catching up after missed deliveries
- Note the
createdAtof the last event your receiver processed. - List events with
created[gte]set to that time, and thetypefilter your endpoint subscribes to. Page untilhasMoreisfalse. - The list is newest first, so process the collected events in reverse to handle them in the order they happened.
- Skip every
idyou have already processed. Deliveries still being retried arrive later with the sameid, so the same check keeps them from running twice.
Webhooks stay the main way to receive events. Use this API to recover from an outage, to reconcile, or to look at what was sent, rather than to poll for new events.
With the SDKs
The TypeScript and Python SDKs, from version 0.2.0, wrap both routes as events.list and events.retrieve, with the same parameters.
const page = await nexiel.events.list({ type: 'verify.session.*', limit: 100 });
for (const event of page.data) {
await handleOnce(event); // your handler, deduplicating on event.id
}
const event = await nexiel.events.retrieve('0b6f6c38-7d3e-4f55-9a31-6a0d7d1f8e52');page = client.events.list(type="verify.session.*", limit=100)
for event in page["data"]:
handle_once(event) # your handler, deduplicating on event["id"]
event = client.events.retrieve("0b6f6c38-7d3e-4f55-9a31-6a0d7d1f8e52")