API reference
How verification works
The Verilo verification primitive: a live-capture check of a physical object, built from a template of capture steps, checked against your references, ending in one Verification Result with per-step Signals.
A Verification checks that a specific physical object is in front of a live phone camera, right now, and keeps what the camera saw as tamper-evident evidence. Damage claims, rental returns, warranty claims, resale listings and delivery checks are all the same thing underneath: a person shows an object, following steps they cannot prepare for, and Verilo checks what they show against what you expected.
The parts
- Template: the list of capture steps. Use a built-in template or define your own. Each step has a kind, the words the phone shows, and optionally the name of the reference it is checked against.
- Step kind: what one step asks for and what Verilo's engines check: read a code, show the item, capture a detail, move around the item, touch it, follow the phone's light, or take photos for the record. Each kind checks exactly one thing, listed on Step kinds, and nothing it cannot.
- References: the values the steps are checked against, given per Verification: the serial number you registered, the parcel's tracking number, your image of the item. Codes are sent as
{ "codes": [...] }and images as{ "imageUrl": "https://..." }, or as a plain list or address for short. A step whose reference you leave out is recorded, not checked. - Verification Link: a signed link that expires (72 hours unless you set
linkExpiresInHours). Send it to the person by email, SMS or in your app. It opens in the phone's browser: no app, no account. - Verification Session: one attempt at the capture. The server reveals one step at a time and draws the order of the steps for each Session, so nobody can film them in advance. A person who leaves and comes back within ten minutes picks up where they left off; later, the same link starts again.
- Verification Result: issued once per completed Session and never changed. Its state, the reasons in plain words, and each step with what it checked and what it measured.
What the person sees
A warranty Verification on the person's phone: "A quick camera check" with Start; step 1, "Point your camera at the serial number barcode"; a later step, "Point your camera at the item and hold still"; and "Thanks, that’s everything we need".
One call, one link
curl https://api.verilo.app/v1/verifications \
-H "Authorization: Bearer $VERILO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"template": "warranty_serial",
"reference": "WAR-20931",
"subject": { "name": "KX-200 electric kettle" },
"references": {
"serial": { "codes": ["SN-KX200-778812"] },
"item": { "imageUrl": "https://api.verilo.app/v1/samples/ceramic-table-lamp.jpg" }
}
}'const verification = await fetch('https://api.verilo.app/v1/verifications', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.VERILO_API_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({
template: 'warranty_serial',
reference: 'WAR-20931',
subject: { name: 'KX-200 electric kettle' },
references: {
serial: { codes: ['SN-KX200-778812'] },
item: { imageUrl: 'https://api.verilo.app/v1/samples/ceramic-table-lamp.jpg' },
},
}),
}).then(r => r.json());
// Send verification.verificationLink.url to the customer.import os, requests
verification = requests.post(
"https://api.verilo.app/v1/verifications",
headers={"Authorization": f"Bearer {os.environ['VERILO_API_KEY']}"},
json={
"template": "warranty_serial",
"reference": "WAR-20931",
"subject": {"name": "KX-200 electric kettle"},
"references": {
"serial": {"codes": ["SN-KX200-778812"]},
"item": {"imageUrl": "https://api.verilo.app/v1/samples/ceramic-table-lamp.jpg"},
},
},
).json()
print(verification["verificationLink"]["url"])The answer is the Verification with "status": "link_sent" and its verificationLink. When the person finishes, verification.result_ready arrives at your webhook with the Result inside.
Statuses
link_sent: waiting for the person to open the link.in_progress: they have started.result_ready: the Result is inresult.link_expired: the link lapsed before they finished. Make a new one withPOST /v1/verifications/{id}/verification_links.processing_failed: they finished, but the evidence could not be processed after three tries. Make a new link.cancelled: you withdrew it before a Result.
A damage claim's Verification also has outcome_recorded, once you record what you did on its Claim.
The Result
{
"state": "Verified",
"explanation": {
"strong": ["serial: the code read matches the reference value SN-KX200-778812.", "light: the scene brightened in step with the phone's light (tracking 0.86), consistent with a real object in front of the camera."],
"weak": []
},
"steps": [
{ "key": "serial", "kind": "scan_code", "signal": "code_match", "result": "passed", "status": "completed",
"measured": { "outcome": "match", "codes": ["SN-KX200-778812"], "matched": "SN-KX200-778812" } },
{ "key": "item", "kind": "show_item", "signal": "item_match", "result": "passed", "status": "completed",
"measured": { "outcome": "match", "similarity": 0.91, "threshold": 0.55 } }
],
"ruleVersion": "t1",
"sessionId": "ses_6d8f2a1c9b1e4c3d8a7f2e1d9c4b5a6f",
"issuedAt": "2026-11-15T09:36:40Z"
}Each step ends in one of five results:
passed: its check was made and met.recorded: nothing to check it against, because no reference was given, or the step is evidence only (photos).not_passed: its check was made and not met, or the person said they could not show it.failed: it could not run, such as no code read at all, or a light step that did not finish.unavailable: the phone cannot do it, such as a phone whose light the browser cannot control.
How the state is decided
Template rule t1, in this order:
- Any step
failed: Unable to Verify. - Every step
passedorrecorded, every step completed, and a light-response steppassed: Verified. - Anything else: Needs Review.
The light-response step is what rules out a screen, a printed picture or a replayed recording: the phone flashes its light in a pattern the server draws for that Session, and only a real object close to the camera brightens and darkens in step. A template without one can still be used, and its capabilities.canIssueVerified is false: its best Result is Needs Review.
A damage claim's Result is issued by Decision Engine rule v1.1 instead, with its seven Sub-scores: see Damage claims.
What every Result rests on
Codes are read exactly. Printed text is not read.
Every barcode and 2D code in view is decoded and matched to your references. Printed text without a code is kept as a picture for your team; Verilo never reads it or matches it.
Image matching identifies the model. A code identifies the unit.
Item matching confirms the object is the product in your reference image. Two units of one model look the same, so the identity of a unit always comes from a serial or asset-tag code.
Condition is recorded, never graded.
Close-ups and photos are captured live, fingerprinted and kept for your reviewer. Verilo does not detect, measure or grade damage, wear or condition, and no Result depends on it.
Only the light-response step rules out a screen or a printed picture.
The phone's light flashes in a pattern drawn for each Session, and only a real object close to the camera follows it. Every built-in template has one. Without one, a template's best Result is Needs Review, and its capabilities say so.
The Result describes the evidence, never the person. Verilo establishes how good the evidence is; what happens next is your decision.
Evidence
Every picture and clip is hashed on the phone and checked when it arrives. GET /v1/verifications/{id}/evidence lists each step with its files and their SHA-256; GET /v1/verifications/{id}/evidence_pack is a PDF of the Result, each step with its key frame and what it measured, and every file's fingerprint. Evidence is never edited. DELETE /v1/verifications/{id} deletes the whole Evidence Record at once.