A simple API, a signed webhook.
Create a verification in one request, receive the result by webhook, read every check. Test mode is free and answers exactly like Live.
# Create a verification: you get back the link to send curl https://sylmera.com/api/verify/sessions.php \ -H "X-Sylmera-Key: syl_test_…" \ -H "Content-Type: application/json" \ -d '{ "client_reference": "user-42", "checks": ["document", "face", "aml"], "return_url": "https://your-company.example/done" }'
const r = await fetch('https://sylmera.com/api/verify/sessions.php', { method: 'POST', headers: { 'X-Sylmera-Key': process.env.SYLMERA_KEY, 'Content-Type': 'application/json' }, body: JSON.stringify({ client_reference: 'user-42', checks: ['document', 'face', 'aml'] }) }); const { session } = await r.json(); // Send session.url to your customer
$ch = curl_init('https://sylmera.com/api/verify/sessions.php'); curl_setopt_array($ch, [ CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => ['X-Sylmera-Key: ' . getenv('SYLMERA_KEY'), 'Content-Type: application/json'], CURLOPT_POSTFIELDS => json_encode(['client_reference' => 'user-42', 'checks' => ['document', 'face']]), ]); $session = json_decode(curl_exec($ch), true)['session'];
import os, requests r = requests.post( 'https://sylmera.com/api/verify/sessions.php', headers={'X-Sylmera-Key': os.environ['SYLMERA_KEY']}, json={'client_reference': 'user-42', 'checks': ['document', 'face', 'aml']}, timeout=15, ) session = r.json()['session'] # send session['url'] to your customer
{
"success": true,
"session": {
"id": "3f9c1b7a-2e4d-4c58-9a11-7e0d5b83c642",
"url": "https://sylmera.com/v/9c2f8a1d…",
"status": "created",
"environment": "sandbox",
"expires_at": "2026-11-25 11:04:22"
}
}Everything you need, nothing you do not
JSON over HTTPS at https://sylmera.com. No SDK to install and no version header to pin: one small script, only if you want the window in your page.
A hosted link
Your customer follows our page in your colours: nothing to build, nothing to install.
Webhooks
Signed, retried six times, and visible in the console with every delivery.
Test mode
The same screens and answers as Live, with the result you choose: nothing is checked, nothing is billed. Our test person needs no camera.
The PDF report
The same case, to attach, that anyone can check online with its QR code.
The verification, inside your page
Paste one script and the verification opens in a window over your page. Your customer never leaves your website.
- Only the websites you allow can open it: the browser blocks every other one
- A window on computers, the whole screen on phones, in 7 languages and your colours
- Your page hears when it finishes; your server decides on the signed webhook
- Try it in Test from your console, on your own computer too
<!-- Once, on the page --> <script src="https://sylmera.com/identity/embed-v1.js"></script> // When your customer taps « Verify my identity » const { url } = await fetch('/your-server/verification', { method: 'POST' }) .then(r => r.json()); SylmeraIdentity.open({ url, onComplete: (e) => showThanks(e.status), // approved, rejected or review onClose: (e) => {}, onError: (e) => console.warn(e.message) });
# Your server creates the verification, then gives session.url to your page curl https://sylmera.com/api/verify/sessions.php \ -H "X-Sylmera-Key: syl_live_…" \ -H "Content-Type: application/json" \ -d '{"client_reference": "user-42", "checks": ["document", "face"]}'
One endpoint, a few fields
Send your key in X-Sylmera-Key. Call it from your server, never from a browser.
| Field | Type | What it does |
|---|---|---|
client_reference | string | Your own id for this person, returned on every read and every webhook. |
checks | array | Any of document, face, address, aml, company. |
documents | array | passport, id_card, driving_licence, residence_permit, other. |
capture | string | camera, upload or both. The face check is always live. |
return_url | string | Where your customer goes once they finish. Must be https. |
expires_in_minutes | integer | From 15 to 43,200. Seven days by default. |
kind | string | person or business. |
questionnaire | string | The id of a published questionnaire; its version is kept with the link. |
Eight statuses, one to act on
Treat review as pending, not as a refusal: it is the status people forget.
createdLink made, not opened yet
openYour customer has opened it
submittedPhotos are in, the engine is working
approvedPassed: the one you act on
reviewA person on your team needs to look
rejectedFailed on something conclusive
expiredThe link ran out before it was used
cancelledStopped from the console
$corps = file_get_contents('php://input'); parse_str(strtr($_SERVER['HTTP_X_SYLMERA_SIGNATURE'] ?? '', ',', '&'), $p); $t = (int) ($p['t'] ?? 0); // a replayed message must not pass if (abs(time() - $t) > 300) { http_response_code(400); exit; } $ok = hash_equals(hash_hmac('sha256', $t . '.' . $corps, $secret), $p['v1'] ?? ''); http_response_code($ok ? 200 : 400);
const crypto = require('crypto'); function valid(rawBody, header, secret) { const p = Object.fromEntries(header.split(',').map(x => x.split('='))); const t = parseInt(p.t, 10); if (Math.abs(Date.now() / 1000 - t) > 300) return false; const want = crypto.createHmac('sha256', secret).update(t + '.' + rawBody).digest('hex'); return crypto.timingSafeEqual(Buffer.from(want), Buffer.from(p.v1)); }
import hashlib, hmac, time def valid(raw_body: bytes, header: str, secret: str) -> bool: p = dict(x.split('=', 1) for x in header.split(',')) t = int(p['t']) if abs(time.time() - t) > 300: return False want = hmac.new(secret.encode(), f'{t}.'.encode() + raw_body, hashlib.sha256).hexdigest() return hmac.compare_digest(want, p['v1'])
Know the moment a verification finishes.
Two events today: verification.submitted and verification.completed. Answer 2xx quickly; anything else is retried with widening gaps, then stays visible in your console.
- Headers X-Sylmera-Event, X-Sylmera-Delivery and X-Sylmera-Signature
- The same event can arrive twice: store its id and ignore one you already handled
- No server yet? Point Test mode at our hosted test receiver and see each delivery
Errors you can branch on
Every failure has the same shape: success false, a stable error code and a message for a human.
| Error | HTTP | What to do |
|---|---|---|
UNAUTHORIZED | 401 | The key is missing, revoked or wrong. |
INSUFFICIENT_CREDIT | 402 | Out of credit, or past the limit you set beyond your plan. |
NOT_FOUND | 404 | No session with that id belongs to you. |
VALIDATION_ERROR | 422 | A field is wrong; the message says which. |
RATE_LIMITED | 429 | 120 requests a minute per key: take a webhook rather than polling. |
Create your test key in a minute.
Sign up, open API keys in the console and run your first verification in Test mode. Nothing is billed until you go live.