The Sylmera Identity API
You create a link. Your customer opens it and photographs their document. You read the decision, or we push it to you. That is the whole surface.
Everything is JSON over HTTPS. There is no SDK, nothing to install and no
version header to pin. The base address is
https://sylmera.com.
Your first verification
Create an account in the console, generate a sandbox key, and run this. It works before anyone has approved your account.
curl https://sylmera.com/api/verify/sessions.php \ -H "X-Sylmera-Key: syl_test_votre_cle" \ -H "Content-Type: application/json" \ -d '{ "client_reference": "user-42", "checks": ["document", "face"], "return_url": "https://your-company.example/done" }'
<?php $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: syl_test_votre_cle', 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'client_reference' => 'user-42', 'checks' => ['document', 'face'], 'return_url' => 'https://your-company.example/done', ]), ]); $reponse = json_decode(curl_exec($ch), true); curl_close($ch); // Envoyez cette adresse a votre client echo $reponse['session']['url'];
const r = await fetch('https://sylmera.com/api/verify/sessions.php', { method: 'POST', headers: { 'X-Sylmera-Key': 'syl_test_votre_cle', 'Content-Type': 'application/json' }, body: JSON.stringify({ client_reference: 'user-42', checks: ['document', 'face'], return_url: 'https://your-company.example/done' }) }); const { session } = await r.json(); // Send session.url to your customer
import requests r = requests.post( 'https://sylmera.com/api/verify/sessions.php', headers={'X-Sylmera-Key': 'syl_test_votre_cle'}, json={ 'client_reference': 'user-42', 'checks': ['document', 'face'], 'return_url': 'https://your-company.example/done', }, timeout=15, ) session = r.json()['session'] # Send session['url'] to your customer
You get back the link. Send it by email, by SMS, or open it in a window.
{
"success": true,
"session": {
"id": "3f9c1b7a-2e4d-4c58-9a11-7e0d5b83c642",
"url": "https://sylmera.com/v/9c2f8a1d…",
"kind": "person",
"checks": ["document", "face"],
"environment": "sandbox",
"status": "created",
"client_reference": "user-42",
"created_at": "2026-09-15 11:04:22",
"expires_at": "2026-09-22 11:04:22"
}
}
Call this from your server, never from a browser. The key must not travel inside a page — anyone who reads it can create verifications that you pay for.
API keys
Send the key in X-Sylmera-Key, or as
Authorization: Bearer … if that suits your HTTP client
better. Both are read.
| Prefix | Environment | What it does |
|---|---|---|
syl_test_ | sandbox | Works as soon as you create it. Nothing is charged and nothing is checked: each result is simulated. |
syl_live_ | live | Works once your account is approved and has credit. Real decisions, real charges. |
A key is shown once, when it is created. We store only its SHA-256 fingerprint, so we cannot show it to you again and neither can anyone who steals our database. Lose it and you create another; revoking is instant.
Sandbox
Test mode never checks anything: the result of every test verification is simulated, as in the Sumsub sandbox or Stripe test mode. Nothing reads the photos, the face, the lists or the register, and nothing is billed. Everything else is the same as live: the same screens, the same statuses, the same reason codes, the same webhook.
You choose the result when you create the link, with
test_result and test_reason, or later with a
simulate call or « Simulate a result » in the console. Without a choice, a
test link is approved. The details returned are those of our test person,
ALEX SPECIMEN, born on 12 June 1990.
A test link shows a « Test » banner and a Use the test person button: a SPECIMEN document is sent for the person, without a camera. You can also go through the real screens: the photos are kept, never checked. Without an account, try it on our public demo.
test_result | What happens | test_reason |
|---|---|---|
approved | The default. Status approved. | — |
rejected | Status rejected, final. |
document_perime (default), document_retouche, photo_ecran, visage_different (face check),
mineur, document_non_accepte |
review | Status review: decide it in your console, as in live. |
document_incertain (default), visage_incertain (face check), vivant_douteux (face check),
dates_incoherentes, croise_numero_autre_nom, liste_sanctions (sanctions check) |
retake | The person is asked to take the photo of the document again, with its tip; then
approved. Person checks only, chosen when the link is created. |
glare (default), photo_blurry |
The reason codes are those of the live engine, with the same visibility:
document_retouche, photo_ecran, vivant_douteux, dates_incoherentes,
croise_numero_autre_nom and liste_sanctions are fraud
findings, never listed in reasons, as in live. A company
check takes approved, rejected or
review, without a reason. Code your integration once: it
works in live.
Simulate a result
/api/verify/sessions.php?id=<id>&action=simulate
With a test key only. Changes the result of a test verification at any
time, and sends verification.completed with
"review": {"decided_by": "simulation"}. Send
result (approved, rejected or
review) and, if you want, reason from the table
above.
curl -X POST "https://sylmera.com/api/verify/sessions.php?id=3f9c1b7a-…&action=simulate" \
-H "X-Sylmera-Key: syl_test_…" -H "Content-Type: application/json" \
-d '{"result": "rejected", "reason": "document_perime"}'
Every read and every webhook of a test verification also returns
"test": {"simulated": true, "result": "rejected", "reason": "document_perime", "chosen_by": "link", "test_person": false, "applied": {…}}.
A live key gets 403 LIVE_KEY: live verifications are always
checked for real. A PDF report of a test verification says
« TEST · SIMULATED RESULT » on every page, and so does its public page.
Create a session
/api/verify/sessions.php| Field | Type | Meaning |
|---|---|---|
client_reference | string | Your own identifier for this person — a user id, an order number. Up to 120 characters. It comes back on every read and in every webhook. Optional but strongly advised. |
checks | array | Any of document, face,
address, aml,
company. Defaults to
["document","face"]. A person check always
includes document: the face is compared with its photo. |
documents | array | The documents the person may use: passport,
id_card, driving_licence,
residence_permit, other. Defaults to
the first three. If the machine-readable zone shows another
type or country than the one the person chose, the session
reports what the document says; a type you do not accept is
rejected. |
capture | string | camera (guided camera, default),
upload (a photo or scan) or both.
The face check is always live. |
return_url | string | Where to send your customer once they finish. Must be
https. Optional. |
person_email | string | The person's email. If a step must be redone after they leave the page, we email them their link, and remind them the next day. Never shown on the page, never returned, erased with the verification. Optional. |
person_first_name, person_last_name | string | The name this person gave when they signed up with you (or person_name for the full name). We compare it with
the name on their document, even read in another order or with a middle name. Another name sends the verification to your
team (your rule « name_mismatch » can refuse or ignore it). Never shown on the page, erased with the verification. Optional. |
person_date_of_birth | string | The date of birth in your records, YYYY-MM-DD. Compared with the document. The response and the webhooks then say
"provided_match": {"name": "match", "date_of_birth": "match"}, with partial, different or
not_compared when it is the case. Optional. |
send_link | boolean | With person_email: we also email them the link now, from [email protected], with your name.
The response then says "link_emailed": true. Optional. |
expires_in_minutes | integer | How long the link stays usable. Between 15 and 43200. Defaults to 10080, which is seven days. |
kind | string | person (default) or business. A
business check guides the company step by step and reads the
official register in the United Kingdom, France, Ireland, Norway,
Czechia, Latvia, Poland, Finland, Singapore and Croatia; anywhere else the
company types its details and sends its official extract, and we
look it up in the global LEI index. |
people | object | Business checks only: who confirms their identity, each with
their own link (without it, nobody is asked).
directors: all
(default) or applicant;
owners_from: 25 (default) or
10. Each identity check is a person check of its
own, with the same reference, billed when it completes. |
company | object | Business checks only. country: the two-letter
code of the register; number: the company number
or name we search for them; send_link_to: an
email address we send the link to, from
[email protected]; standard_questions,
sanctions_lists, documents:
true by default; own_questions:
up to six questions of your own, each
{"text": "…", "choices": ["…", "…"]} (no choices
for a written answer), asked after the standard ones. |
questionnaire | string | The id of one of your published questionnaires (console, Questionnaires), made for this kind of check: individuals or companies. Its questions are asked one per screen, before the photos (after the standard questions for a company). The link keeps the version published when it is created. Optional. |
template | string | The API name of one of your verification templates (console,
Verification templates), such as standard,
finance_strict or business. Its
checks, documents, capture and questionnaire (for a company:
who confirms their identity, the questions, the lists and the
documents) become the defaults of the link; any field you send
overrides them. The link keeps the template's decision rules as
they are at creation. Optional: without it, the link uses the
fields you send and the rules of your default template for
individuals. |
test_result | string | Test keys only: the result this test link will simulate —
approved (default), rejected,
review or retake. Ignored with a live
key. See Sandbox. |
test_reason | string | Test keys only: the reason code that goes with it, such as
document_perime. Optional. |
locale | string | Language hint for the hosted page, such as en.
Optional. |
Responds 201 with the session, link included.
Read a session
/api/verify/sessions.php?id=<id>{
"success": true,
"session": {
"id": "3f9c1b7a-…",
"status": "approved",
"decision": "approved",
"client_reference": "user-42",
"completed_at": "2026-09-15 11:06:02",
"person": {
"name": "ANGELA ZOE SPECIMEN",
"date_of_birth": "1981-06-16",
"document_country": "GB"
}
}
}
The person block appears only on an approved session. On a
rejected or held session you get reasons instead — the
reasons a customer is allowed to read. Scores, fraud signals and the
photographs never leave through this endpoint; they live in your portal
and in our audit log.
List sessions
/api/verify/sessions.php
The 25 most recent, newest first, plus this month's usage. Narrow it with
status, client_reference,
environment or limit. This is for a dashboard,
not for polling — use a webhook for that.
Questionnaire answers
A session created with a questionnaire returns, on every read
and in every webhook, a questionnaire object:
id, version, name,
status (pending, in_progress,
answered), score, outcome
(pass, review, reject, from your
thresholds), thresholds, language,
answered_at and answers. Each answer gives
question (its API name), label,
type, value (a choice value, a list for
checkboxes, a two-letter country code, a number,
{"amount": 2500, "currency": "GBP"}, a date
YYYY-MM-DD, true/false for yes or
no, or a file {"id", "name", "mime", "bytes"}),
display (the same, written out) and its
score. A question hidden by a condition is not listed. The
person verified never sees a score.
Statuses and decisions
| Status | What it means |
|---|---|
created | Link made, not opened yet. |
open | Your customer has opened it. |
submitted | Photographs are in, the engine is working. |
approved | Passed. This is the one you act on. |
rejected | Failed on something conclusive. |
review | A person needs to look. Not a failure. |
expired | The link ran out before it was used. |
cancelled | Stopped from the portal. |
With the standard rules, only a few findings reject a person on their own: being under eighteen, a document edited in software, a document type you do not accept, and a proof of address re-saved in an editor. Everything else — including a face that does not match and a name close to a sanctions list — goes to a human, after the person has been asked to retake unclear photos. If a check cannot run at all, that too becomes a review, never a rejection. You can change this in your decision rules.
Decision rules
Every verification template has its own decision rules, written in plain words in the console (Decision rules): for each finding, approve, ask the person to redo a step, send to review, or refuse; the risk score from which a person looks (50 by default) and, if you want, a score from which a case is refused; a list of countries whose documents go to review or are refused; and the thresholds of the template's questionnaire. A simulator shows the decision for a situation before you change anything. Company checks follow fixed rules.
A session created with template keeps the rules of its
template as they are at creation: changing the template later never
changes a link already sent. A session created without
template follows the rules of your default template for
individuals, as they are when the check finishes. Being under eighteen and
a sanctions match can be sent to review or refused, never ignored. A
failure on our side is never turned into a refusal. Every read and every
webhook of a session created with a template returns
"template": {"key": "finance_strict", "name": "Finance strict", "changed": false},
where changed says the link changed some of its settings.
People verified before
A person who verifies again with the same document and the same name is never held or refused for that by default,
even for the tenth time. Every read and every webhook then returns
"seen_before": {"count": 3, "first_at": "2026-11-02"}: how many verifications this person already did
on your account, in the same mode (Live or Test). Your decision rules (« Person verified before ») can send these to
your team or refuse them. The same document under another name always goes to your team.
From a computer to a phone
When the person opens the link on a computer, the page offers to continue on their phone first: a QR code valid for
30 minutes, the link by email, or the link to copy. The computer then shows each step done on the phone, and the
result. It is the same session: the same id, the same statuses and the same verification.completed
webhook. Nothing changes in your integration. In the console and in the PDF report, the history shows
« Code shown to continue on a phone » and « Continued on a phone »; these steps never count in the risk.
Monitoring and reports
Ongoing monitoring. The people you approved in Live stay watched. Every night they are screened again against the UN, UK, EU and US
lists: a new possible match lands in Ongoing monitoring, with a bell and an e-mail, and the webhook verification.monitoring_match.
Nothing is decided automatically: your team says whether it is the same person.
Documents that expire. When the document of an approved person expires within the number of days you choose (14 to 90),
your team is told once by e-mail and your server receives verification.document_expiring. A new document is asked in one
click, or automatically if you turn it on: we create a new link with the same reference and the same checks, and e-mail it to the
person when you gave us their address (person_email). Your server receives verification.renewal_requested
with new_verification.id and new_verification.url. When the new verification is approved, it takes over.
Regular re-checks. You can verify everyone again every 6, 12, 24 or 36 months, the same way. « Not a customer » stops watching a person; « Watch again » brings them back.
Networks and fraud. The console groups the verifications of your account that share a document number, a document photo, a face photo, an image file, or a name and birth date under another reference, and draws each group. A connection shared by many people (an office, a mobile network) links nobody. You never see the verifications of another business.
Reports. Each month has its report (figures, reasons, countries, documents, your team, monitoring, fraud signs, spending) and its register of decisions (every approval and refusal, who decided and why), as a PDF in your name or a CSV file. The report of a company check draws who owns and who runs it. The figures can be e-mailed to your team on the 1st of each month.
Blocklist and sharing
Your blocklist. Add a document number or a person (full name and date of birth) from the Blocklist screen of the console, or with
Block on the page of a verification. From then on, a new verification that matches is refused automatically, or sent to your
team, as you choose: through links, files you upload and the API. The session comes back with the reason code
liste_blocage in reasons, with your own reason in its message. The person is never told why.
We keep only a fingerprint and a short form (the last four characters, the initial and surname), never the full number.
Sharing a report. Share on the page of a finished verification makes a read-only link for an auditor or a partner, open for 24 hours, 7 days or 30 days. It shows the result, the checks and our assessment as they were when the link was made, never the photos or the full document number. You can close a link at any time and see how many times it was opened.
Files on notes. A note of your team can carry up to five PDF, JPEG or PNG files of 5 MB each. They are encrypted, kept away from the public site, and erased with the data of the verification.
Correcting a detail
Our reader can misread a detail, for example a letter of the name hidden by a reflection. Once a verification is finished, an owner, a member or a reviewer of your team can correct the name, the date of birth or the expiry date from the page of the verification, in the console, next to the photo of the document. A short reason is required.
Nothing is erased: the value read stays visible next to the correction, with who corrected it and when, in the history of
the verification and in its PDF report. From then on, GET /api/verify/sessions.php?id=… returns the corrected
person.name and person.date_of_birth. A correction never changes the decision: if it changes yours,
decide again in the console.
What each result says
Every result, in the console, in the PDF report, in reasons and in webhooks, says what was found and what to do,
for example « The document photo is a screenshot, not an original photo ». It never says how our checks reached it: the
data inside a file, our measures and our thresholds stay with us, so that nobody can learn to get around them.
Embedded window
Open the verification in a window over your own page: your customer never leaves your website. On a computer it is a
window in the middle of the page; on a phone it takes the whole screen. Everything else is the same as a link: the guided
camera, the live face check, your questions, the 7 languages, your colours and the verification.completed webhook.
1. Allow your websites. In the console, Integration, add each website that may open the window, for example
https://www.your-company.com, or https://*.your-company.com for all its subdomains. Test and Live have their
own list. In Test, http://localhost and http://127.0.0.1 are always allowed. On any other website the
browser refuses to show the verification, and the console lists the websites that tried.
2. Create the verification on your server (POST /api/verify/sessions.php, as above) and give
session.url to your page. Your key never goes into the page.
3. Open the window on your page.
<script src="https://sylmera.com/identity/embed-v1.js"></script>
SylmeraIdentity.open({
url: session.url,
onReady: function () {},
onStep: function (e) {}, // e.step: welcome, capture, submitted, finished
onComplete: function (e) {}, // e.status: approved, rejected or review
onClose: function (e) {}, // e.completed: true once finished
onError: function (e) {} // e.code: not_allowed, invalid_url
});
Without writing JavaScript: <button data-sylmera-identity-url="https://sylmera.com/v/…">Verify my identity</button>
opens the same window. SylmeraIdentity.close() closes it.
4. Decide on the webhook. onComplete tells your page the person has finished, with the status only, never the
reasons. It comes from the browser: take your decision on the signed verification.completed webhook your server receives.
If the person closes the window in the middle of a step, it asks first. They can open the same link again later: the verification picks up where they left it.
Manual review in the webhook
When someone on your team decides a case from the console, the
verification.completed event carries a review
block. The internal note written with the decision never leaves the
console.
A case that goes to review only because the face still has
to be confirmed is usually settled by our own servers within a few
minutes: they compare the selfie with the document again and check each
move of the live check on its own picture. When everything holds, the
case becomes approved and verification.completed
is sent again, with "decided_by": "sylmera" in the
review block. Your team has nothing to do. When our servers
cannot confirm, the case stays in review for you, with the
reason in the console. Our servers never reject a case on their own.
"review": { "decided_by": "reviewer", "decision": "reject", "answer": "RED", "reject_type": "FINAL", "labels": [ { "code": "face_mismatch", "label": "Face does not match the document" } ] }
answer is GREEN when your team approves and RED otherwise.
With RED, reject_type tells you what comes next:
FINAL means the verification is closed; RETRY means your team asked
the person to take one or more steps again. With RETRY, the verification goes back to
open, the person keeps the same link, only the steps listed in steps
(id_front, id_back, selfie) are taken again, everything else is kept,
and a new verification.completed arrives when the checks have run again.
"review": { "decided_by": "reviewer", "decision": "retry", "answer": "RED", "reject_type": "RETRY", "steps": ["id_front"], "labels": [ { "code": "photo_blurry", "label": "Photo blurry" } ] }
| New attempt code | Meaning |
|---|---|
photo_blurry | Photo blurry |
glare | Reflection on the document |
cropped | Document cut off |
back_missing | Back side missing |
selfie_dark | Selfie too dark |
selfie_mismatch | Selfie does not show the same person clearly |
document_expired | Document expired |
wrong_document | Wrong document |
other | Other reason |
| Reason code | Meaning |
|---|---|
document_unreadable | Document unreadable or incomplete |
document_expired | Document expired |
document_not_accepted | Document type not accepted |
document_tampered | Document edited or forged |
face_mismatch | Face does not match the document |
not_live | Photo not taken live |
duplicate | Person already verified under another account |
sanctions_confirmed | Sanctions match confirmed |
underage | Under the minimum age |
data_mismatch | Details differ from what the person gave you |
company_not_found | Company not found on the register |
company_closed | Company closed or being wound up |
company_ownership | Ownership not clear or not proven |
company_people | A director or owner could not be verified |
company_activity | Activity you do not accept |
company_documents | Documents missing or not valid |
other | Other reason (a note is required) |
These codes never change; new ones may be added.
Webhooks
Add an address in your portal, one per environment, and we post to it the
moment a verification finishes. Two events exist today:
verification.completed and
verification.submitted.
POST https://your-company.example/hooks/sylmera
X-Sylmera-Event: verification.completed
X-Sylmera-Delivery: 8d1c…
X-Sylmera-Signature: t=1789459562,v1=4f3a…
{
"id": "8d1c…",
"type": "verification.completed",
"created": 1789459562,
"environment": "live",
"data": {
"session": { /* the same object as a read */ }
}
}
Answer 2xx quickly and do your work afterwards. Anything else
is retried, with the gaps widening: one minute, five, fifteen, one hour,
three, six. After that the delivery is abandoned and stays visible in your
portal.
The same event can arrive twice — a timeout on your side that still
processed the payload looks identical to a failure from ours. Store
id and ignore one you have already handled.
In Test mode, the Webhooks screen of your portal can point your test address at a receiver we host. Every delivery it gets is listed there, with its headers, its body and whether the signature is valid — what your own server will receive, before you have one. It accepts test results only and keeps them for seven days. Never use a placeholder or a public request-bin as your address: an approved person arrives with the name and date of birth read on their document.
Verifying a signature
The header is t=<unix seconds>,v1=<hex>. The
signed value is the timestamp, a full stop, then the raw request body.
HMAC-SHA256, with your endpoint secret as the key.
<?php $corps = file_get_contents('php://input'); $entete = $_SERVER['HTTP_X_SYLMERA_SIGNATURE'] ?? ''; parse_str(strtr($entete, ',', '&'), $p); $t = (int) ($p['t'] ?? 0); $v1 = (string) ($p['v1'] ?? ''); // Un message rejoue la semaine prochaine ne doit pas passer if (abs(time() - $t) > 300) { http_response_code(400); exit; } $attendu = hash_hmac('sha256', $t . '.' . $corps, VOTRE_SECRET); // hash_equals : la comparaison ne doit pas fuir par sa duree if (!hash_equals($attendu, $v1)) { http_response_code(400); exit; } http_response_code(200);
const crypto = require('crypto'); function valide(corpsBrut, entete, secret) { const p = Object.fromEntries( entete.split(',').map(x => x.split('=')) ); const t = parseInt(p.t, 10); // Rejeu : au-dela de cinq minutes, on refuse if (Math.abs(Date.now() / 1000 - t) > 300) return false; const attendu = crypto .createHmac('sha256', secret) .update(t + '.' + corpsBrut) .digest('hex'); return crypto.timingSafeEqual( Buffer.from(attendu), Buffer.from(p.v1) ); }
import hashlib, hmac, time def valide(corps_brut: bytes, entete: str, secret: str) -> bool: p = dict(x.split('=', 1) for x in entete.split(',')) t = int(p['t']) # Rejeu : au-dela de cinq minutes, on refuse if abs(time.time() - t) > 300: return False attendu = hmac.new( secret.encode(), f'{t}.'.encode() + corps_brut, hashlib.sha256, ).hexdigest() return hmac.compare_digest(attendu, p['v1'])
Read the body before any framework parses it. A body that has been decoded and re-encoded is no longer byte-for-byte what we signed, and every signature will fail for reasons that look like a bug in our code.
Errors
Every failure has the same shape: success: false, a stable
error string, and a message written for a human
reading a log. Branch on error, never on the message.
| Code | HTTP | What to do |
|---|---|---|
UNAUTHORIZED | 401 | The key is missing, revoked or wrong. Not retryable. |
ACCOUNT_PENDING | 403 | Live key on an account nobody has approved yet. Your sandbox key still works. |
ACCOUNT_SUSPENDED | 403 | Talk to us. |
INSUFFICIENT_CREDIT | 402 | Out of credit, or past the limit you set beyond your plan. Choose or pay your plan in Billing. Sandbox is unaffected. |
NOT_FOUND | 404 | No session with that id belongs to you. |
VALIDATION_ERROR | 422 | A field is wrong; the message says which. Fix it and resend. |
RATE_LIMITED | 429 | Slow down, then retry. |
STORAGE_ERROR | 500 | Ours. Safe to retry. |
Rate limits
120 requests a minute per key, which is far more than creating links needs. If you are anywhere near it you are probably polling — take a webhook instead and the problem disappears.
Going live
- Have your account approved in the console, then create a live key.
- Choose a plan in Billing. A live session is refused with
INSUFFICIENT_CREDITwhen your credit, and the limit you set beyond your plan, will not cover it; sandbox keeps working either way. - Register a live webhook address, separate from your sandbox one, and check a delivery arrives.
- Decide what your product does with
reviewbefore a customer hits it. It is the status people forget, and the one that strands real customers. - Ask us for the data processing agreement. Selling this service makes us a processor of your customers' documents, and a serious counterparty will ask you for that paperwork before they sign.
Something here wrong, missing or ambiguous? Tell us and it gets fixed — the documentation is part of the product.