Webhooks
When a verification completes, Ad-Hoc Verify POSTs the results to a URL of your choosing in real time — no polling required.
When Webhooks Fire
A webhook is sent whenever a verification reaches a terminal state. There are two states that trigger delivery:
manual_review_requested: true in the verification object.Verifications that expire without completion, or that are deleted, do not trigger a webhook.
Payload Shape
The webhook is a POST request with Content-Type: application/json. The body always contains request_id and verification; the remaining fields are present only when
they apply.
Core Fields
id returned when you
created the request{} when no fields were requested.
Always an encrypted envelope; personal data is never sent in plaintext.include_license_photo was enabled. An encrypted envelope (the image is never sent in plaintext).license_data, phone_verification.lookup, and license_photo.name (the label you gave the key), fingerprint_ssh (SHA256:…, as printed by ssh-keygen -l) and fingerprint_sha256 (hex
SHA-256 of the DER-encoded public key, as produced by openssl).Verification Object
false does not always mean a
forged card: it is also what you get when neither the barcode nor the
printed text could be read, or when no physical card could be
confirmed. Check reasons for license_unreadable (nothing to check), license_data_mismatch (the barcode contradicts the front)
or license_card_unconfirmed (no card established).false means that could not
be established, so a face match is not a good-faith match (for example
a face held up to the camera in place of a card). When false, license_appears_real is also false. Absent on older results. See license_card_unconfirmed in reasons.true, false, or "undetermined".
Whether the license expiration date has passed. "undetermined" means no expiration date could be read (the
barcode was not decoded and the front of the card gave none), so it is
not known either way.true, false, or "undetermined".
Whether the person is 21 or older based on the date of birth on the
license. "undetermined" means no date of birth could be
read, so it is not a finding that the person is under
21.true, false, or "undetermined".
Whether the person is 18 or older based on the date of birth on the
license. "undetermined" means no date of birth could be
read, so it is not a finding that the person is under
18."driver_license", "id_card", or "undetermined". Read from the title at the top of the card
(for example "Driver License", "Operator License", "Driver Privilege
Card" or "Permis de conduire" are driver_license;
"Identification Card", "Non-Driver ID" or "State ID" are id_card). If the title cannot be read, the document type in
the barcode is used. "undetermined" means neither said.
Both types are accepted as valid ID; this field lets you tell them apart.
May be absent on older results."MA" or "ON"), read from the header of the
card, or "undetermined". If the header cannot be read, the
state in the barcode (the holder's address) is used. May be absent on
older results.true, false, or "undetermined". "undetermined" means the match was inconclusive and manual review
was requested. When the score is below likely_match, check reasons for why: the faces may simply not have been
comparable.definite_match, likely_match, possible_match, or no_match. See Face Match Scoring.face_match_score for business logic.proxy_type and proxy_description are added when is_proxy is true. A proxy is not proof of
fraud; see Data Fields & Indicators.true when the end user requested manual review after
a failed face match.Reasons
A false or low result is not always evidence against the person.
A card can fail to scan, a photo can be too blurry to read a face from, or a
barcode can fail to decode, and each of those would otherwise look the same
as a fake ID or a minor. reasons separates the two. Each entry
explains one or more checks:
verification the entry explainsfinding: evidence about the person or document (a mismatch,
a failed comparison). incomplete: the check could not be
completed, which says nothing about the person. info:
context, such as a face match decided by a person during manual review.finding · license_appears_real. The
license number or last name on the barcode differs from the front of the
card.incomplete · license_appears_real.
Neither the barcode nor the printed text could be read, so there was
nothing to check.finding · license_card_confirmed. The
image used as the license photo could not be confirmed to be a physical
license (no readable state or province, no barcode values found as
printed text, or a face sized like a selfie).finding · webcam_face_matches_license_photo, face_match_score, license_card_confirmed. The
selfie matched, but the image it matched could not be confirmed to come
from a card. Treat the match as not established in good faith.incomplete · over_18, over_21 (both "undetermined"). No date of birth
could be read.incomplete · license_expired ("undetermined"). No expiration date could be read.info · issuing_jurisdiction. The state
or province at the top of the card differs from the one in the barcode.
The barcode holds the holder's address, which can differ from the issuer.info · document_type. The front of the
card and the barcode disagree on driver license versus ID card. The front
reading is reported.incomplete · webcam_face_matches_license_photo, face_match_score. A usable face could not be read from the
license photo, so no comparison was made.incomplete · the face checks. No usable face was
captured from the selfie video.incomplete · the face checks. Both faces were read
and the score landed on possible_match.finding · the face checks. Both faces were read and
compared and were not similar enough.info · the face checks. A person decided the face
match during manual review; the automatic face reasons are replaced by
this one.incomplete · webcam_appears_live. One or
more live-person challenges were not completed.code as an incomplete result unless its kind says otherwise. Results created before reasons was introduced do not include it through the API.Custom Headers
You can attach arbitrary HTTP headers to webhook deliveries — useful for authenticating the request on your server so you know it's genuinely coming from Ad-Hoc Verify.
Configure headers when creating a template or an individual verification request. Headers are stored as a JSON object and sent with every delivery to that verification's webhook URL:
On your server, validate the header value on every inbound webhook request before processing the payload. This is the primary mechanism for confirming the request originated from Ad-Hoc Verify.
Retry Logic
If your endpoint returns a non-2xx status code, or the request times out, Ad-Hoc Verify retries automatically:
After 3 failed attempts the webhook_status is set to "failed". You can trigger a manual retry from the Requests page on the dashboard, or call the retry endpoint via API. Results are
always retrievable via GET /verification regardless
of webhook delivery status.
Security Recommendations
- Use a secret header. Set a
webhook_headersvalue likeX-Webhook-Secretand validate it on every request. - Require HTTPS. All webhook URLs must use
https://. Plaintext HTTP is not supported. - Respond quickly. Return a
2xxas soon as you receive the payload and process it asynchronously. Long-running responses risk timeouts and unnecessary retries. - Treat
request_idas idempotent. Retries deliver the same payload. Check whether you've already processed a givenrequest_idbefore acting on it. - Personal data arrives encrypted. E2E encryption is always on when PII is collected, so the payload arriving at your webhook cannot be read in transit or by intermediaries. Keep your passphrase or private key safe.