Quickstart
This guide walks you through creating a verification session, completing the capture flow in sandbox, and retrieving the result.
Prerequisites
- A Verifa account (sign up)
- A sandbox API key (starts with
vk_sandbox_)
You can find your API keys in the Verifa dashboard under Developers > API Keys.
Step 1: Create a session
cURL
Python
JavaScript
Go
Ruby
PHP
Java
C#
Response:
Step 2: Complete the capture flow
Open the capture_url in your browser. In sandbox mode, the capture flow lets
you:
- Give consent
- Select a document type
- Upload any image as the ID document (sandbox skips real OCR)
- Upload any image as the selfie
- Choose a sandbox outcome (approve, reject, or needs review)
Step 3: Receive the webhook
If you have a webhook endpoint configured, you’ll receive a session.approved
event:
No webhook configured yet? Skip to step 4 — you can always poll.
Step 4: Retrieve the result
cURL
Python
JavaScript
Check the status field. Once it’s completed, fetch the full result:
cURL
Python
JavaScript
Step 5: Set up a webhook (recommended)
Webhooks are the best way to get notified when verifications complete. In the dashboard, go to Developers > Webhooks and add your endpoint URL.
You can also create webhooks via the API:
cURL
Python
JavaScript
The response includes a secret for HMAC signature verification. Store it
securely.
What’s next
You’ve created a session, completed verification, and retrieved the result. Here’s where to go from here:
- How Verifa Works — Understand the full architecture
- Webhooks — Set up real-time notifications with signature verification
- Workflows — Customize your verification pipeline
- Sessions — Explore the full session lifecycle and API
- Testing — Learn how to test with sandbox
Add a “Verify” button with verifa.js
Want a popup or modal instead of a full-page redirect? Use the verifa.js SDK. Your backend creates the session (keeping the API key secure), and the SDK handles the frontend capture experience.
See the full JavaScript SDK guide for framework examples, display modes, and error handling.