01 / Prerequisites
Prepare an organization-scoped receiver.
Confirm token scope, environment and permissions before integrating. Use synthetic data when testing in Sandbox.
Token scope: Create a token in Settings > Developer access. Tokens belong to one organization and can expire or be revoked.
Environment: Use a Production token with /api/v1/verify or a separate Sandbox token with /api/v1/sandbox/verify. They are not interchangeable.
Organization membership: Tokens access records belonging to their organization. Resources belonging to another organization are not exposed.
Consent: Set consentGiven and consentGivenAt only when applicant consent was actually captured.
02 / Delivery
Subscribe to the documented events.
Configure webhook targets in Settings > Webhooks. Deliveries are JSON and may arrive more than once or out of order.
Supported events: application-created and verification-complete.
POST https://partner.example.com/hooks/thunzi-verify
Content-Type: application/json
X-Thunzi-Event-Id: evt_01j9z0example8f7a3c2d1b5
X-Thunzi-Signature: <hex-encoded HMAC-SHA-256 of the raw request body>{
"eventId": "evt_01j9z0example8f7a3c2d1b5",
"event": "verification-complete",
"organizationId": 1,
"sentAt": "2026-09-30T08:16:30.0000000Z",
"data": {
"applicantId": 42,
"applicationReference": "APP-8A73DD10",
"requestId": "8d2b61aa-9b7d-45b8-86f7-12ed922156e6"
}
}Signature headers are included when a signing secret is configured. Asynchronous callbacks to the submitted callbackUrl are separate from organization webhook events and include X-Thunzi-Request-Id.
03 / Response
Acknowledge, then reconcile.
Return any 2xx response to acknowledge delivery. Deduplicate using eventId; when requestId is present, fetch current state before triggering irreversible workflows.
HTTP/1.1 204 No ContentA 2xx acknowledges receipt. Deliveries are at-least-once and may be out of order; deduplicate by eventId and use requestId, when present, to fetch current state before acting.
04 / Security
Verify signatures against the original bytes.
When an organization signing secret is configured, deliveries include a hex-encoded HMAC-SHA-256 in X-Thunzi-Signature. Verify before parsing JSON.
import crypto from "node:crypto";
function verifyThunziSignature(rawBody, signatureHeader, secret) {
if (!/^[a-f0-9]{64}$/i.test(signatureHeader)) return false;
const expected = crypto
.createHmac("sha256", secret)
.update(rawBody)
.digest();
const received = Buffer.from(signatureHeader, "hex");
return received.length === expected.length &&
crypto.timingSafeEqual(received, expected);
}• Reject unsigned deliveries when a signing secret is configured.
• Reject sentAt values more than five minutes stale and deduplicate using eventId or X-Thunzi-Event-Id.
• Validate organizationId when receiving events for multiple organizations.
• Keep signing secrets server-side; allow a brief overlap when rotating secrets.
05 / Troubleshooting
Design for retries and current state.
Use request identifiers and structured errors to understand failures. Avoid duplicate submissions when a request may already have been accepted.
• No delivery received — For organization events, confirm the target is enabled and publicly reachable over HTTPS. For an async callback, inspect the request status and submitted callbackUrl.
• Repeated delivery — Delivery is at-least-once. Deduplicate using eventId; do not treat a retry as a new verification.
• Out-of-order event — Fetch the latest request or applicant state before driving a workflow.
• Delivery marked failed — Return a 2xx promptly. Organization webhook timeout is 5 seconds; async callback timeout is 8 seconds.
API version v1 is part of every API path. Check the current developer manual and deployed contract before changing a production integration. Confirm release changes with your integration contact.
06 / Related documentation
Continue with the API reference, Authentication, the Developer guide and the Trust policy.
Integration note
Verification results support review; they do not decide. Suggested results are provisional. Organizations remain responsible for interpreting findings and making decisions.
