Integrating ComplyAge means creating an integration in the members portal, then adding one or more of: a script tag for the Age Gate, a JavaScript insert that opens the hosted verification window, and an OAuth/SSO flow for sign-in. Every integration has separate test and live key sets, so you can wire everything on staging and flip to live without code changes.
Guides
The Age Gate
<script src="https://complyage.org/gate/v1/script.js?k=YOUR_PUBLIC_KEY"></script>
Hosted verification
<script src="https://verify.complyage.org/verify/v1/script.js"></script>
<script>
document.getElementById('verify').onclick = function () {
ComplyAge.verify({
onResult: function (r) { console.log(r.status, r.method); }
});
};
</script>
OAuth / SSO
Keys and environments
- Public key — in the Age Gate script tag; safe in HTML
- Client id + secret — OAuth; secret stays on your server
- Webhooks — configured per integration to receive verification events
Decision endpoint
GET https://complyage.org/gate/v1/decide?k=YOUR_PUBLIC_KEY
Passes are verifiable offline
Quick start
-
Create an account and an integration
Sign up at members.complyage.org, create an integration for your site, and note the public key, client id and secret. Everything starts in test mode.
-
Add the Age Gate
Paste the script tag into <head> on a staging page and load it from an enforced region (or force a zone in the portal) to see the verification window.
-
Add hosted verification where you need it
Include the verify insert and call ComplyAge.verify from a button. Handle VERIFIED, DENIED, CANCELLED and BLOCKED in onResult.
-
Add sign-in
Wire the OAuth flow with your test client credentials; read verification status from the verifications endpoint.
-
Go live
Swap test keys for live keys in the portal. No code changes.
Frequently asked questions
- Do I need a backend?
- Not for the Age Gate or hosted verification — both are browser-only. OAuth's token exchange and any webhook receiver run on your server.
- Is there an SDK?
- The gate script and the verify insert are the SDK: dependency-free JavaScript served by ComplyAge. OAuth works with any standard client library.
- Can I test without being billed?
- Yes. Test keys never bill. Use them on staging and swap to live keys when you ship.
- Does the gate work with my framework?
- It is framework-agnostic: a script tag and a first-party cookie. React, Vue, Rails, WordPress — anything that serves HTML.