Development environment
Integrate against the development base URL while you build:A good end-to-end test
1
Open a session
Call
POST /api/age-verification/session from your server and render the QR / tap-link.2
Present with a verified test wallet
Approve in an AnonAge wallet that has completed sandbox verification, so the session resolves.
3
Assert your callback ran
Confirm your
callback_url received a request, the signature verified, and you recorded the
result. Then confirm polling GET /api/age-verification/session/{id} agrees.4
Test the unhappy paths
A forged/unsigned callback must be rejected (401 on your side); an expired session must not
resolve; a second present on the same session must be ignored.
Use a test key (
anonage_sk_test_…) for this. Test keys are never billed and never count
against your usage limit, so you can keep an integration suite running indefinitely. See
Authentication.Going live
- Point your base URL at
https://api.anonage.io. - Swap your test key for a live key (
anonage_sk_live_…) from your Dashboard. Live keys require a verified identity on the account. - Make sure your
callback_urlis publicly reachable over https and verifies signatures.