Getting started
Environments
Sandbox and live, how a request picks one, the sandbox test values and the checklist for going live.
Sandbox and live#
Every application has two environments:
| Sandbox | Live | |
|---|---|---|
| Key prefix | aq_test_ |
aq_live_ |
| Checks | The same document, face and screening checks as live | Real registries, face and document checks |
| Documents | Passports and driving licences | National ID cards, passports, driving licences |
| Registries | No national registry; a simulated business registry | The real national and business registries |
| Data kept | At most 24 hours, then deleted | The retention periods, three years by default |
| Use for | Development, CI against your own app, demos | Production traffic |
Both use the same base URL, https://api.aqoon.si/v1. The key decides the environment: there is no environment parameter. In the dashboard, switch environments with the selector at the top of the page.
Isolation#
Sandbox and live are separate data sets. People, businesses, verifications, cases, webhooks and events created in one environment are invisible to the other, and a resource ID from one returns 404 in the other.
Keep separate keys, webhook endpoints and signing secrets per environment, and never copy resource IDs between them.
What sandbox runs#
Sandbox runs the same checks as live. The SDK uses the camera, the person photographs a real document, and the same readers and face checks decide. Test with real documents and real faces, your own or your team's, with their agreement.
Three things differ:
- Nothing is kept. Sandbox data is deleted within 24 hours of being created: people and businesses with
everything about them (verifications, photos, selfies, documents, screenings, cases), lookups and events. A deleted
resource returns
404. API keys, webhook endpoints and applications are configuration and stay. - No national registry is asked. A national registry sends the person a code by SMS, and they enter it to
authorise the lookup; sandbox never asks for that. So sandbox offers passports and driving licences only: a national
ID card is answered as a document that cannot be checked here (
documentUnsupported, never a result about the person), and there is no ID number path (number: unavailable). Try those in live, with a tester who agrees. - The business registry is simulated. The test values below choose the result.
Because sandbox holds real photos and faces until they are deleted, it is protected like live data.
Sandbox cannot produce an outcome on request: there is no way to make a capture fail as a spoof or a reader go down. Handle those cases by the error and failure shapes the API documents.
Screening searches the same real sanctions lists in both environments. Always use made-up names in sandbox.
GET /v1/capabilities lists every capability and where it is available in sandbox and in live.
Sandbox test values#
Business registry#
| Registration number ends with | Result |
|---|---|
0000 |
No business found |
5555 |
A different business than the one asked for: registrationNumberMismatch |
8888 |
Registry rate limited: 429 |
9999 |
Registry unavailable: 503 |
| anything else (8 to 20 digits) | Found; an even last digit has a licence |
A name search returns three synthetic candidates. The name nobody returns none.
Business documents#
Business documents are read as in live and compared with the simulated registry. Upload a real document, or one you made that shows the registration number of a simulated business.
Going live#
- Create a live API key with only the scopes your app needs, and store it where only your app can read it.
- Register a live webhook endpoint. It gets its own signing secret; never reuse the sandbox one.
- Check
GET /v1/capabilitiesfor the countries and checks you plan to offer in live. - Record consent with the real version of the notice your users see.
- Run a first live test with a few members of your own team who agree to it, before you open the flow to customers.
Live results are real records about real people. Never point load tests or automated test suites at live.