Quickstart
Verify your first user in 10 minutes
Four steps, all against the sandbox. Nothing here touches real identity data.
Step 1
Get a sandbox key
Create an account and open API keys. Sandbox keys start with sk_test_. Keep them on your server. Then add the address your users come back to under Integration: we only send people back to addresses on that list.
Step 2
Create a session and send your user
Your backend creates a verification. The response carries a verify_url: redirect the user there. On desktop they scan a QR code and finish on their phone.
curl -X POST https://softeolabs.com/v1/verifications \
-H "Authorization: Bearer sk_test_..." \
-H "Content-Type: application/json" \
-d '{"return_url":"https://yourapp.com/kyc/done","ref":"user_123","state":"a1b2c3"}'
ref is your own id for the user and state comes back on return (use it against CSRF). Both must be opaque ids: an email address or phone number is refused.
Step 3
Verify the token on return
The user comes back to your return_url with verification_id, result, your state and, when they passed, a signed token. Check the signature against our public keys and that the audience is your client id (on the Integration page; sandbox and live have different ids).
import { createRemoteJWKSet, jwtVerify } from 'jose';
const jwks = createRemoteJWKSet(new URL('https://softeolabs.com/.well-known/jwks.json'));
const { payload } = await jwtVerify(token, jwks, {
issuer: 'https://softeolabs.com',
audience: process.env.SOFTEO_CLIENT_ID,
});
// payload.kyc_verified === true, payload.age_over === 18
| Claim | Meaning |
|---|---|
| kyc_verified | The user passed identity verification. Only passed checks get a token. |
| age_over | The minimum age the user is over, for example 18. No date of birth is shared. |
| sub | The verification id. |
| aud | Your client id. A sandbox token never carries your live id. |
| ref | The reference you sent when you created the session. |
| iat, exp | Issued at and expiry. A token is short-lived: check it when the user returns. |
Step 4
Keep your own evidence
Softeo does not store documents, selfies or identity data; they only pass through memory. For a passed check, the identity provider keeps the record for your record keeping. Fetch it, with the person's identity, from the evidence endpoint; we recommend keeping it on your side for your AML records. Find a user's checks by your own ref. In the dashboard you can also open a passed check's identity details and photos: they are fetched from the provider on request, while it still holds them, and Softeo does not store them.
curl https://softeolabs.com/v1/verifications/VERIFICATION_ID/evidence \ -H "Authorization: Bearer sk_test_..." curl "https://softeolabs.com/v1/verifications?ref=user_123" \ -H "Authorization: Bearer sk_test_..."
Our own verification records are deleted after 90 days.
How it works
The user consents, picks the document's country and type, and takes the document and a selfie on our screens with live quality checks. The photos go to the first identity provider. The result comes back to you as a redirect with a signed token, and by API.
How failures behave
If a capture cannot be read, the user is asked for new photos, a few times at most. A real rejection is final. There are no webhooks: the user's return and the API are the source of truth.
Sandbox vs live
A sandbox key runs the whole flow against a test provider: no real check is made, nothing is billed and its data is kept apart from live. Pick the result with your ref. Live keys open after we review your company and use case.
| ref starts with | What happens |
|---|---|
| test_reject | Rejected: result not_verified, final at once. |
| test_fail | The photos come back unreadable; the user is asked for new ones until the attempts run out. Counted as failed to complete. |
| test_provider_down | No provider answers; the check stays open until it expires. Counted as failed to complete. |
| anything else | Accepted, with a signed token. |
API reference
Every call takes your key as Authorization: Bearer sk_.... JSON in, JSON out.
| Call | What it does |
|---|---|
| POST /v1/verifications | Creates a verification; returns its id, status and verify_url. |
| GET /v1/verifications/:id | Status (created, pending, completed, expired), result and, for a pass, a fresh token. |
| GET /v1/verifications?ref= | A user's verifications by your ref, newest first. |
| GET /v1/verifications/:id/evidence | A passed check's record from the provider: identity, decision and files. |
| GET /v1/stats | Your funnel: counts only. |
| GET /.well-known/jwks.json | Our public signing keys. No key needed. |
Errors
| Status | error | Meaning |
|---|---|---|
| 400 | invalid_request | A field is missing or wrong; issues says which. |
| 401 | invalid_api_key | The key is unknown or revoked. |
| 403 | account_suspended | Your account is paused. Contact us. |
| 404 | not_found | No such verification for this key. |
| 409 | not_available | No evidence: the check did not pass. |
| 410 | gone | The provider no longer keeps this record. |
| 429 | daily_limit_reached | Your key opened its daily number of checks. |
| 429 | capacity_reached | New live checks are paused for today. |
| 503 | live_paused | New live checks are paused. Try again later. |
Daily limits
A sandbox key opens up to 50 checks a day. A live key starts at 20 a day, raised with us as you grow. Checks already opened always finish. Limits reset at 00:00 UTC.