Skip to content
Docs
Get started

API reference

Templates

The steps a Verification asks for: the built-in templates, your own, and the step kinds they are made of, each with exactly what it checks.

List templates

GET/templates

The built-in templates (damage_claim, rental_return, warranty_serial, resale_listing, delivery_condition), then your own in this mode, each with its steps and what it can establish.

Responses

  • 200

    The templates.

  • 401

    api_key_missing: No API key was sent. Send Authorization: Bearer <key>. api_key_invalid: The API key is not recognised, or it was revoked.

  • 429

    rate_limited: Too many requests. Wait for the number of seconds in Retry-After.

curl https://api.verilo.app/v1/templates \
  -H "Authorization: Bearer $VERILO_API_KEY"
Response · 200
{
  "object": "list",
  "data": [
    {
      "id": "warranty_serial",
      "object": "template",
      "builtIn": true,
      "version": 1,
      "name": "Warranty claim with serial capture",
      "description": "A customer makes a warranty claim. The serial number's barcode is read and matched to the serial you registered, the product to your image of it, the fault is captured close up with a finger pointing at it, and the scene is checked against the phone's light.",
      "order": "server_random",
      "prepare": "Have the product and its serial number label nearby",
      "steps": [
        {
          "key": "serial",
          "kind": "scan_code",
          "title": "Point your camera at the serial number barcode",
          "instruction": "It is usually on the back or underside. Fit its barcode inside the frame and hold still until it is sharp.",
          "reference": "serial",
          "referenceRequired": false,
          "allowMissing": false,
          "views": null
        },
        {
          "key": "item",
          "kind": "show_item",
          "title": null,
          "instruction": null,
          "reference": "item",
          "referenceRequired": false,
          "allowMissing": false,
          "views": null
        },
        {
          "key": "fault",
          "kind": "capture_detail",
          "title": "Point your camera at the fault, close up",
          "instruction": "Move in slowly until the problem fills the circle, then hold steady.",
          "reference": "item",
          "referenceRequired": false,
          "allowMissing": false,
          "views": null
        },
        {
          "key": "point",
          "kind": "touch_item",
          "title": "Point at the fault with a finger",
          "instruction": "Put a finger next to the problem so your hand and the product are both on screen.",
          "reference": null,
          "referenceRequired": false,
          "allowMissing": false,
          "views": null
        },
        {
          "key": "light",
          "kind": "light_response",
          "title": null,
          "instruction": null,
          "reference": "item",
          "referenceRequired": false,
          "allowMissing": false,
          "views": null
        }
      ],
      "capabilities": {
        "canIssueVerified": true,
        "liveness": "light_response",
        "references": [
          {
            "name": "serial",
            "kind": "codes",
            "required": false,
            "steps": [
              "serial"
            ]
          },
          {
            "name": "item",
            "kind": "image",
            "required": false,
            "steps": [
              "item",
              "fault",
              "light"
            ]
          }
        ],
        "checks": [
          {
            "step": "serial",
            "kind": "scan_code",
            "signal": "code_match",
            "checked": "against reference 'serial' when given"
          },
          {
            "step": "item",
            "kind": "show_item",
            "signal": "item_match",
            "checked": "against reference 'item' when given"
          },
          {
            "step": "fault",
            "kind": "capture_detail",
            "signal": "detail_capture",
            "checked": "against reference 'item' when given"
          },
          {
            "step": "point",
            "kind": "touch_item",
            "signal": "hand_in_frame",
            "checked": "on the phone, no reference"
          },
          {
            "step": "light",
            "kind": "light_response",
            "signal": "light_response",
            "checked": "against reference 'item' when given"
          }
        ],
        "notes": []
      },
      "archived": false,
      "createdAt": null,
      "updatedAt": null
    }
  ],
  "hasMore": false
}

Create a template

POST/templates

Defines your own list of capture steps. Every rule is one the engines can keep: a step names a reference only if its kind reads one, of the kind it reads, and photos steps check nothing. A template without a light_response step is accepted, and its capabilities say its best Result is Needs Review. Test and live keep separate templates.

Body parameters

  • namestringrequired

    Up to 80 characters.

  • descriptionstring

    Up to 500 characters.

  • preparestring

    What to have ready, shown before the steps, up to 120 characters.

  • orderstring

    server_random: the first step runs first and the server draws the order of the rest for each Session, so nobody can prepare for it. as_listed: in your order.

    One of server_random, as_listed

  • stepsarray of objectrequired

    1 to 10 steps; at most 3 scan_code and 1 light_response.

    Child attributes
    • kindstringrequired

      What the step asks for and checks. See GET /step_kinds.

      One of scan_code, show_item, capture_detail, move_around, touch_item, light_response, photos

    • keystring

      Your name for the step, unique in the template: up to 40 lower-case letters, digits or _. Default: the kind.

    • titlestring

      What the phone asks the person to point the camera at, up to 60 characters. Default: the kind's own words.

    • instructionstring

      What to do, up to 160 characters.

    • referencestring

      The name of the reference the step is checked against, given per Verification in references.

    • referenceRequiredboolean

      Refuse a Verification that does not give this reference.

    • allowMissingboolean

      scan_code only: the person may say they cannot find the code. Recorded as declared, never as read.

    • viewsarray of string

      photos only: the views asked for, one after another.

Responses

  • 201

    The template, version 1.

  • 400

    template_invalid: The template definition breaks a rule. param names the field and message says which rule. parameter_invalid: A parameter has the wrong type or an invalid value. param names it.

  • 401

    api_key_missing: No API key was sent. Send Authorization: Bearer <key>. api_key_invalid: The API key is not recognised, or it was revoked.

  • 429

    rate_limited: Too many requests. Wait for the number of seconds in Retry-After.

curl -X POST https://api.verilo.app/v1/templates \
  -H "Authorization: Bearer $VERILO_API_KEY" \
  -H "Idempotency-Key: rma-1042-create" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Bike return",
    "prepare": "Have the bike and its frame number nearby",
    "order": "server_random",
    "steps": [
      {
        "key": "frame",
        "kind": "scan_code",
        "reference": "frame",
        "referenceRequired": true,
        "title": "Point your camera at the frame number sticker"
      },
      {
        "key": "bike",
        "kind": "show_item",
        "reference": "item"
      },
      {
        "key": "sides",
        "kind": "photos",
        "title": "Show both sides of the bike",
        "views": [
          "Show the left side",
          "Now show the right side"
        ]
      },
      {
        "key": "move_around",
        "kind": "move_around"
      },
      {
        "key": "light",
        "kind": "light_response",
        "reference": "item"
      }
    ]
  }'
Response · 201
{
  "id": "warranty_serial",
  "object": "template",
  "builtIn": true,
  "version": 0,
  "name": "string",
  "description": "string",
  "order": "server_random",
  "prepare": "string",
  "steps": [
    {
      "kind": "scan_code",
      "key": "serial",
      "title": "Point your camera at the serial number barcode",
      "instruction": "It is usually on the back or underside.",
      "reference": "serial",
      "referenceRequired": false,
      "allowMissing": false,
      "views": [
        "Show the front",
        "Now show the back"
      ]
    }
  ],
  "capabilities": {
    "canIssueVerified": true,
    "liveness": "light_response",
    "references": [
      {
        "name": "string",
        "kind": "codes",
        "required": true,
        "steps": [
          "string"
        ]
      }
    ],
    "checks": [
      {
        "step": "string",
        "kind": "string",
        "signal": "string",
        "checked": "string"
      }
    ],
    "notes": [
      "string"
    ]
  },
  "archived": true,
  "createdAt": "2026-11-14T09:30:00Z",
  "updatedAt": "2026-11-14T09:30:00Z"
}

Retrieve a template

GET/templates/{id}

A built-in template by its key, or your own by its id.

Path parameters

  • idstringrequired

    The template's id.

Responses

  • 200

    The template.

  • 401

    api_key_missing: No API key was sent. Send Authorization: Bearer <key>. api_key_invalid: The API key is not recognised, or it was revoked.

  • 404

    resource_missing: No object with that id exists for this key's account and mode.

  • 429

    rate_limited: Too many requests. Wait for the number of seconds in Retry-After.

curl https://api.verilo.app/v1/templates/warranty_serial \
  -H "Authorization: Bearer $VERILO_API_KEY"
Response · 200
{
  "id": "warranty_serial",
  "object": "template",
  "builtIn": true,
  "version": 1,
  "name": "Warranty claim with serial capture",
  "description": "A customer makes a warranty claim. The serial number's barcode is read and matched to the serial you registered, the product to your image of it, the fault is captured close up with a finger pointing at it, and the scene is checked against the phone's light.",
  "order": "server_random",
  "prepare": "Have the product and its serial number label nearby",
  "steps": [
    {
      "key": "serial",
      "kind": "scan_code",
      "title": "Point your camera at the serial number barcode",
      "instruction": "It is usually on the back or underside. Fit its barcode inside the frame and hold still until it is sharp.",
      "reference": "serial",
      "referenceRequired": false,
      "allowMissing": false,
      "views": null
    },
    {
      "key": "item",
      "kind": "show_item",
      "title": null,
      "instruction": null,
      "reference": "item",
      "referenceRequired": false,
      "allowMissing": false,
      "views": null
    },
    {
      "key": "fault",
      "kind": "capture_detail",
      "title": "Point your camera at the fault, close up",
      "instruction": "Move in slowly until the problem fills the circle, then hold steady.",
      "reference": "item",
      "referenceRequired": false,
      "allowMissing": false,
      "views": null
    },
    {
      "key": "point",
      "kind": "touch_item",
      "title": "Point at the fault with a finger",
      "instruction": "Put a finger next to the problem so your hand and the product are both on screen.",
      "reference": null,
      "referenceRequired": false,
      "allowMissing": false,
      "views": null
    },
    {
      "key": "light",
      "kind": "light_response",
      "title": null,
      "instruction": null,
      "reference": "item",
      "referenceRequired": false,
      "allowMissing": false,
      "views": null
    }
  ],
  "capabilities": {
    "canIssueVerified": true,
    "liveness": "light_response",
    "references": [
      {
        "name": "serial",
        "kind": "codes",
        "required": false,
        "steps": [
          "serial"
        ]
      },
      {
        "name": "item",
        "kind": "image",
        "required": false,
        "steps": [
          "item",
          "fault",
          "light"
        ]
      }
    ],
    "checks": [
      {
        "step": "serial",
        "kind": "scan_code",
        "signal": "code_match",
        "checked": "against reference 'serial' when given"
      },
      {
        "step": "item",
        "kind": "show_item",
        "signal": "item_match",
        "checked": "against reference 'item' when given"
      },
      {
        "step": "fault",
        "kind": "capture_detail",
        "signal": "detail_capture",
        "checked": "against reference 'item' when given"
      },
      {
        "step": "point",
        "kind": "touch_item",
        "signal": "hand_in_frame",
        "checked": "on the phone, no reference"
      },
      {
        "step": "light",
        "kind": "light_response",
        "signal": "light_response",
        "checked": "against reference 'item' when given"
      }
    ],
    "notes": []
  },
  "archived": false,
  "createdAt": null,
  "updatedAt": null
}

Update a template

POST/templates/{id}

Changes your template and makes a new version. Fields you leave out keep their values. Verifications already made keep the version they were made with. Built-in templates answer template_read_only.

Path parameters

  • idstringrequired

    The template's id.

Body parameters

  • namestringrequired

    Up to 80 characters.

  • descriptionstring

    Up to 500 characters.

  • preparestring

    What to have ready, shown before the steps, up to 120 characters.

  • orderstring

    server_random: the first step runs first and the server draws the order of the rest for each Session, so nobody can prepare for it. as_listed: in your order.

    One of server_random, as_listed

  • stepsarray of objectrequired

    1 to 10 steps; at most 3 scan_code and 1 light_response.

    Child attributes
    • kindstringrequired

      What the step asks for and checks. See GET /step_kinds.

      One of scan_code, show_item, capture_detail, move_around, touch_item, light_response, photos

    • keystring

      Your name for the step, unique in the template: up to 40 lower-case letters, digits or _. Default: the kind.

    • titlestring

      What the phone asks the person to point the camera at, up to 60 characters. Default: the kind's own words.

    • instructionstring

      What to do, up to 160 characters.

    • referencestring

      The name of the reference the step is checked against, given per Verification in references.

    • referenceRequiredboolean

      Refuse a Verification that does not give this reference.

    • allowMissingboolean

      scan_code only: the person may say they cannot find the code. Recorded as declared, never as read.

    • viewsarray of string

      photos only: the views asked for, one after another.

Responses

  • 200

    The template at its new version.

  • 400

    template_invalid: The template definition breaks a rule. param names the field and message says which rule.

  • 401

    api_key_missing: No API key was sent. Send Authorization: Bearer <key>. api_key_invalid: The API key is not recognised, or it was revoked.

  • 404

    resource_missing: No object with that id exists for this key's account and mode.

  • 409

    template_read_only: Built-in templates cannot be changed or archived. Make your own from one.

  • 429

    rate_limited: Too many requests. Wait for the number of seconds in Retry-After.

curl -X POST https://api.verilo.app/v1/templates/tpl_5e1c9a7b3d2f4e6a8b0c1d2e3f4a5b6c \
  -H "Authorization: Bearer $VERILO_API_KEY" \
  -H "Idempotency-Key: rma-1042-create" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Bike return (with serial)"
  }'
Response · 200
{
  "id": "warranty_serial",
  "object": "template",
  "builtIn": true,
  "version": 0,
  "name": "string",
  "description": "string",
  "order": "server_random",
  "prepare": "string",
  "steps": [
    {
      "kind": "scan_code",
      "key": "serial",
      "title": "Point your camera at the serial number barcode",
      "instruction": "It is usually on the back or underside.",
      "reference": "serial",
      "referenceRequired": false,
      "allowMissing": false,
      "views": [
        "Show the front",
        "Now show the back"
      ]
    }
  ],
  "capabilities": {
    "canIssueVerified": true,
    "liveness": "light_response",
    "references": [
      {
        "name": "string",
        "kind": "codes",
        "required": true,
        "steps": [
          "string"
        ]
      }
    ],
    "checks": [
      {
        "step": "string",
        "kind": "string",
        "signal": "string",
        "checked": "string"
      }
    ],
    "notes": [
      "string"
    ]
  },
  "archived": true,
  "createdAt": "2026-11-14T09:30:00Z",
  "updatedAt": "2026-11-14T09:30:00Z"
}

Archive a template

DELETE/templates/{id}

Stops new Verifications from using your template. Those already made keep its steps.

Path parameters

  • idstringrequired

    The template's id.

Responses

  • 200

    The archived template.

  • 401

    api_key_missing: No API key was sent. Send Authorization: Bearer <key>. api_key_invalid: The API key is not recognised, or it was revoked.

  • 404

    resource_missing: No object with that id exists for this key's account and mode.

  • 409

    template_read_only: Built-in templates cannot be changed or archived. Make your own from one.

  • 429

    rate_limited: Too many requests. Wait for the number of seconds in Retry-After.

curl -X DELETE https://api.verilo.app/v1/templates/tpl_5e1c9a7b3d2f4e6a8b0c1d2e3f4a5b6c \
  -H "Authorization: Bearer $VERILO_API_KEY"
Response · 200
{
  "id": "warranty_serial",
  "object": "template",
  "builtIn": true,
  "version": 0,
  "name": "string",
  "description": "string",
  "order": "server_random",
  "prepare": "string",
  "steps": [
    {
      "kind": "scan_code",
      "key": "serial",
      "title": "Point your camera at the serial number barcode",
      "instruction": "It is usually on the back or underside.",
      "reference": "serial",
      "referenceRequired": false,
      "allowMissing": false,
      "views": [
        "Show the front",
        "Now show the back"
      ]
    }
  ],
  "capabilities": {
    "canIssueVerified": true,
    "liveness": "light_response",
    "references": [
      {
        "name": "string",
        "kind": "codes",
        "required": true,
        "steps": [
          "string"
        ]
      }
    ],
    "checks": [
      {
        "step": "string",
        "kind": "string",
        "signal": "string",
        "checked": "string"
      }
    ],
    "notes": [
      "string"
    ]
  },
  "archived": true,
  "createdAt": "2026-11-14T09:30:00Z",
  "updatedAt": "2026-11-14T09:30:00Z"
}

List step kinds

GET/step_kinds

Every kind of step a template can use, with the reference it can be checked against, the Signal it produces, what it establishes and what it does not. The same table as the Step kinds page.

Responses

  • 200

    The step kinds.

  • 401

    api_key_missing: No API key was sent. Send Authorization: Bearer <key>. api_key_invalid: The API key is not recognised, or it was revoked.

  • 429

    rate_limited: Too many requests. Wait for the number of seconds in Retry-After.

curl https://api.verilo.app/v1/step_kinds \
  -H "Authorization: Bearer $VERILO_API_KEY"
Response · 200
{
  "object": "list",
  "hasMore": false,
  "data": [
    {
      "object": "step_kind",
      "id": "scan_code",
      "reference": "codes",
      "signal": "code_match",
      "checks": "Reads every barcode or 2D code in view (code_128, code_39, ean_13, upc_a, itf, qr_code, data_matrix, pdf417). With a codes reference, the step matches when a code read equals a reference value, or contains it for values of ten or more characters (a tracking number inside a carrier's routing barcode). Without one, the codes read are recorded and returned.",
      "limits": "Does not read printed text: a label without a code is captured as a picture and reported as text_only. A code shown on a screen reads like a printed one, which is why liveness comes from the light step.",
      "canMakeUnableToVerify": true,
      "defaultText": {
        "title": "Point your camera at the code",
        "instruction": "Fit the barcode or QR code inside the frame and hold still until it is sharp."
      },
      "formats": [
        "code_128",
        "code_39",
        "ean_13",
        "upc_a",
        "itf",
        "qr_code",
        "data_matrix",
        "pdf417"
      ]
    },
    {
      "object": "step_kind",
      "id": "show_item",
      "reference": "image",
      "signal": "item_match",
      "checks": "Scores live frames of the whole item against an image reference, on the phone while the step runs and again on the server; the step matches at similarity 0.55 or more. Without an image, the step checks only that a whole item was held steady in view.",
      "limits": "Similarity is visual likeness: it tells one kind of product from another, not one unit of a model from another unit of the same model. Use a code step for unit identity.",
      "canMakeUnableToVerify": false,
      "defaultText": {
        "title": "Point your camera at the whole item",
        "instruction": "Step back until all of it fits inside the frame, then hold steady."
      }
    },
    {
      "object": "step_kind",
      "id": "capture_detail",
      "reference": "image",
      "signal": "detail_capture",
      "checks": "Records a close-up: the picture must expand as the phone moves in and, where the phone has motion sensors, track its forward movement. With an image reference, the close-up frames also count towards item likeness.",
      "limits": "Does not detect, measure or grade damage, wear or condition. The close-up is evidence for a person to review.",
      "canMakeUnableToVerify": false,
      "defaultText": {
        "title": "Point your camera at the detail, close up",
        "instruction": "Move in slowly until it fills the circle, then hold steady."
      }
    },
    {
      "object": "step_kind",
      "id": "move_around",
      "reference": null,
      "signal": "depth_parallax",
      "checks": "Measures parallax as the phone moves around the item: near and far parts of a solid object move differently, a flat picture does not. The step completes at 120 px of parallax, measured on the phone.",
      "limits": "Measured on the customer's phone and reported by it. It adds depth evidence; it does not replace the light step.",
      "canMakeUnableToVerify": false,
      "defaultText": {
        "title": "Keep the camera on the item and move around it",
        "instruction": "Move your phone slowly around the item, keeping all of it on screen."
      }
    },
    {
      "object": "step_kind",
      "id": "touch_item",
      "reference": null,
      "signal": "hand_in_frame",
      "checks": "Checks that a hand and the item are in view together while the customer touches or points at it.",
      "limits": "Shows someone was handling the item during the capture. It says nothing about who.",
      "canMakeUnableToVerify": false,
      "defaultText": {
        "title": "Touch the item with a finger",
        "instruction": "Put a finger on the item so your hand and the item are both on screen."
      }
    },
    {
      "object": "step_kind",
      "id": "light_response",
      "reference": "image",
      "signal": "light_response",
      "checks": "Flashes the phone's light in a pattern the server draws for this Session and measures how the scene's brightness follows it. A real object close to the camera follows the pattern; a screen or a replayed recording does not. The step passes at a tracking of 0.503 or more. With an image reference, the item is recognised before the light starts.",
      "limits": "Needs a phone whose light the browser can control. Where it cannot, the step is recorded as unavailable and the best Result is Needs Review.",
      "canMakeUnableToVerify": true,
      "defaultText": {
        "title": "Point your camera at the item and hold still",
        "instruction": "Hold the phone close to the item and keep it still for a few seconds."
      }
    },
    {
      "object": "step_kind",
      "id": "photos",
      "reference": null,
      "signal": "photos",
      "checks": "Shows your own instruction and records one to three steady views, one after another.",
      "limits": "Evidence only: nothing in the photos is checked, and the step never changes the Result State.",
      "canMakeUnableToVerify": false,
      "defaultText": {
        "title": "Show what is asked",
        "instruction": "Hold each view still for a moment."
      }
    }
  ],
  "limits": {
    "steps": 10,
    "scanCodeSteps": 3,
    "lightResponseSteps": 1
  }
}