Xuda logo Xuda Docs User Guides
/
xuda.io
← All guides Trust Center

Xuda Trust Center API Reference

Source file: xuda-trust-center-api-reference.md

Xuda Trust Center API Reference

This reference covers the full method surface of Xuda Trust Center, the identity and business verification engine: the two methods an external developer can call with an account API key, the four unauthenticated endpoints behind the hosted verification link and the phone document handoff, the twenty-seven dashboard methods that drive the verification screens and the Trust Center service console, and the nine operator-only methods reserved for Xuda staff. It is written for developers wiring verification into their own product, and for anyone who needs to know exactly what each method does and which credential reaches it. Every method key, parameter name, type and required flag below is taken from the shipped method contract.

How To Call These Methods

Every method here is a CPI method. CPI methods are dispatched by name over the Xuda API and MCP layer, and the normal credential for that layer is the account API key. Verification reuses the account's existing Xuda API keys, so there is no second key system to manage. For the transport-level detail, including how requests are framed and how the MCP layer exposes methods, see /api-mcp-integration.

Every method answers with the standard Xuda envelope, { code, data }. A code above zero is success and the payload sits in data. A code below zero is a refusal and data carries a human-readable message.

Trust Center has a deliberately narrow API-key surface, and you should know it before you write a line of code. Of the 42 registered verify_module methods, exactly two are flagged private: false, which is what makes a method reachable with an API key through the http layer: verify_session_create and verify_session_result. That pair is the shipped external API. What the rest of the surface is:

  • Four methods with public clearance, called without any account credential. Two serve the hosted verification link a tenant sends to one of their own users, and two serve the phone handoff for photographing an identity document on a second device. In both cases a single-use token in the body is the credential.
  • Twenty-seven methods with user clearance that require a signed-in Xuda dashboard session, with the caller uid injected from that session. These are what the verification screens and the Trust Center console call. They are documented in full because they define the product's behavior, but an API key cannot reach them and will be refused.
  • Nine operator-only methods for the human review queue and the platform supervisor screen. Listed for completeness, not for integration.

Do not build against the session methods with an API key. They will be refused.

One honest warning before you build. verify_session_create will create a live session and return a valid hosted link, but it reports capture_open: false on every live session, and verify_hosted_complete refuses any non-sandbox session with "Live verification is not open yet". A person reaching a live link today cannot finish it. Sandbox runs end to end, including the webhook, and is what you should build against for now.

Where the shipped method contract does not declare a type for a parameter, this reference records the type as Not stated rather than guessing one.

What The Availability Labels Mean

Every method below carries one explicit availability line. Read it first, because it tells you whether you can call the method from your own code today.

  • Availability: API key means an external developer API key or the MCP layer can call it. Two Trust Center methods carry this label: verify_session_create and verify_session_result.
  • Availability: Dashboard session means a signed-in user in the Xuda dashboard can call it, and an API key cannot. The account identity comes from the session, never from a parameter.
  • Availability: Public endpoint means no account authentication at all. The credential, where there is one, is a single-use token carried in the body: a hosted-session token or a document-handoff token.
  • Availability: Operator only means Xuda staff. Some of these are registered with clearance: admin; the rest are registered with clearance: user and re-check superuser membership in code, returning -403 otherwise, because in this codebase clearance: admin is not the same thing as superuser.

Method Index

Method What It Does
verify_session_create Creates a verification session for one of your own users and returns a hosted link.
verify_session_result Reads the current status and result of a session you created.
verify_get_status Returns the signed-in account's level, score, claims and per-level gaps.
verify_gate_check Reports whether the caller meets a named product gate.
verify_phone_start Runs a line-type lookup on a phone number and sends a one-time SMS code.
verify_phone_confirm Confirms the SMS code and grants the phone claims.
verify_domain_start Returns the DNS TXT record to add for a domain control check.
verify_domain_check Looks for the TXT record, then records registration age and MX presence.
verify_document_submit Reads and validates a photo of an identity document. Images are not stored.
verify_handoff_start Mints a single-use token for photographing the document on a second device.
verify_handoff_state Reports the status of a handoff token, and nothing about the account.
verify_handoff_submit Submits the document photos from the phone, resolving the account from the token.
verify_profile_picture_submit Matches a profile picture against the verified document portrait.
verify_liveness_frame_check Takes one frame and returns one framing instruction. Detector only.
verify_liveness_start Returns a single-use challenge id and the randomly ordered movement steps.
verify_liveness_submit Completes the live capture challenge and grants face match and liveness.
verify_face_submit Still-photo face match only. Never grants liveness.
verify_payment_check Re-reads the Stripe payment signals and rescores the account.
verify_card_authorize Places a small authorization to obtain a Radar and 3D Secure verdict.
verify_card_authorize_finish Reads the outcome after a 3D Secure challenge and releases the hold.
verify_tax_id_submit Adds a tax ID for Stripe to check against VIES or HMRC.
verify_org_submit Reads a company registration document and cross-checks the public register.
verify_org_registry_check Re-runs the business register cross-check on its own.
verify_web_check Searches the public web and returns structured findings with citations.
verify_correlation_check Links the account to others by shared hashed identifiers.
verify_appeal_submit Asks a person to review an automated result and files a ticket.
verify_set_plan Switches the Trust Center tier on the consolidated subscription.
verify_tenant_get Reads the verification service settings, the tier, its flags and the allowance.
verify_tenant_update Enables the service, switches sandbox, sets the webhook and domain, rotates the secret.
verify_tenant_usage Per-check usage and cost for the caller's own traffic, plus the allowance.
verify_session_simulate Completes a sandbox session with a chosen outcome and fires the webhook.
verify_hosted_state Reports what a hosted link is asking for, read with the link token.
verify_hosted_complete Completes a hosted session. Refuses any non-sandbox session today.
verify_review_apply Uphold or overturn an automated result after human review.
verify_review_decide Records an approve or decline without acting on it.
verify_review_commit Applies whatever decision was recorded, when the ticket closes.
verify_review_media Returns the held document and capture frames for an open review.
verify_admin_subject Recomputes and returns the full subject including signal detail.
verify_admin_reset Clears the level 2 claims and review state for one account.
verify_admin_shadow_report Score and level distribution across accounts.
verify_admin_usage Per-check metering rollup, the same path the external service bills on.
verify_admin_policy The live policy, the levels, the gates and the per-check price list.

verify_session_create

Verify: create a verification session

Creates a verification session for one of your own users and returns a hosted link to send them. Callable with a Xuda API key, or from a signed-in tenant dashboard. The account must have the verification service switched on (verify_tenant_update with enabled: true), or the call returns -403. The requested level is clamped to 1 to 4 and defaults to 2, and it is refused with -402 if it exceeds the level ceiling the current Trust Center tier buys, naming the tier that would carry it rather than silently downgrading the session. On a live (non-sandbox) session the call also checks the monthly allowance: past the allowance a paid tier meters at the tier's per-verification price and a Free tier is refused with -429. The per-minute API rate ceiling for the tier applies. Sandbox sessions are free, are never counted and complete end to end. The response carries session_id, sandbox, requested_level, external_ref, hosted_url, expires_at (24 hours out), status, plan_id, over_allowance and overage_usd when applicable, and on every live session capture_open: false plus a note that a live link is valid but cannot yet be completed. The hosted URL is served from the tenant's own verification domain when the tier includes one and it is configured, otherwise from the Xuda host.

Availability: API key

Parameters

Name Type Required Description
level number No The verification level to require, 1 to 4. Defaults to 2. Clamped into range, and refused if above the plan's max_level.
external_ref string No Your own reference for this person or record, up to 200 characters. Echoed back on the session result and on the webhook so you can match an outcome to your record without storing ours.

Notes

  • Auth: clearance: user, private: false, so it is callable with an API key belonging to the account. No min_plan. The Trust Center tier, not the membership plan, is what bounds it.
  • Plan gate: the tier's max_level bounds level at 1 on Free, 2 on Starter, 3 on Grow and 4 on Scale. Exceeding it returns -402 naming the tier that would carry the request.
  • Allowance: 10, 100, 500 and 2,500 live verifications a month on Free, Starter, Grow and Scale. Past that, Starter meters at $0.35, Grow at $0.25 and Scale at $0.15 per verification, and Free is refused with -429 until the month rolls over.
  • Rate limit: 10, 60, 300 or 1,000 calls a minute by tier. The ceiling is in-process rather than shared, so it is a spend and stampede brake, not a security boundary, and a tenant served by several module instances gets a multiple of it.
  • The hosted link is valid for 24 hours.
  • Sandbox sessions are unlimited, free, never counted, process no real identity, never reach the face service and store no image.
  • Live sessions return capture_open: false. The link is created and valid, and the person reaching it cannot complete it yet.

verify_session_result

Verify: read a verification session

Returns the current status and result of a verification session you created. Callable with a Xuda API key. Scoped to the caller: a session belonging to another tenant returns -403, and an unknown session returns -404. History is a tier feature, so a session older than the plan's retention window is refused with -402 naming the number of days the tier keeps and suggesting an upgrade; the record itself is not deleted by this call. The response carries session_id, status, sandbox, requested_level, external_ref, result, created_at and expires_at as ISO timestamps. result is null until the session completes, and then carries outcome (approved, declined or review), level, claims, reasons and, for a sandbox run, simulated: true.

Availability: API key

Parameters

Name Type Required Description
session_id string Yes The session_id returned by verify_session_create.

Notes

  • Auth: clearance: user, private: false, callable with an API key. No min_plan. The retention window is enforced from the Trust Center tier.
  • Plan gate: history runs 30 days on Free, 365 on Starter, 1,095 on Grow and 1,825 on Scale. Reading past the window returns -402 naming the number of days the tier keeps.
  • Polling this method is not the only way to learn an outcome. On Starter and above a signed webhook is delivered instead, and it carries the same result object.
  • Reading a session is not metered. Only session_create appears in the meter, at a price of $0.

verify_get_status

Verify: my status

Returns the signed-in account's verification state: the level, the trust score, the confirmed claims, the reasons behind the score, the gaps for each level that is not yet reached, the confirmed phone, the state of the document window and a payment summary. This is what paints the level ladder, the trust score and the "What we have confirmed" chips on Settings > Verification.

Availability: Dashboard session

Parameters

This method takes no parameters.

Notes

  • Auth: session user, uid injected from the session. An API key cannot reach it.
  • No min_plan and no credit cost. Internal verification is free and is never tiered by membership plan.
  • The payment summary reports whether a card is present, whether the address and security-code checks passed, whether the card is prepaid, whether a wallet was used and how many charges are on record. It never returns the scoring weights.
  • The account document carries a small projection of the same state under account_info.verify_level, verify_score, verify_claims and verify_updated_ts, so a caller that already holds the account document does not need a second round trip.
  • While shadow mode is on the level is computed and reported but nothing is enforced, and the dashboard says so to the user in plain words.

verify_gate_check

Verify: gate check

Reports whether the caller meets a named product gate. Gates are declared in the policy file rather than in code and cover profile images, contact actions, phone numbers, mailboxes, external IPv4 addresses, domains, store orders, campaigns, seller accounts, ambassadors and mentors. This is what turns a refusal into a message that deep-links to the exact verification step that would clear it.

Availability: Dashboard session

Parameters

Name Type Required Description
product string Yes The named product gate to evaluate.

Notes

  • Auth: session user. An API key cannot reach it.
  • Shadow mode is on at policy version 1.6.0, so the gate always answers allow: true and reports would_deny alongside it. Read would_deny if you want to know what enforcement would do.
  • The jurisdiction block is the one exception and is deliberately not subject to shadow mode. An account in Canada, China or Russia is refused at every gate from level 2 upward, and the refusal is real today.
  • Gates are enforced server side by the modules that create the resource, through a broker-only call a user cannot aim at another account. This method only reports the caller's own standing.

verify_phone_start

Verify: send phone code

Runs a Twilio Lookup v2 line-type check on the number, then sends its own six-digit one-time code by SMS. The lookup is what separates a real mobile or landline from an internet or throwaway number, and it runs first so the result can be reported before the code arrives. A code delivered to a VOIP number still arrives, but it does not earn the phone_not_virtual claim, and the dashboard shows an amber warning to that effect.

Availability: Dashboard session

Parameters

Name Type Required Description
phone string Yes The phone number in international format.

Notes

  • Auth: session user. An API key cannot reach it.
  • Rate limit: 5 codes an hour per account.
  • The code is valid for 10 minutes and allows 5 attempts.
  • A Twilio Lookup failure degrades the line type to unknown and never blocks the code from being sent.
  • SMS delivery is gated on the verify.sms_enabled configuration flag plus real Twilio credentials. Without them the code is logged and nothing is sent.
  • Metering: phone_lookup at $0.01 and phone_otp at $0.05, both billable. Internal verification is still free to the account; the meter exists so unit economics are visible.
  • Only the salted hash of the code is stored, and both the hash and the salt are nulled once the code is confirmed.

verify_phone_confirm

Verify: confirm phone code

Confirms the six-digit code that verify_phone_start sent and grants the phone claims. The number the code was sent to is the one on file, so the number is not passed again here.

Availability: Dashboard session

Parameters

Name Type Required Description
code string Yes The six-digit code delivered by SMS.

Notes

  • Auth: session user. An API key cannot reach it.
  • 5 attempts per code. The code expires 10 minutes after it was sent.
  • The phone_not_virtual claim is granted only when the line-type lookup recorded a real mobile or landline. Confirming a code on an internet line grants the confirmation but not that claim.
  • With the account email already confirmed and a real mobile or landline, this is the call that completes Level 1 for a personal account.

verify_domain_start

Verify: start domain check

Begins a domain control check for a business account and returns the DNS TXT record to publish. Adding the record at the domain's own DNS provider is what proves control, so the token is meaningful only to the account it was issued to.

Availability: Dashboard session

Parameters

Name Type Required Description
domain string Yes The domain to prove control of.

Notes

  • Auth: session user. An API key cannot reach it.
  • Metering: the domain_control check is priced at $0 and is not billable.
  • Starting the check does not grant anything. Publish the record, then call verify_domain_check.

verify_domain_check

Verify: check domain

Looks for the TXT record at the domain, and on success also records the domain's registration age from RDAP and whether it publishes MX records. Domain control plus registration age plus MX presence is the business route to Level 1.

Availability: Dashboard session

Parameters

Name Type Required Description
domain string Yes The domain to check.

Notes

  • Auth: session user. An API key cannot reach it.
  • The TXT lookup and the MX check run against the public resolvers 1.1.1.1 and 8.8.8.8.
  • Registration date and registrar come from a keyless RDAP lookup at rdap.org.
  • Metering: domain_control at $0, not billable.
  • DNS propagation is not instant. A record that was just added may need a retry.

verify_document_submit

Verify: submit identity document

Reads a photograph of an identity document with a vision model and then validates it deterministically. The validation is the part that matters: full ICAO 9303 MRZ parsing with check digits for TD1, TD2 and TD3, printed-against-MRZ and front-against-back consistency, AAMVA PDF417 barcode parsing for North American licenses, JPEG EXIF provenance with image-editor detection, and a cross-account duplicate check against a one-way hash of country plus document number. If the account already has a profile picture it is fetched and matched against the portrait on the document in the same call.

The images are never stored. They arrive in the request, are read, and are dropped when it returns. What persists is the extracted fields with the document number reduced to its last four, the check results, the portrait embedding and the duplicate hash. The one exception is a case routed to a human reviewer, where the images are held for that review only.

Availability: Dashboard session

Parameters

Name Type Required Description
front string Yes The front of the document as an image.
back string No The back of the document. Omit for a passport.
country string No The issuing country of the document.

Notes

  • Auth: session user. An API key cannot reach it.
  • Image intake: at most 12 MB per image, and the MIME type must be image/jpeg, image/png, image/webp, image/heic or image/heif.
  • A successful read opens a 15 minute document window. The profile picture match and the live capture have to finish inside it, and the response carries window_expires_at.
  • Instruction-like text found inside a submitted document is treated as a fraud signal worth -30 points, never as an instruction. The scorer never sees free text, so a successful injection can at worst corrupt an explanation.
  • A failed PDF417 decode is explicitly neutral and is never a penalty, and a decoder that is unavailable is reported as unavailable.
  • The portrait, the profile picture and the live capture are matched against each other at a cosine-distance threshold of 0.637.
  • Two failed profile-picture matches route the case to a human reviewer rather than offering a third retry.
  • Metering: document_extract at $0.04, document_barcode at $0.01 and face_match at $0.01, all billable.
  • Refused outright for an account whose country is Canada, China or Russia. That block is not subject to shadow mode.

verify_handoff_start

Start Document Handoff

Mints a single-use token for photographing the identity document on a second device. The dashboard renders it as a QR code, and the phone that scans it lands on a capture page with no sign-in of its own, because the token carries the account.

Availability: Dashboard session

Parameters

This method takes no parameters.

Notes

  • Auth: session user. An API key cannot reach it.
  • The token is 32 random bytes and only its hash is stored. The plaintext exists in the QR code and nowhere else.
  • The token lives 15 minutes, allows 5 attempts, and is consumed on the first successful submission.

verify_handoff_state

Document Handoff State

Reports the status of a handoff token so the desktop screen can follow along while the photos are being taken on the phone. It answers with the state of the token only, and nothing about the account behind it.

Availability: Public endpoint

Parameters

Name Type Required Description
token string Yes The handoff token from the QR code.

Notes

  • Auth: none. The token is the credential, and it is matched against a stored hash.
  • Deliberately says nothing about the account. An expired, consumed or unknown token is reported as such and no identity is leaked.
  • Polling this is how the desktop screen learns that the phone finished.

verify_handoff_submit

Submit Document From Handoff

Submits the document photographs taken on the phone. The account is resolved from the handoff token, so the phone never signs in. Everything verify_document_submit does then runs against these images, including the MRZ and barcode validation, the duplicate check and the profile-picture cross-match.

Availability: Public endpoint

Parameters

Name Type Required Description
token string Yes The handoff token from the QR code.
front string Yes The front of the document as an image.
back string No The back of the document. Omit for a passport.
country string No The issuing country of the document.

Notes

  • Auth: none beyond the token, which is single use and consumed on success.
  • The token allows 5 attempts and expires 15 minutes after it was minted.
  • The same intake limits apply: 12 MB per image, and JPEG, PNG, WebP, HEIC or HEIF only.
  • The images are not stored, exactly as on the desktop path.
  • Metering is charged to the account the token resolves to, not to the device that sent the photos.

verify_profile_picture_submit

Verify: submit profile picture

Matches a profile picture against the portrait extracted from the verified identity document. This is the edge that ties the avatar shown across the platform back to a face that was checked against a document.

Availability: Dashboard session

Parameters

Name Type Required Description
picture string Yes The profile picture as an image.

Notes

  • Auth: session user. An API key cannot reach it.
  • Requires a document already on file, and the match has to happen inside the 15 minute document window.
  • Matched at a cosine distance threshold of 0.637, the same threshold used for the other two image edges.
  • Two failed matches route the case to a human reviewer instead of offering a third retry.
  • Metering: face_match at $0.01, billable.
  • Implemented and registered, with no dashboard call site of its own today. The same cross-match runs automatically inside verify_document_submit when the account already has a picture.

verify_liveness_frame_check

Verify: check live capture framing

Takes one camera frame and returns one framing instruction, for example move closer, move back, center yourself or add light. It is a detector call only. It reads no identity, grants nothing and is safe to call repeatedly while the user is getting into frame.

Availability: Dashboard session

Parameters

Name Type Required Description
frame string Yes A single camera frame as an image.

Notes

  • Auth: session user. An API key cannot reach it.
  • No claim is granted and no score changes. This is guidance, not evidence.
  • Served by the first-party face service, which runs as a separate local process and refuses to bind all interfaces.
  • The frame is not stored.

verify_liveness_start

Verify: start live capture

Returns a single-use challenge id and the randomly ordered head movements the person will be asked to perform. The order is chosen server side after the capture is requested, with a Fisher-Yates shuffle over a cryptographic random source, which is what makes the challenge active rather than a saved selfie.

Availability: Dashboard session

Parameters

This method takes no parameters.

Notes

  • Auth: session user. An API key cannot reach it.
  • The challenge expires in 15 minutes and is single use. A restart draws a fresh random order.
  • The steps run as look straight at the camera, then two prompts drawn in random order from turn your head left, turn your head right and lean in a little closer, with a return to center between them.
  • Requires a document already on file, because the neutral frame is matched against the document portrait at submit time.

verify_liveness_submit

Verify: submit live capture

Completes the challenge. Each movement is measured against the subject's own neutral frame rather than against a generic model, and liveness is granted only when the movements pass and the neutral frame of that same sequence matches the document portrait. The response is a per-step result list, so the user is told which movements landed and which did not.

Availability: Dashboard session

Parameters

Name Type Required Description
challenge_id string Yes The challenge id returned by verify_liveness_start.
frame_groups array No Captured frames grouped by challenge step.
frames array No Flat frame list. Legacy shape, kept for older clients.
front string No The front of the document, when it is being resubmitted alongside the capture.

Notes

  • Auth: session user. An API key cannot reach it.
  • At most 12 frames per submission across all steps.
  • The challenge is single use. A failure requires verify_liveness_start again, which reshuffles the order.
  • The whole capture has to finish inside the 15 minute document window opened by verify_document_submit.
  • Refused for accounts in Canada, China or Russia. That jurisdiction block is not subject to shadow mode.
  • Two failed captures route the case to a human reviewer, with a stated wait of up to 3 days, and one review ticket is opened.
  • Xuda states the limits of this check in its own product copy: a video of the subject re-cut into the requested order, and a live deepfake driven by the prompts, both still pass. The thresholds were calibrated on 2026-08-07 against one person on one webcam over five sequences.
  • Metering: liveness at $0.02 and face_match at $0.01, both billable.
  • On success a notification is sent saying the photo ID, the profile picture and the live capture were checked against each other and match.

verify_face_submit

Verify: submit face capture

Submits a single still photograph for a face match against the document portrait. It grants the face match claim and never grants liveness, because a still photo proves a resemblance and not a live person.

Availability: Dashboard session

Parameters

Name Type Required Description
selfie string Yes A single still photograph of the face.
front string No The front of the document, when it is being resubmitted alongside the selfie.

Notes

  • Auth: session user. An API key cannot reach it.
  • Never grants liveness under any circumstance. Use verify_liveness_start and verify_liveness_submit for that.
  • The component that drives it exists in the dashboard but is not wired into the level window, so the live capture is the shipped path today.
  • Metering: face_match at $0.01, billable.
  • Matched at the same cosine distance threshold of 0.637.

verify_payment_check

Verify: check payment method

Re-reads the Stripe signals that billing already produces and rescores the account: card fingerprint, funding type, issuing country, address and security-code check results, wallet use, verified tax IDs, Connect status, charge history and Radar verdicts. Nothing is charged and nothing is authorized. This is the "Check again" button on the Level 3 step.

Availability: Dashboard session

Parameters

This method takes no parameters.

Notes

  • Auth: session user. An API key cannot reach it.
  • Metering: stripe_signals at $0, not billable. Re-reading costs nothing, so it can be called as often as the user likes.
  • Payment history is flagged positive-only in the policy and clamped by the scorer, so an account with no charges is never penalized for it.
  • Card fingerprint is one of the identifiers the correlation graph joins on, in hashed form only.
  • Dispute and early fraud warning webhooks from Stripe feed back into the same subject as fraud ground truth, through a broker-only path that has no HTTP route.

verify_card_authorize

Verify: check the card with the bank

Places a small manual-capture authorization on the card to obtain a Radar verdict and a 3D Secure result for an account that has never been charged. Nothing is captured and the hold is released immediately. If the bank asks for a 3D Secure challenge, the browser answers it and verify_card_authorize_finish reads the outcome.

Availability: Dashboard session

Parameters

This method takes no parameters.

Notes

  • Auth: session user. An API key cannot reach it.
  • Rate limit: one verification hold per account per day. The attempt is counted before the call is made, so a failure still spends the day's budget.
  • The authorization defaults to 100 minor units, requests 3D Secure as automatic, carries the statement descriptor suffix VERIFY and is never captured.
  • A 3D Secure result is positive-only in the policy. A card that does not run 3D Secure is not penalized for it.

verify_card_authorize_finish

Verify: finish the card check

Reads the outcome of the verification hold after a 3D Secure challenge has been answered in the browser, and releases the hold. The result reports whether the card was declined, whether 3D Secure ran and whether the hold was released.

Availability: Dashboard session

Parameters

Name Type Required Description
payment_intent_id string Yes The payment intent created by verify_card_authorize.

Notes

  • Auth: session user. An API key cannot reach it.
  • The hold is released here, not captured. No money moves at any point in this flow.
  • Call this only after verify_card_authorize reported that the bank asked for a challenge. A check that finished on its own needs nothing further.

verify_tax_id_submit

Verify: submit tax ID

Adds a tax ID to the account for Stripe to validate: EU VAT against VIES and GB VAT against HMRC, returning the registered name. The result reports the status Stripe actually gave, which is often pending on the first read, rather than claiming a verdict Stripe has not reached.

Availability: Dashboard session

Parameters

Name Type Required Description
tax_id_type string Yes The tax ID type, as Stripe names it.
tax_id_value string Yes The tax ID number.

Notes

  • Auth: session user. An API key cannot reach it.
  • Business accounts. This is part of the Level 3 Financial step.
  • Validation is asynchronous on Stripe's side. A pending status is normal and resolves on a later read of the payment signals.
  • Metering: covered by stripe_signals at $0, not billable.

verify_org_submit

Verify: submit company document

Reads a company registration document with a vision model and cross-checks the registration number against the public register, including whether the account holder appears as a current officer. The same untrusted-data handling as the identity document applies: text inside the artifact is never an instruction, and instruction-like text is itself a scored fraud signal.

Availability: Dashboard session

Parameters

Name Type Required Description
front string Yes The front of the company registration document as an image.
back Not stated No The back of the document.
jurisdiction Not stated No The jurisdiction the company is registered in.
legal_name Not stated No The registered legal name to cross-check.
registration_number Not stated No The company registration number to cross-check.
officer_name Not stated No The officer name to look for on the register.

Notes

  • Auth: session user. An API key cannot reach it.
  • Image intake: at most 12 MB per image, JPEG, PNG, WebP, HEIC or HEIF only. The images are not stored.
  • Register coverage is one country today. The registry adapter table maps GB to UK Companies House and nothing else. Anywhere else answers unavailable, which by design never counts against the applicant.
  • A missing Companies House credential produces the same unavailable rather than a failure.
  • Metering: org_extract at $0.04 and registry_lookup at $0.25, both billable. Registry lookups are charged as used, on top of the plan, on every paid tier.
  • Implemented and registered, with no dashboard screen today.
  • Level 2 for a business is not reachable yet. It requires org_document, org_registry and logo_reference, and the logo reference pipeline is unbuilt.

verify_org_registry_check

Verify: business register cross-check

Re-runs the public register cross-check on its own, without resubmitting a document. Use it when the register was unreachable at submit time or when the details have since been corrected.

Availability: Dashboard session

Parameters

Name Type Required Description
registration_number string Yes The company registration number to look up.
jurisdiction Not stated No The jurisdiction the company is registered in.
legal_name Not stated No The registered legal name to cross-check.
officer_name Not stated No The officer name to look for on the register.

Notes

  • Auth: session user. An API key cannot reach it.
  • The response records the register name, the company status, whether the officer matched and the officer count.
  • Only GB has an adapter. Every other jurisdiction answers unavailable and is never penalized for it.
  • Metering: registry_lookup at $0.25, billable, charged as used on top of the plan.
  • Implemented and registered, with no dashboard screen today.

verify_web_check

Verify: web and social footprint

Runs a search agent over the public web and returns typed findings with citations: how corroborated the subject is, how many distinct sources, the earliest year of evidence, whether there is a professional presence, whether the stated company association is confirmed, and any adverse mentions. Findings are banded in code rather than by the model, and any attempt by a page to instruct the reader is recorded as a signal in its own right.

Availability: Dashboard session

Parameters

Name Type Required Description
company Not stated No The company to associate the subject with.
location Not stated No The subject's location.
role Not stated No The subject's stated role.

Notes

  • Auth: session user. An API key cannot reach it.
  • Positive only, by construction. A strong footprint raises the score and an absent one can never lower it, and the scorer clamps any policy edit that tried to make it negative.
  • Metering: web_search at $0.08, billable.
  • Implemented and registered, with no dashboard call site. The Level 4 window tells the user the level is assessed rather than uploaded, which is accurate, but it means nothing in the product triggers this check today.

verify_correlation_check

Verify: correlation graph

Links the account to other accounts by shared hashed identifiers and reports whether any of them are suspended or carry fraud reports. The identifiers joined are the card fingerprint, the document hash, the phone, the company registration and the network prefix reduced to a /24 or /48. Raw identifiers are never stored.

Availability: Dashboard session

Parameters

This method takes no parameters.

Notes

  • Auth: session user. An API key cannot reach it.
  • At most 25 linked accounts are inspected, with strong links ranked first so a crowded network prefix cannot push a shared card out of the window.
  • A shared network prefix on its own never withholds the claim. Two people on the same office connection are not treated as one.
  • Metering: correlation_graph at $0, not billable.
  • Implemented and registered, with no dashboard call site today.

verify_appeal_submit

Appeal Verification

Asks a person to review an automated result. It files a support ticket carrying the stated reason, and the case joins the same review queue that an automatic escalation would.

Availability: Dashboard session

Parameters

Name Type Required Description
reason string Yes Why the automated result should be reviewed. At least 10 characters.

Notes

  • Auth: session user. An API key cannot reach it.
  • The reason has a minimum length of 10 characters, so an empty appeal cannot be filed.
  • Stated wait for a human decision is up to 3 days.
  • Metering: human_review at $3.00, billable, when a person actually looks at the case.
  • A reviewer's decision is applied as an override that beats the scorer, for a year by default.
  • Implemented and registered, with no dashboard control today. The automatic escalation after two failures at the same step is the shipped route into the review queue.

verify_set_plan

Set Trust Center Plan

Switches the account's Trust Center tier and moves the line item for it on the consolidated subscription. This is the only place billing for the external verification service is ever attached. Moving back to Free still calls the payment side, so the line is repriced rather than left billing.

Availability: Dashboard session

Parameters

Name Type Required Description
plan_id string Yes trust_center_free, trust_center_starter, trust_center_growth or trust_center_scale.

Notes

  • Auth: session user. An API key cannot reach it.
  • A downgrade that would strand a live setting is refused with a message naming what to clear first, for example moving to a tier without webhooks while a webhook URL is configured.
  • A tier whose Stripe price has not been minted answers "The plan is not billable yet". In the repository copy of the platform configuration the four trust_center_* plans carry no price id, so paid tiers are not purchasable from that configuration. They are minted on the development configuration. Whether production has since been minted is not verifiable from the repository.
  • The chosen tier is what bounds verify_session_create and verify_session_result: the maximum level a session may ask for, the monthly allowance and its overage price, the per-minute API ceiling, webhooks, tenant pass marks, a custom verification domain and the history window.
  • Internal verification of the account's own identity is free and is never tiered. No verify_* method carries a membership plan gate or a credit cost.

verify_tenant_get

Verify: my verification service settings

Reads the account's verification service record: whether it is enabled, whether it is in sandbox, the webhook URL, the hosted verification domain, plus the current Trust Center tier, the flags that tier carries and the month's allowance and consumption.

Availability: Dashboard session

Parameters

This method takes no parameters.

Notes

  • Auth: session user. An API key cannot reach it.
  • The webhook signing secret is not returned here. It is shown exactly once, at creation or rotation.
  • The allowance figure it reports is the same one verify_session_create enforces.

verify_tenant_update

Verify: update verification service settings

Enables or disables the verification service, switches between sandbox and live, sets the webhook endpoint and the verification domain, rotates the signing secret and stores tenant pass marks. The service must be enabled here before verify_session_create will do anything.

Availability: Dashboard session

Parameters

Name Type Required Description
enabled boolean No Turn the verification service on or off for the account.
sandbox boolean No Run in sandbox instead of live.
webhook_url string No The https endpoint signed deliveries are posted to.
hosted_domain string No Your own hostname for the hosted verification page.
rotate_webhook_secret boolean No Mint a new signing secret, invalidating the old one.
policy_overrides object No Your own pass marks, merged over the platform policy.

Notes

  • Auth: session user. An API key cannot reach it.
  • Plan gate: webhook_url needs Starter or above, hosted_domain needs Grow or above, and policy_overrides needs Grow or above.
  • Setting a webhook for the first time, or rotating it, returns a signing secret of whsec_ plus 24 random bytes. It is shown exactly once and cannot be read back afterwards.
  • Rotating the secret invalidates the old one immediately, so any receiver still verifying with it starts rejecting deliveries.
  • Enabling the service without switching sandbox off is the recommended starting point. Sandbox is unlimited, free, never counted and completes the whole loop including the webhook.
  • policy_overrides accepts a min_score. The merge function that applies tenant pass marks has no call site today, because nothing scores an external session yet, so overrides are stored and not acted on.

verify_tenant_usage

Verify: my verification usage

Returns per-check usage and cost for the account's own verification traffic, broken down by check key, alongside the plan allowance. It reads the same meter the platform bills on, so what you see is what the service recorded.

Availability: Dashboard session

Parameters

Name Type Required Description
since_ts number No Only count checks recorded at or after this timestamp.

Notes

  • Auth: session user. An API key cannot reach it.
  • Scoped to the caller's own traffic. There is no way to read another tenant's usage from here.
  • Sandbox verifications are never counted and never charged, so they do not appear against the allowance.
  • The usage view also reads the webhook delivery log, so every delivery attempt is visible to the customer.

verify_session_simulate

Verify: simulate a sandbox result

Completes a sandbox session with a chosen outcome and fires the webhook for it, so the whole integration including signature verification can be built and tested before anything real is processed. It refuses a live session.

Availability: Dashboard session

Parameters

Name Type Required Description
session_id string Yes The sandbox session to complete.
outcome string No The outcome to simulate: approved, declined or review.

Notes

  • Auth: session user. An API key cannot reach it. Create the sandbox session with an API key if you like, then simulate its outcome from the dashboard.
  • Sandbox only. A live session is refused.
  • The result it writes carries simulated: true, so a simulated outcome is always distinguishable from a real one on verify_session_result.
  • The webhook it fires is a real signed delivery with the real signing secret, retried and logged like any other, and the payload carries sandbox: true.
  • Free and never counted against the allowance.

verify_hosted_state

Verify: hosted session state

Reports what a hosted verification link is asking for, read with the link token. This is what the hosted page calls when the person you sent the link to opens it.

Availability: Public endpoint

Parameters

Name Type Required Description
session_id string Yes The session the link refers to.
token string Yes The link token from the hosted URL query string.

Notes

  • Auth: none beyond the link token. There is no account session on the hosted page by design, because the person being verified is your user, not a Xuda user.
  • The hosted link is valid for 24 hours.
  • The public page is served at GET /verify/:session_id?t=<token>, from the tenant's own verification domain when the tier includes one and it is configured, otherwise from the Xuda host.
  • The page carries the honest footer that Xuda is not a government service and does not confirm a document with the authority that issued it.

verify_hosted_complete

Verify: complete a hosted session

Completes a hosted verification session and writes its result. Today it refuses any non-sandbox session with "Live verification is not open yet", so a live link is created and valid and the person reaching it cannot finish. Sandbox sessions complete instantly and fire the webhook.

Availability: Public endpoint

Parameters

Name Type Required Description
session_id string Yes The session to complete.
token string Yes The link token from the hosted URL query string.

Notes

  • Auth: none beyond the link token.
  • Live capture is not open. This is stated up front by verify_session_create, which reports capture_open: false on every live session, rather than being discovered at the end of the flow.
  • On completion the outcome is written to the session and the tenant's webhook fires as verification.approved, verification.declined or verification.review.
  • The link expires 24 hours after the session was created.

verify_review_apply

Verify: apply a human review decision

Uphold or overturn an automated result after a human has looked at the case. The decision is stored as a manual override that beats the scorer for a year by default, and the reason is mandatory because every human decision is kept as a training label.

Availability: Operator only

Parameters

Name Type Required Description
uid Not stated Yes The account the decision applies to.
decision Not stated Yes Approve or decline.
note Not stated Yes The reason for the decision.
level Not stated No The level to grant on an approval.
ticket_no Not stated No The review ticket this decision belongs to.
expires_ts Not stated No When the override should lapse. Defaults to one year out.

Notes

  • Registered with clearance: admin. Not part of the external API surface.
  • The note is mandatory. There is no way to record a decision without a stated reason.
  • Every decision is written as a review record carrying the reviewer, the ticket, the scorer's own level and score at the time and the policy version, so the automated result and the human result are always comparable.
  • Applying a decision deletes the held review images at that moment.
  • The person is notified either that verification is approved, with the level granted, or that it has been reviewed, with the reason and an invitation to try again or appeal.

verify_review_decide

Verify: record a review decision

Records an approve or a decline against an open review without acting on it. The reviewer works inside the tickets manager, and the decision is held until the ticket is closed, which is what commits it. Separating the two means a reviewer can change their mind before the ticket closes.

Availability: Operator only

Parameters

Name Type Required Description
uid_query Not stated Yes The account under review.
decision Not stated Yes Approve or decline.
note Not stated No The reviewer's note.
level Not stated No The level to grant on an approval.

Notes

  • Registered with clearance: user, and it re-checks superuser membership in code, returning -403 otherwise.
  • Recording is not applying. Nothing changes on the account until verify_review_commit runs.
  • The review ticket is deliberately worded neutrally, because the person under review reads it too.

verify_review_commit

Verify: commit a recorded review decision

Applies whatever decision was recorded for an account. This is what the tickets manager calls when the review ticket is closed, so closing the ticket is the act that commits the outcome.

Availability: Operator only

Parameters

Name Type Required Description
uid_query Not stated Yes The account under review.

Notes

  • Registered with clearance: user, and it re-checks superuser membership in code, returning -403 otherwise.
  • The held document images and capture frames are deleted at the moment the decision is committed.
  • The committed decision becomes a manual override that beats the scorer for a year by default.
  • The person is notified of the outcome, with the reason when it is a decline.

verify_review_media

Verify: review images

Returns the held document images and one capture frame per challenge step for an open review, so a reviewer can see what the automated check saw. This is the only path by which any verification image is ever read back, and it exists only because a human has to look at a case the engine could not settle.

Availability: Operator only

Parameters

Name Type Required Description
uid_query Not stated Yes The account under review.

Notes

  • Registered with clearance: user, and it re-checks superuser membership in code, returning -403 otherwise.
  • Review media is held for at most 7 days, and is deleted the moment a decision is committed.
  • The reader deletes anything past its expiry when it is asked for. There is no scheduled retention sweep, and the code says plainly that this is belt and braces for a purge job that has not been written.
  • Images outside an open review do not exist to be read. The ordinary path stores no image at all.

verify_admin_subject

Verify: inspect subject

Recomputes an account's verification subject and returns it in full, including the per-signal detail behind the score. This is the inspect-an-account panel on the platform supervisor screen.

Availability: Operator only

Parameters

Name Type Required Description
uid_query Not stated Yes The account to inspect.

Notes

  • Registered with clearance: admin. Not part of the external API surface.
  • It returns the signal detail, which the user-facing verify_get_status deliberately does not.
  • Recomputing is cheap for the free signals and can incur metered checks for the paid ones. Every check it runs is metered on the same code path as any other.
  • The supervisor screen is read-only by design.

verify_admin_reset

Verify: reset an account to the start of level 2

Clears an account's level 2 claims and its review state so the identity flow can be run again from the beginning. The stored document row is kept, so the duplicate hash and the audit trail survive the reset.

Availability: Operator only

Parameters

Name Type Required Description
uid_query Not stated Yes The account to reset.

Notes

  • Registered with clearance: user, and it re-checks superuser membership in code, returning -403 otherwise.
  • The document row is deliberately not deleted. A reset is a chance to try again, not a way to erase a document from the duplicate graph.
  • The audit log is append only and is never cleared by a reset.

verify_admin_shadow_report

Verify: shadow calibration report

Returns the score and level distribution across accounts, which is how the rollout is calibrated while shadow mode is on. It is the evidence base for deciding when enforcement can be switched on.

Availability: Operator only

Parameters

Name Type Required Description
limit number No How many accounts to include in the distribution.

Notes

  • Registered with clearance: admin. Not part of the external API surface.
  • Reads stored subjects. It does not re-run any check, so it costs nothing and meters nothing.
  • The first calibration run, over 60 development accounts, put 59 at level 0 and 1 at level 1, with scores clustered at 10 to 19 and a tail to 59, and the dominant reasons were no platform activity and an unconfirmed email.

verify_admin_usage

Verify: usage and cost rollup

Returns the per-check metering rollup across the platform, the same code path the external service bills on. Internal and tenant checks are metered identically, which is what makes unit economics visible before anything is priced.

Availability: Operator only

Parameters

Name Type Required Description
since_ts number No Only count checks recorded at or after this timestamp.

Notes

  • Registered with clearance: admin. Not part of the external API surface.
  • Every meter row carries a tenant id, which defaults to xuda for the platform's own internal checks, so internal and external cost can be told apart on one rollup.
  • The tenant-facing equivalent is verify_tenant_usage, scoped to a single account.

verify_admin_policy

Verify: live policy

Returns the policy that is actually live: the version, the shadow mode flag, the level definitions and their score floors, the signal table, the product gates, the blocked jurisdictions and the per-check price list. The policy is a versioned file rather than code, and it reloads on file modification time, so a threshold change takes effect on the next call with no restart.

Availability: Operator only

Parameters

This method takes no parameters.

Notes

  • Registered with clearance: admin. Not part of the external API surface.
  • Every stored decision records the policy version it was computed under, so an old result can always be explained against the rules that produced it.
  • The policy is currently at version 1.6.0 with shadow_mode: true.
  • Policy edits cannot make a positive-only signal negative. The scorer clamps web presence, payment history, 3D Secure, an unreadable barcode and an unreachable business register, so no future edit can turn a thin footprint, a charge-free account, a glared photo or an outage on the Xuda side into a penalty against an applicant.

Errors

Every method answers on the standard Xuda envelope, { code, data }. A code above zero is success. A code below zero is a refusal, with a readable sentence in data.

Code Meaning
-401 No session on a method that requires one.
-402 Tier refusal: the requested level is above the tier's ceiling, the session is older than the tier's history window, a tier feature is not included, or a paid tier has no Stripe price minted.
-403 Ownership or clearance refusal: the verification service is not enabled, the session belongs to another tenant, or the caller is not a superuser on an operator-only method.
-404 Unknown session, or a missing account document.
-429 The Free tier's monthly allowance is spent. The service stops until the month rolls over, because Free carries no overage price.

Refusals name what is in the way rather than failing silently. A level above the tier's ceiling names the tier that would carry it instead of quietly downgrading the session. A downgrade that would strand a live setting names what to clear first. A tier with no minted Stripe price answers that the plan is not billable yet.

Two refusals are not error codes but stated conditions you should code for:

  • Live capture is not open. verify_session_create reports capture_open: false on every live session, and verify_hosted_complete refuses any non-sandbox session with "Live verification is not open yet".
  • Blocked jurisdictions are real refusals today. Canada, China and Russia are refused at every gate from level 2 upward. That block is deliberately exempt from shadow mode, because calibrating a score is not permission to process biometric data somewhere Xuda is not cleared to operate.

Webhooks

A tenant on Starter or above may set an https webhook URL with verify_tenant_update. Deliveries POST a body of { event, sent_at, data } with the headers Xuda-Event and Xuda-Signature: t=<unix seconds>,v1=<hex hmac>, where the HMAC is SHA-256 over `${t}.${body}` keyed with the signing secret. Verify the signature over the raw body before you trust the payload.

The signing secret is whsec_ plus 24 random bytes, and it is shown exactly once, at creation or at rotation. Rotating it invalidates the old secret immediately.

Event When it fires
verification.approved A session completed with the outcome approved.
verification.declined A session completed with the outcome declined.
verification.review A session completed with the outcome review.

Payload data is { session_id, external_ref, sandbox, result }. external_ref is whatever you passed to verify_session_create, so you can match an outcome to your own record without storing ours. A failed delivery retries up to 5 times with exponential backoff capped at 60 seconds, and every attempt is written to a delivery log the account's usage view can read.

Sandbox sessions fire real signed webhooks with the real secret and sandbox: true in the payload, which is what makes the whole loop testable at no cost.

Plans, Allowances And Rate Limits

Verification of your own Xuda account is free and is never tiered by membership plan. No verify_* method carries a plan gate or a credit cost. The ladder below is what an account buys in order to run verification on its own users.

Tier Plan id Price / month Live verifications included Overage each Max level a session may ask for API rate Webhooks Own pass marks Own domain History
Free trust_center_free $0 10 none, the service stops until next month 1 (Contact) 10 / min no no no 30 days
Starter trust_center_starter $29 100 $0.35 2 (Identity) 60 / min yes no no 365 days
Grow trust_center_growth $99 500 $0.25 3 (Financial) 300 / min yes yes yes 1095 days
Scale trust_center_scale $299 2500 $0.15 4 (Established) 1000 / min yes yes yes 1825 days
  • Sandbox is free, unlimited and never counted.
  • Free stops at its allowance rather than metering, because it carries no overage price.
  • The per-minute ceiling is an in-process spend and stampede brake, not a security boundary. A tenant served by several module instances gets a multiple of the ceiling.
  • Business registry lookups are charged as used, on top of the plan, on every paid tier.
  • In the repository copy of the platform configuration the four trust_center_* plans carry no Stripe price id, so a paid tier is refused there as not billable yet. The development configuration has all four minted. Whether production has since been minted is not verifiable from the repository.

Per-Check Price List

Every check, internal or external, is metered on one code path against this list. It is what verify_tenant_usage and verify_admin_usage read.

Check key Label Price USD Billable
account_history Account history 0 no
device_network Device and network 0 no
stripe_signals Payment corroboration 0 no
domain_control Domain control 0 no
correlation_graph Correlation graph 0 no
session_create Verification session created 0 no
phone_lookup Phone line type lookup 0.01 yes
document_barcode Licence barcode decode 0.01 yes
face_match Face match 0.01 yes
liveness Liveness 0.02 yes
document_extract Document extraction 0.04 yes
org_extract Company document extraction 0.04 yes
phone_otp Phone OTP 0.05 yes
web_search Web and social 0.08 yes
registry_lookup Business registry lookup 0.25 yes
human_review Human review 3.00 yes

Other Limits, Lifetimes And Idempotency Rules

Limit Value
Image size 12 MB per image
Image types accepted image/jpeg, image/png, image/webp, image/heic, image/heif
Frames per live capture submission 12, across all steps
Live capture challenge Expires in 15 minutes, single use
Document window 15 minutes from reading the document to finishing the picture and live capture
Phone codes 5 an hour per account, 5 attempts per code, code valid 10 minutes
Card verification hold 1 per account per day, counted before the call so a failure still spends it
Document handoff token 32 random bytes, hash-only storage, 15 minute lifetime, 5 attempts, single use on success
Hosted session link Valid 24 hours
Correlation graph At most 25 linked accounts inspected, strong links ranked first
Webhook delivery Up to 5 attempts, exponential backoff capped at 60 seconds
Review media retention 7 days, or deleted the moment a decision is committed
Stated human review wait Up to 3 days
Face match threshold Cosine distance 0.637
Level score floors 10, 45, 60 and 75 for levels 1 to 4

Idempotency rules worth coding against:

  • A live capture challenge is single use. A failure needs a fresh verify_liveness_start, which reshuffles the movement order. Replaying a consumed challenge id is refused.
  • A handoff token is single use and is consumed on the first successful submission.
  • A phone code is single use and its stored hash and salt are nulled on success.
  • A session id is stable. verify_session_result can be polled as often as you like and is not metered.
  • A hosted link cannot be completed twice. The outcome is written once and the webhook fires once for it, with retries only on delivery failure.

A Note On The Rest Of The Surface

Beyond the 42 registered methods above, two exported functions are deliberately absent from the method catalog entirely, so no HTTP route reaches them and they are callable only module to module over the internal broker: the fraud-event recorder that the Stripe webhook handler calls on a dispute or an early fraud warning, and the gate check for another account that the product modules call when they create a gated resource. Keeping the second one broker-only is what stops a user aiming a gate check at somebody else's account.

The operator-only methods listed above exist for the human review queue and the platform supervisor screen. They are documented here so the surface is fully described, not because they are integrable. They are not part of the shipped external API and no account API key reaches them.