Webhooks

Nexiel sends a signed HTTP request to your endpoint when something happens, so you do not have to poll. Endpoints belong to your organization, so they keep working when you rotate an API key and for every Nexiel product.

Managing endpoints

Add, edit, disable and delete endpoints on the Webhooks page of the dashboard, or with the API. Each endpoint has its own signing secret and its own list of event types. You can send a test event, see recent deliveries with their status and your endpoint's response code, and redeliver any of them. Changing an endpoint and revealing or rotating its secret are recorded in Nexiel's audit trail.

  • Who can manage them. People with the settings permission in your organization (Admin and Owner roles) on the dashboard, and full-access API keys.
  • Live and test endpoints. A production endpoint receives events from live keys and needs an approved KYB verification, like a live API key. A sandbox endpoint receives events from test keys, plus account notices that belong to no mode (KYB status, API key expiry), and needs no KYB. Nexiel decides which mode an event belongs to from the key that produced it, never from a value in its payload.
  • Who receives an event. The organization that owns the API key or account the event is about.
  • URLs. https only, on a public address. Private, loopback and cloud-metadata addresses are refused when you save the endpoint and again before every delivery. Redirects are not followed.
  • Limits. Up to 20 endpoints per organization.
Create an endpoint with the API (the same routes exist under /v1/screen and /v1/credentials)
curl -s -X POST https://compliance.nexiel.io/v1/verify/webhook-endpoints \
  -H "Authorization: Bearer $NEXIEL_ACCESS_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/webhooks/nexiel", "eventTypes": ["verify.session.completed", "verify.session.failed"]}'

The response carries the signing secret once. A retry with the same Idempotency-Key returns the same endpoint without the secret. Read it with POST /v1/verify/webhook-endpoints/{endpointId}/secret/reveal. Every change accepts an Idempotency-Key (create, update, delete, rotate, test and redeliver): a retry with the same key replays the first answer and does not act twice. The endpoint and delivery lists are paged like every list: pass the nextCursor of one page as starting_after to get the next, older one. Read the items from data: the endpoints and deliveries fields are deprecated copies of it. A valid key that belongs to no organization is answered 403, a missing or invalid key 401. The other routes are GET (list or one), PATCH and DELETE on /webhook-endpoints/{endpointId}, POST .../secret/rotate, POST .../test, GET .../deliveries and POST /webhook-deliveries/{deliveryId}/redeliver. The TypeScript and Python SDKs, coming to npm and PyPI, wrap them as webhooks on each product client.

Event types

Choose the event types each endpoint receives. An endpoint with none selected receives every type, including ones added later.

  • screening.decision.completed (Screen): A screening decision was made.
  • screening.review.completed (Screen): Your reviewer recorded a review of a possible match. Carries the outcome and the reviewer type, never notes.
  • screening.evidence_pack.ready (Screen): The encrypted evidence pack of a screening decision, pushed to the endpoint you chose for evidence packs.
  • verify.session.completed (Verify): A verification session completed and its decision is available.
  • verify.session.failed (Verify): A verification session failed. Carries a machine-readable reason.
  • verify.session.expired (Verify): A verification session expired without a completed response.
  • verify.review.completed (Verify): Your reviewer recorded a review of a possible match from an aml-identity check. Carries the outcome and the reviewer type, never notes.
  • verify.evidence_pack.ready (Verify): The encrypted evidence pack of a completed verification, pushed to the endpoint you chose for evidence packs.
  • sign.request.qtsp_authorization_required (Verify): A signing request needs the signer to authorize the signature at the trust service provider.
  • sign.request.completed (Verify): A signing request completed and the signed document is available.
  • sign.request.failed (Verify): A signing request failed. Carries a machine-readable reason.
  • seal.request.qtsp_authorization_required (Verify): A sealing request needs authorization at the trust service provider.
  • seal.request.completed (Verify): A sealing request completed and the sealed document is available.
  • seal.request.failed (Verify): A sealing request failed. Carries a machine-readable reason.
  • rp_certificate.expiring_soon (Verify): A relying-party access or registration certificate is close to expiry.
  • rp_certificate.revoked (Verify): The issuer of a relying-party access or registration certificate revoked it; production signing with it has stopped.
  • rp_certificate.suspended (Verify): The issuer put a relying-party certificate on hold; production signing with it is paused until the hold is lifted.
  • rp_certificate.reinstated (Verify): The hold on a relying-party certificate was lifted; production signing with it has resumed.
  • verify.data_deletion_request.received (Verify): A wallet user sent an authenticated request to delete their data; act on it and record the outcome.
  • custom_domain.activated (Verify): A custom domain for your hosted pages passed its DNS checks and is being served.
  • custom_domain.suspended (Verify): A custom domain for your hosted pages failed its DNS checks and is no longer served.
  • issuer_ca.expiring_soon (Credentials): The CA your non-qualified attestations are signed under is close to expiry; upload a renewed chain.
  • credentials.verification.completed (Credentials): An academic credential verification session completed.
  • credentials.verification.failed (Credentials): An academic credential verification session failed.
  • credentials.credential.status_changed (Credentials): The revocation status of a credential you verified changed.
  • kyb.application.status_changed (Platform): The status of your business verification (KYB) application changed.
  • intermediary.link.created (Platform): An intermediary relationship between your organization and another started.
  • intermediary.link.updated (Platform): The delegated permissions or billing roll-up of an intermediary relationship were narrowed.
  • intermediary.link.revoked (Platform): An intermediary relationship between your organization and another ended.
  • intermediary.trust_policy.changed (Platform): Your intermediary saved or activated a version of one of your trust policies through the permission you delegated.
  • api_key.expiring_soon (Platform): An API key is close to the end of its lifetime and should be rotated.

A webhook.test event is also sent when you press Send test event, and it always goes to the endpoint you sent it to. The two evidence_pack.ready events are not chosen per endpoint: when you choose push delivery for evidence packs, they go to the one endpoint you picked for them, and to no other. See push delivery. The payload of the Verify session events is described in the Verify API overview and in its OpenAPI document.

Every delivery has the same envelope
{
  "id": "0b6f6c38-7d3e-4f55-9a31-6a0d7d1f8e52",
  "type": "verify.session.failed",
  "apiVersion": "2026-11-19",
  "livemode": false,
  "createdAt": "2026-10-11T09:30:12.000Z",
  "data": {
    "sessionId": "f1be0a07-e161-4827-a4c3-3337952859ff",
    "clientId": "docs-example-client",
    "checkType": "age-verification",
    "mode": "sandbox",
    "reason": "wallet_reported_error",
    "timestamp": "2026-10-11T09:30:12.000Z"
  }
}
  • id: the event id, the same on every retry and redelivery. Deduplicate on it.
  • type: one of the event types above.
  • apiVersion: the API version the event is rendered in, 2026-11-19 today.
  • livemode: true when the event comes from live mode, false from test mode. An account notice that belongs to no mode reads as the mode of the endpoint it is delivered to.
  • createdAt and data: when the event happened, and its payload.

Events carry identifiers and outcomes, not personal data. Where a result has sensitive material, such as an evidence pack, the event says it is available and you fetch it from the API. The one exception is the evidence-pack push you can opt into, which carries the pack itself, encrypted to your own key so that only you can read it.

Verifying signatures

Every delivery has an X-Nexiel-Signature header of the form t=1763030000,v1=3f9c.... t is the Unix time the delivery attempt was signed. v1 is the hex HMAC-SHA256, keyed with your endpoint's signing secret, of the text {t}.{rawBody}, where rawBody is the request body exactly as received. Verify before you trust the body, compare in constant time, and reject a timestamp more than five minutes from your clock so a captured request cannot be replayed later. Each attempt is signed with a fresh timestamp, so deduplicate on the event id, never on the signature.

Verifying webhook signatures has a tested ten-line verifier for Node.js and Python, with raw-body handling for Express, Next.js and FastAPI. The SDKs, coming to npm and PyPI, wrap the same check as constructWebhookEvent (TypeScript) and construct_webhook_event (Python).

Rotating the signing secret

Rotate from the dashboard or with POST .../secret/rotate. You choose how long the previous secret stays valid (24 hours by default, up to 7 days, or 0 to switch at once). During that overlap every delivery is signed with both secrets and carries two v1 entries: t=1700000000,v1=<old>,v1=<new>. A receiver holding either secret verifies it, so you can deploy the new secret without missing an event. The published verifiers and the SDK helpers accept either. An older SDK or hand-written verifier that reads only the last signature checks against the new secret alone, so deploy the new secret before relying on the overlap. Rotating again while an overlap is open ends the earlier overlap: only the secret being replaced stays valid. When the overlap ends, only the new signature is sent.

Delivery and retries

  • Answer with any 2xx status to acknowledge. Do your own processing after you have durably accepted the event. Each attempt times out after 10 seconds.
  • Any other answer, a network error or a timeout is retried with exponential backoff: 30 seconds, then doubling, capped at 6 hours between attempts, each delay varied by up to 20% so retries spread out, for up to 22 attempts over about three days. After that the delivery is marked exhausted and stays in the delivery list, where you can redeliver it. An evidence-pack push is the exception: it keeps a short window of 8 attempts (about an hour), and when that ends the pack is deleted or kept for one fetch by pull, so it cannot be redelivered.
  • Delivery is at least once. The same event can arrive more than once, and events can arrive out of order. Use the event id, which never changes across retries or redeliveries, to ignore duplicates.
  • A disabled or deleted endpoint receives nothing further, including events already queued for it, and cannot be sent a test event until it is enabled. An endpoint cannot be disabled or deleted while it receives your evidence packs, or while packs pushed to it are still being delivered.
  • Every event stays readable for 30 days through the Events API, so after an outage your receiver can list what it missed instead of waiting for retries.
  • For Verify sessions, polling GET /v1/verify/sessions/{sessionId} stays available as the source of truth.