Concepts
The objects you work with in Verify, and how they relate.
Projects and environments
A project belongs to one app and holds its API keys, workflows and webhook destinations. Projects in one account share one prepaid balance. Each project runs in one of two environments:
- Sandbox: for building and testing. Sandbox checks use test data and are not billed.
- Live: for real users. When your prepaid balance covers a live check, its price is set aside from the balance before the check runs (see Billing).
Workflows
A workflow describes which checks a user goes through. You create it in the console and publish it. The API refers to it by its UUID. An unpublished or unknown workflow cannot start a session.
Sessions
A session is one verification of one person or company. It has a sessionId, a status, the workflowId it runs, and optional fields you set when you create it:
vendorData: your own reference for the user, up to 256 characters. Use an ID from your system, not personal data.metadata: a JSON object you can attach to the session.language: a two-letter language code for the hosted flow.callback: a valid URL the user is sent to after the flow. If you do not set one, Verify uses its own return page.
Sessions are either user (a person) or business (a company).
The hosted link
The url returned when you create a session is a Verify link of the form /v/<token>. It redirects to the hosted flow and is valid for 30 minutes. After that it answers 404, and you need to create a new session. The redirect is sent with no-referrer and no-store, so the link is not passed on in referrers or cached.
The link is on Verify's domain, but the hosted flow it redirects to runs on the processor's own address. Your user's browser may therefore show that address in the address bar, not verify.mudbase.dev.
Processor
Identity checks run on Didit, our identity verification processor. Prices include our markup.
Statuses
A session moves through these statuses:
| Status | What it means for you |
|---|---|
| Approved | Final. The checks passed. The charge for the session is kept. |
| Declined | Final. The checks did not pass. The charge for the session is kept. |
| Expired | The session ran out before it was finished. The charge is refunded. |
| Abandoned | The user left the flow without finishing. The charge is refunded. |
| In Review | A person must look at the session. Verify re-reads the decision when it reaches this status. |
| Kyc Expired | The verification itself has expired. Verify re-reads the decision when it reaches this status. |
| Not Started, In Progress, Awaiting User, Resubmitted | The session is still open. Its charge stays reserved until a final status arrives. |
Decisions
A decision is the full result of a session: its status and the results of each check that ran. Read it with the decision endpoint. Each call asks the verification service for the current result and updates the status Verify stores. See Decisions.
Webhooks
Webhooks tell your backend when a session or record changes, so you do not need to poll. Choose the events you want when you add a destination. See Webhooks.