API reference
Test mode
Build and test a verification integration for free, with a scripted customer that completes Verifications and Claims through Verilo's real verification engines.
Test mode is a complete copy of the API for building and testing, free and never billed. Use a vrl_test_... key. Test Verifications, templates, Claims, orders, webhook endpoints and events are kept apart from live ones. The Live and Test switch on the Developers page chooses which mode the dashboard shows; the key you send chooses the mode of each request.
The Developers page switched to Live: live keys act on live data, and a notice that live Claims need card billing at $0.75 USD per completed verification, with nothing charged until then.
The scripted customer
A real Verification needs a person with the item and a phone. In test mode the scripted customer stands in for them, for every template:
curl -X POST https://api.verilo.app/v1/test_helpers/verifications/ver_.../capture \
-H "Authorization: Bearer $VERILO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "scenario": "verified" }'And for a Claim:
curl -X POST https://api.verilo.app/v1/test_helpers/claims/clm_.../capture \
-H "Authorization: Bearer $VERILO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "scenario": "verified" }'It opens the Verification Link, takes each step the server reveals, uploads the evidence with its SHA-256 checks, and finishes. Verilo's Evidence Engine and Decision Engine then issue the Result exactly as they would for a phone, and verification.result_ready (or claim.result_ready) goes to your endpoints. Nothing about the Result is set by hand: if your references lack an image, or your order a tracking number, the Result says so.
Scenarios for a Verification
At each step the scripted customer shows what the step's reference expects: the reference's first code, the reference's image. One step changes with the scenario:
verified: nothing changes. With every reference given and a light-response step in the template, the Result is Verified.needs_review: the first check with a reference is missed: another code at the first code step whose reference you gave, otherwise a different item wherever your image is checked, otherwise a weak response to the light. The Result is Needs Review.unable_to_verify: the light-response step does not finish, otherwise the first code step reads nothing. The Result is Unable to Verify.
A template without the steps a scenario needs answers parameter_invalid and says why.
Scenarios for a Claim
verified: the label's barcode carries the order's tracking number, the scene responds to the phone's light, and the item matches the order line's product image. On an order with a tracking number and an image, the Result is Verified.needs_review: the label's barcode is another parcel's. The Result is Needs Review, with the mismatch named in the Explanation.unable_to_verify: the label cannot be read. The Result is Unable to Verify.
The scripted customer starts from a link nobody has opened. To run it again, make a new link first with POST /v1/verifications/{id}/verification_links or POST /v1/claims/{id}/verification_links.
The real customer experience
Open a test Verification's verificationLink.url on your phone to see exactly what your customers see: about a minute of guided steps in the phone's browser, no app and no account, in your template's own words. The engines judge what you film. To get Verified, film the item in your image reference, with the barcode whose value is your codes reference. For a Claim, film the product in the order line's imageUrl with the shipping label whose barcode is the order's tracking number.
What test mode does not do
- It never bills and never counts towards anything.
- It never contributes to the Verilo network.
- The scripted customer is refused with a live key (
test_mode_only).
Sample data
The sample product image https://api.verilo.app/v1/samples/ceramic-table-lamp.jpg and the tracking number 1Z999AA10123456784 work with every scenario. The Quickstart uses both.