1. Get a sandbox key
In the dashboard switch on Sandbox mode and open Manage → API keys. Create a key: sandbox keys start with vf_test_, live keys with vf_live_.
The key is shown once, when it is created. Save it in your server's settings, for example in a VERIFFY_API_KEY variable.
The key lives on the server only
Never put the key in website code, a mobile app, or a config the client can download. Whoever has the key can create verifications and read their results.
2. Create a verification
curl https://api.veriffy.me/v1/sessions \
-H "Authorization: Bearer $VERIFFY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: kyc-user-42-first" \
-d '{"applicant": {"external_user_id": "user-42"}, "level": "kyc-basic", "locale": "en"}'
const res = await fetch('https://api.veriffy.me/v1/sessions', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.VERIFFY_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': 'kyc-user-42-first',
},
body: JSON.stringify({
applicant: { external_user_id: 'user-42' },
level: 'kyc-basic',
locale: 'en',
}),
});
const session = await res.json();
import os, requests
res = requests.post(
"https://api.veriffy.me/v1/sessions",
headers={
"Authorization": f"Bearer {os.environ['VERIFFY_API_KEY']}",
"Idempotency-Key": "kyc-user-42-first",
},
json={
"applicant": {"external_user_id": "user-42"},
"level": "kyc-basic",
"locale": "en",
},
)
session = res.json()
external_user_id is the user's identifier in your system. VERIFFY uses it to recognise the person in later verifications, and it comes back in webhooks.
The response:
{
"id": "6f1d0c9e-4a55-4d0e-9a57-0f3b2c1d7e10",
"status": "created",
"level": "kyc-basic",
"external_user_id": "user-42",
"url": "https://api.veriffy.me/flow/…",
"client_token": "…",
"expires_at": "2026-12-13T10:00:00+00:00"
}Store id next to your user. Give the client only the url.
3. Complete the verification
Open the url on a phone: the page asks for camera access and walks you through the steps. On a computer it shows a QR code to continue on a phone.
When you embed the verification in your product, use an SDK instead of the link: it opens the same page inside your site or app.
4. Get the decision
Until a webhook is set up, ask for the result with a request:
curl "https://api.veriffy.me/v1/sessions/6f1d0c9e-4a55-4d0e-9a57-0f3b2c1d7e10?include=checks" \
-H "Authorization: Bearer $VERIFFY_API_KEY"The status field shows how the verification ended: approved, declined, resubmission_requested or review. What each status means is in Statuses and decisions.
In sandbox mode you can also set the decision without going through the steps:
curl https://api.veriffy.me/v1/sessions/6f1d0c9e-4a55-4d0e-9a57-0f3b2c1d7e10/simulate \
-H "Authorization: Bearer $VERIFFY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"decision": "approved"}'What next
- Set up webhooks so the decision arrives by itself.
- Embed the verification in your product: the WebSDK or the mobile SDKs.
- Adjust the steps and rules in a workflow.