API reference
Authentication
How to authenticate Verilo API requests with secret keys, and how test and live keys keep test data apart from live data.
Every request carries a secret key in the Authorization header:
curl https://api.verilo.app/v1/account -H "Authorization: Bearer vrl_test_..."Test keys and live keys
vrl_test_...keys act on test mode: free, never billed, and separate from your live data. Test Claims run the real engines and can be completed by the scripted customer.vrl_live_...keys act on live mode: real customers, billed per completed verification.
The key decides the mode. A test key cannot read a live Claim and a live key cannot read a test Claim: each answers resource_missing, exactly as for an id that does not exist. Webhook endpoints belong to a mode too.
Making, rotating and revoking keys
Make keys on Developers in the dashboard, in the mode you are viewing. A key is shown once, when it is made. Verilo stores only its SHA-256 fingerprint, so a lost key cannot be shown again: make a new one.
To rotate a key, make a new one, deploy it, then revoke the old one. A revoked key gets api_key_invalid at once. The page shows when each key was last used.
The Developers page in the Verilo dashboard in test mode: the Live and Test switch, a note that test mode is free, and the API keys table with two test keys and Create test key.
Keep keys on your server
Secret keys grant full access to your account's Claims in their mode. Keep them in your server's secret store, never in a browser, a mobile app or a repository. The API sends no CORS headers, so a browser cannot call it even by mistake.
Base URL
https://api.verilo.app/v1The same API also answers at https://verilo.app/api/v1. Links the API returns, such as media downloads, work with the same key.
Errors
api_key_missing: noAuthorization: Bearerheader.api_key_invalid: the key is not recognised, or was revoked.account_closed: the account was closed.
See Errors for every code.