Skip to navigation

Create a verification

Submits an identity for verification and returns at once. The checks run asynchronously: receive the outcome by webhook, or poll the status endpoint.

A 202 means a new verification was created. A 200 with the same body shape means metadata.requestId matched an earlier submission and that verification is returned instead; nothing new is created or charged.

An accepted submission can still end declined or in error later (an ID not found, a face mismatch, insufficient credit). Those outcomes arrive on the status endpoint and webhooks with a reason and reasonCode, never as an HTTP error here.

Send the business block for a business verification, or idChecks for a workflow that verifies several IDs. idChecks requires a published workflow. A business verification runs through a published KYB workflow, or without one once Toden has turned that on for your organisation: then it runs the registry lookup named in business.product (the standard one when none is named) in country, or the business configuration the session was started with. A hosted verification session token is also accepted in place of an API key.

Error codes

errorStatusMeaning
Invalid request body400The body failed validation. details lists each problem.
invalid_sandbox_outcome400metadata.sandboxOutcome is not a known test outcome.
invalid_id_number400An ID number is not in the format of its ID type (a NIN or BVN is 11 digits, for example). message says what is wrong and field names it (idNumber, or idChecks[n].idNumber). Spaces, dashes and lower-case letters are cleaned up rather than refused.
invalid_media400An uploaded file is unknown, expired or already used. mediaKey names it when known. For a photo or recording of one of several IDs, mediaKey is multiId<n>Front or multiId<n>Back (with Video for the recording), idCheckIndex is the ID’s 0-based position in idChecks and side is front or back.
invalid_bank_account400bankAccount is malformed (for example an account number that is not ten digits in Nigeria). message says what is wrong.
country_mismatch400The country is not offered by the business or scoped workflow.
country_not_supported400The country is not accepted by the address workflow.
product_unsupported400The business product is not offered by the workflow for that country.
Forbidden403The requestId belongs to another organisation or environment.
mobile_device_required403The workflow only runs on a mobile device.
business_verifications_disabled403Business verification is switched off for the organisation on this channel: through a workflow when the submission runs one, without a workflow otherwise. Business verification without a workflow is off until Toden turns it on for the organisation. Nothing is created or charged.
identity_verifications_disabled403Identity verification for a person is switched off for the organisation on this channel: through a workflow when the submission runs one, without a workflow otherwise. Nothing is created or charged. The applicant and key people of a business application are only refused while all verifications are switched off.
verifications_disabled403Every verification is switched off for the organisation, and this request has no switch of its own (the applicant or a key person of a business application). Nothing is created or charged. While every verification is off, the other requests answer with identity_verifications_disabled or business_verifications_disabled.
workflow_not_found404A business or scoped submission named a workflow that is not published, or a scoped submission named none.
request_id_conflict409The requestId was already used for a different verification.
session_cancelled409The session named in sessionId has been cancelled.
session_declined409The workflow declined the session named in sessionId before it was submitted. The body carries reasonCode: contact_attempts_exceeded or liveness_attempts_exceeded.
session_unavailable409The session has closed and its workflow refuses late submissions.
applicant_session_required409An applicant identity submission must resume its business application.
verification_in_progress409A resubmission for this verification is still being checked.
resubmission_superseded409The verification has already been resubmitted.
resubmission_withdrawn409The resubmission link is no longer in use.
handoff_session_used409The hosted session has already been submitted.
already_verified409The workflow refuses repeats (session.repeatVerification: block, the default in Live) and this externalUserId already has an approved verification on it. verificationId and status name it. Nothing is charged. A reviewer’s redo, a business applicant finishing their application and a hosted session are never refused here.
verification_pending409The workflow refuses repeats and this externalUserId already has a verification on it that is still being checked. verificationId and status name it.
only_test_ids_allowed422A sandbox key was used with a number that is not a published test ID.
workflow_subject_mismatch422The submission kind does not match the workflow, or a business submission names a session started for a person.
business_config_invalid422A business submission without a workflow runs from the business configuration its session was started with, or the standard registry lookup when there is no session. That configuration is checked as a workflow is when it is published, and this one cannot run. issues lists each problem.
entity_type_mismatch422A scoped submission names a record of the other type: a business workflow naming the record of a person, or the reverse.
questionnaire_invalid422Questionnaire answers failed validation. issues lists them.
contact_verification_required422A required email or phone proof is missing. missing lists which.
missing_supporting_documents422A required supporting document is missing. missing lists which.
address_collection_required422The workflow requires an address pin.
proof_of_address_required422The address workflow requires a proof-of-address document.
missing_address_fields422Required address fields are missing. missing lists which.
address_book_reuse_invalid422The saved-address grant is spent, expired or does not belong to the applicant. Enter the address instead.
invalid_id_checks422idChecks does not fit the workflow multiple-ID plan.
multi_id_required422The workflow verifies several IDs in the submitted country and idChecks was not sent.
registration_name_required422The business workflow requires the registered name.
missing_documents422A required company document is missing.
missing_company_info422Required company details are missing.
key_people_required422Too few key people were declared.
key_person_email_required422A key person who must be invited has no email address.
key_person_ownership_required422A shareholder or beneficial owner was declared without an ownership percentage.
user_reference_required422A biometric submission did not name its subject.
selfie_required422The workflow requires a selfie and the submission carried none. A submission with no workflow is never refused for this.
liveness_required422The workflow runs a liveness check and the submission carried neither a claim nor a recording.
document_required422The workflow requires a photo of the document and the submission carried none.
bank_account_required422The workflow’s bank account step is required and the submission carried no bankAccount.
bank_account_country_mismatch422bankAccount.country is not one of the countries the workflow’s bank account step offers.
bank_account_id_number_required422A South African account for a person needs bankAccount.idNumber, unless the verified ID is a South African national ID.
bank_account_registration_number_required422A South African account for a business needs bankAccount.registrationNumber, unless the business is registered in South Africa.
unknown_bank422bankAccount.bankCode is not on the country’s list of banks (GET /api/v1/bank-account/banks).
reenrolment_session_required409The subject is already enrolled: enrolling again needs a session minted by your server.
key_person_session_required409A key person reference can only be submitted from that person’s own invite.
questionnaire_required422A questionnaire submission carried no answers.
not_enrolled422The subject has no biometric enrolment to authenticate against.
rate_limited429The hourly verification limit for the organisation was reached.
sandbox_daily_limit_reached429Sandbox and Development only: the organisation is not yet verified (KYB) and used its daily allowance of verifications. Verify your business to raise it.
pricing_not_configured500No price is configured for this check. Contact support.
pricing_unavailable503The workflow price could not be worked out just now. Nothing was charged; retry with the same requestId.
banks_unavailable503The list of banks could not be read, so the bank account could not be checked. Nothing was charged; retry in a few minutes.
Missing or invalid Authorization header401No bearer credential was sent.
Invalid API key401The key is unknown or revoked.
environment_mismatch403The key belongs to an environment this host does not serve.
origin_not_allowed403The request origin is not on the publishable key allowlist.
ip_not_allowed403The caller address is not on the secret key allowlist.
organization_suspended403The organisation is suspended.
business_not_approved403A production key was used before the business was approved.

Accepts a publishable (pk_) or secret (sk_) key.

Authentication

AuthorizationBearer

Send the API key as a Bearer token. Each operation states whether a publishable key is enough or a secret key is required. A scoped publishable key has Verification flow access, the fixed set flow.run, flow.config.read and verifications.status.read; a scoped secret key reaches what its scopes allow.

Request

This endpoint expects an object.
countrystringRequired=2 characters

ISO 3166 alpha-2 country code of the ID.

idTypestringRequired>=1 character

The ID type, for example bvn or passport. For a business submission, send the lookup product here.

metadataobjectRequired
Request metadata. Any key other than those listed is stored as your own customer metadata and echoed on responses and webhooks.
idNumberstringOptional

The ID number. Required for number-based ID types and omitted for document-only flows. It is cleaned before it is checked: spaces, dashes and dots are removed and letters upper-cased (a Ghana Card number is sent as GHA-123456789-0). A number in the wrong format for its ID type is refused with invalid_id_number.

userDataobjectOptional
Applicant details to compare with the record.
mediaIdsobjectOptional
References to files uploaded with the upload endpoint.
idCheckslist of objectsOptional
Two or three ID checks for a workflow that verifies several IDs in one run in the submitted country. The first entry is the primary. Ignored in a country where the workflow verifies one ID.
businessobjectOptional
Present for a business verification. Requires a published business workflow.
workflowIdstringOptional<=64 characters
The published workflow that configured this submission. Ignored when unknown, except for business and scoped submissions, which require it.
sessionIdstringOptional<=64 characters
The session this submission belongs to. The verification takes the same identifier.
externalUserIdstringOptional1-190 characters
Your own stable reference for the person or business being verified.
livenessModeenumOptional
The liveness method the client ran. A workflow setting takes precedence.
Allowed values:
proofOfAddressTypeenumOptional

What kind of document mediaIds.proofOfAddress is. Optional: when it is left out, the kind the document is recognised as is used.

Allowed values:
proofOfAddressCountrystringOptional=2 characters

The country (ISO 3166-1 alpha-2) the person says mediaIds.proofOfAddress is for, when it is not the country of their ID. The document is judged against it. Defaults to country.

nfcobjectOptional
Data read from the chip of an electronic passport or identity card. Dropped without error when the document has no verifiable chip or the workflow does not run the chip step.
addressobjectOptional
The applicant address pin collected on the address step. Dropped without error when the workflow does not collect an address.
supportingDocumentslist of objectsOptional
Supporting documents the workflow asks the applicant to provide. Documents the workflow did not ask for are dropped.
addressBookReuseobjectOptional

A saved address the applicant chose from their Toden address book instead of entering one. The SDK sets this. The address reaches you only once the verification passes and the verified person is confirmed as the address book’s owner; when that cannot be confirmed, an address check fails with address_book_not_owner. A grant that is spent, expired or not the applicant’s is refused with 422 address_book_reuse_invalid.

contactobjectOptional
Proofs that the applicant confirmed their contact details.
bankAccountobjectOptional

The account the applicant named in the workflow’s bank account step. The SDK sets this. It must be in a country the workflow offers, which the applicant picks on the step (422 bank_account_country_mismatch), and is priced at that country’s rate, with a bank from GET /api/v1/bank-account/banks (422 unknown_bank). A workflow whose bank step is required refuses a submission without one (422 bank_account_required). Dropped when the workflow has no bank step or bank account verification is off for your organisation. The result reports it as bankAccount.

questionnairemap from strings to strings or doubles or booleans or lists of stringsOptional
Answers to the workflow questionnaire, keyed by question key.
userIdstringOptional1-190 charactersDeprecated

Legacy alias of externalUserId.

Response

An earlier submission with the same requestId was returned.

verificationIdstring
The verification identifier.
statusstring

processing for a new submission. On a repeated requestId this is the existing verification check result: pending, verified, failed, not_found or error.

externalUserIdstring or null
Your reference for the subject, as stored.
metadatamap from strings to any or null

Your customer metadata, as stored. Bounded: at most 16 KiB, four levels deep and 100 keys.

presenceTokenstringOptional
Only when the submission captured an address. The SDK sends this with presence reports, which is how they are known to come from the device that captured the address.
applicantKeyPersonIdstring or nullOptional

Business submissions only. The reference to send as userId on the applicant identity submission that follows, or null when the workflow does not verify the applicant.

keyPeopleInviteslist of objectsOptional
Business submissions only. Verification links for the key people the applicant listed.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error