Skip to content
Docs
Get started

API reference

Step kinds

The seven capture steps a Verilo template is built from, the reference each is checked against, the Signal it produces, what it establishes and what it does not.

A template is a list of steps, and every step is one of seven kinds. Each kind is one capture step the phone can run and one check Verilo's engines can make. A step can name a reference only if its kind reads one, and only of the kind it reads, so a template can never claim a check Verilo does not make. GET /v1/step_kinds returns this table as data.

The seven step kinds on the person's phone, each with its own words: scan_code, "Point your camera at the code"; show_item, "Point your camera at the whole item"; capture_detail, "Point your camera at the detail, close up"; move_around, "Keep the camera on the item and move around it"; touch_item, "Touch the item with a finger"; light_response, "Point your camera at the item and hold still"; photos, "Show what is asked".

Each step kind on the person's phone, with the kind's own words. A template replaces the title and instruction with its own.

What every Result rests on

Four guarantees hold for every template, built in or your own. They are why the kinds are shaped as they are, and every Result's steps say which checks were made and which were only recorded.

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.

scan_code

  • Asks for: a barcode or 2D code in view: Code 128, Code 39, EAN-13, UPC-A, ITF, QR, Data Matrix or PDF417.
  • Checked against: a codes reference. A code read matches when it equals a reference value, or contains it for values of ten or more characters, as a carrier's routing barcode carries its tracking number.
  • Signal: code_match, with outcome match, mismatch, read (no reference given: the codes are returned, not matched), text_only (a label was shown but no code on it could be read), unreadable or declared.
  • Can make the Result Unable to Verify: yes, when nothing is read at all.
  • Options: allowMissing lets the person say they cannot find the code. That is recorded as declared, never as read.
  • Does not establish: anything about printed text. A code shown on a screen reads like a printed one, which is why liveness comes from the light step.

show_item

  • Asks for: the whole item, held steady in view.
  • Checked against: an image reference. Live frames are scored on the phone while the step runs and again on the server; the step matches at similarity 0.55 or more. Every frame of every step that names the same image counts.
  • Signal: item_match, with outcome match, below, no_reference (no image given: a whole item was held steady, not matched) or missing.
  • Does not establish: which unit it is. Two kettles of the same model look the same.

capture_detail

  • Asks for: a close-up. The picture must expand as the phone moves in and, where the phone has motion sensors, follow its forward movement.
  • Checked against: optionally an image reference. The close-up frames then count towards item likeness.
  • Signal: detail_capture, with the expansion and the motion tracking.
  • Does not establish: what the detail shows. Damage, wear and condition are for a person to judge from the close-up.

move_around

  • Asks for: the phone moved slowly around the item. Near and far parts of a solid object move differently; a flat picture does not.
  • Checked against: nothing. The step completes at 120 px of parallax, measured on the phone.
  • Signal: depth_parallax, with the parallax and its threshold.
  • Does not establish: liveness on its own. It adds depth evidence measured on the person's phone.

touch_item

  • Asks for: a finger on or beside the item, with hand and item in view together.
  • Checked against: nothing.
  • Signal: hand_in_frame.
  • Does not establish: whose hand it is.

light_response

  • Asks for: the phone held still, close to the item, for a few seconds. The phone flashes its light in a pattern the server draws for this Session; the instruction never mentions the light.
  • Checked against: optionally an image reference, to recognise the item before the light starts. The scene's brightness must follow the pattern with a tracking of 0.503 or more.
  • Signal: light_response, with outcome above, below, failed or absent and the tracking.
  • Can make the Result Unable to Verify: yes, when the step does not finish.
  • Does not establish: anything on a phone whose light the browser cannot control. The step is then unavailable and the best Result is Needs Review.

photos

  • Asks for: one to three steady views, each with your own instruction (views).
  • Checked against: nothing. It is evidence only and never changes the Result State.
  • Signal: photos, with the number of views recorded.

Rules for a template

  • 1 to 10 steps, each with a unique key.
  • At most 3 scan_code steps and 1 light_response step.
  • reference only on scan_code (codes), show_item, capture_detail and light_response (image), and one name is one kind of reference.
  • referenceRequired refuses a Verification that leaves the reference out, with reference_missing.
  • allowMissing on scan_code only; views on photos only, and a photos step needs a title or views.

A rule broken answers template_invalid, with param naming the field, such as steps[2].reference.