What you build
A policy-backed request
A policy defines what the wallet must prove, such as
age_over_18, identity attributes, EU residency, or a license claim.A wallet handoff
Your app sends the user to their wallet through a QR code or mobile deep link. The browser only receives short-lived, browser-safe fields.
Policies
A policy says what the wallet has to prove and which credentials count. Start with a built-in preset, or create your own. See Policies.Provider preferences and EUDI options
The browser may send an optionalprovider preference when creating a verification. Advanced EUDI settings such as responseMode and expectedOrigins belong in server-owned creation paths: providerOptions on createAuthboundHandlers (SDK 0.5.0+), createVerificationRoute, createAuthboundRouter, createAuthboundApp, the Nuxt module config, createVerification from @authbound/nextjs/server, or authbound.verifications.create from @authbound/server. SDK handlers do not trust client-supplied values.
Hosted verification page
When your deployment serves Authbound’s hosted verification page,verifications.create() returns verificationUrl (REST: verification_url). Redirect the user’s browser there instead of building the wallet handoff yourself. The link is absent on the test API, which has no hosted page, when the response mode is dc_api.jwt, and when the verification has already finished, so check for it before you redirect.
verificationUrl is a bearer link. Use it only to redirect the browser, never in a QR code, email, log line or analytics event.
To bring the user back to your app, pass returnUrl (REST: return_url) on create, with SDK 0.5.0 or later. The origin must be in the project’s Allowed origins (see Get API keys). Test keys also accept localhost; live keys require a public https host. When the verification finishes, the hosted page redirects there with ?verification_id=. Your server must accept only the ID it started for that user’s session, and only then call getResult() with your secret key. Without that check, someone could complete their own verification and send its ID to your return URL.
verification_id with the ID you stored and reject a mismatch before you read the result. Webhooks and results covers the result itself.
Trust model
The browser result is for the user’s experience. Your server confirms the result before granting access. How it works explains why.Store only the data you need. Verification results can include personal data depending on the policy. Keep PII on the server and out of browser cookies.
API statuses
| Status | Meaning |
|---|---|
created | The verification was created and a wallet handoff is being prepared. |
awaiting_user | Waiting for the user to open their wallet or approve the request. |
awaiting_provider | The wallet or provider handoff is in progress. |
processing | Wallet data was received and is being validated. |
verified | The policy was satisfied. |
failed | The policy was not satisfied or the presentation was invalid. |
canceled | The verification was canceled. |
expired | The user did not finish before the deadline. |
UI SDKs collapse early API states (
created, awaiting_user, awaiting_provider) into pending. The processing API state maps to UI processing, not pending.Browser SDK UI statuses
UI packages also expose client-side states that are not gateway API values:| UI status | Meaning |
|---|---|
idle | No verification has started yet. |
pending | Waiting for wallet handoff or user action. |
processing | Wallet data was received and is being validated. |
verified | The policy was satisfied. |
failed | The policy was not satisfied or the presentation was invalid. |
canceled | The verification was canceled. |
expired | The user did not finish before the deadline. |
timeout | The browser-side handoff window elapsed before a terminal API status arrived. |
error | A client-side error occurred during create, status, or session finalization. |
Time limits
A verification and its client token last 15 minutes by default. See Browser sessions for how that interacts with the SDK’s session cookie.Failure codes
When a verification reachesfailed, the response includes a failure_code. Non-failed responses never include one.
| Code | Meaning |
|---|---|
presentation_invalid | The wallet presentation could not be validated. |
credential_expired | The presented credential has expired. |
credential_revoked | The presented credential has been revoked. |
issuer_untrusted | The credential issuer is not trusted for this policy. |
policy_not_satisfied | The presentation did not satisfy the policy rules. |
processing_timeout | Validation timed out before a result was available. |
provider_error | The verification provider returned an error. |
user_declined | The wallet denied the request: the user declined, the wallet had no matching credential, or the user couldn’t unlock the wallet. |
wallet_error | The wallet answered with an error instead of a presentation, for example because it couldn’t process the request. |
Failure reasons
Afailure_code tells you what kind of failure it was. failure_reason tells you which check failed, so you can fix a test setup without asking us. Send contract revision v1.2026-11-28.1 to get it. Earlier revisions never return it.
You get it on secret-key reads only: create, retrieve, list and cancel. It is never on the browser status routes or in webhooks, so the end user never sees which check failed.
| Code | Reasons |
|---|---|
presentation_invalid | issuer_not_trusted, issuer_not_matched, credential_invalid (issuer signature or validity period), key_binding_invalid, holder_key_unsupported, disclosures_invalid, credential_type_not_accepted, credential_revoked, status_list_invalid, status_missing, response_malformed, claims_too_large, other |
policy_not_satisfied | claims_not_disclosed: no requested claim set was disclosed with acceptable values |
provider_error | status_list_blocked (the deployment’s network rule refused the status list fetch), verifier_error |
wallet_error | The wallet’s error code when it is a registered one, such as invalid_client or vp_formats_not_supported. Any other code is unregistered_error. |
expired verification can carry one too. request_not_fetched means the wallet was not seen fetching the request, so it probably never opened the link. wallet_no_response means it fetched the request and no response the verifier could process came back.
The field is absent when no reason is known, for example on user_declined. Verifications under an age verification (avp) policy never carry one. It holds only these names, never a claim value, an issuer, a URL or a message.
Wallet handoff fields
client_action and verification_url are present only while a verification can still be handed to a wallet. Terminal statuses (verified, failed, canceled, expired) do not include wallet handoff data. Direct REST action kinds shows what client_action holds and which URI scheme the built-in presets use.
Next steps
Verify a user
Create a verification, return browser-safe fields, and render the wallet handoff.
Webhooks and results
Persist trusted outcomes in your backend before production launch.