Get started
This page helps you choose an integration method, set up your SafePassage account, and plan the route to launch. Allow about an hour for a developer to build and test a basic integration, and longer if you protect many pages or products.
Your route to launch
| Stage | What you do | Guide |
|---|---|---|
| 1. Choose | Pick an integration method and check the prerequisites. | This page |
| 2. Configure and build | Set your age policy, create keys, add the code. | Server integration, JavaScript SDK or WordPress |
| 3. Confirm on your server | Grant access only after your server confirms the result. | Included in each guide |
| 4. Test | Try successful, unsuccessful, interrupted and expired journeys. | Test your integration |
| 5. Go live | Subscribe, check settings, and confirm the first real verifications. | Go-live checklist |
| 6. Operate | Watch results, webhooks and limits; fix problems. | Troubleshooting, Dashboard |
Step 1: Choose an integration method
Every method follows the same model: your server, not the browser, decides whether a user is verified. See How verification works.
| If your site… | Use | Who does the work |
|---|---|---|
| Runs on WordPress | WordPress guide: one code file and a shortcode | Someone comfortable editing wp-config.php and uploading a PHP file, or a developer |
| Has server-side code you or a developer can change (Node.js, PHP, Python, Ruby, .NET, Java…) | Server integration (recommended) | A developer |
| Is a single-page app, or you want verification in a popup | JavaScript SDK plus a server endpoint | A developer |
| Is built on a hosted platform where you cannot add server-side code | See If you do not have a developer |
Adding the SDK or a link to a page without any server-side code is not secure. A visitor can make the page believe they are verified by editing the address bar. Every method on this site includes a server-side check.
Step 2: Check the prerequisites
- A SafePassage account. Sign up if you have not already. New accounts start with a free sandbox allowance for testing; plans and prices are shown on the Dashboard's Billing page once you have an account.
- The Owner or Admin role in the Dashboard, to create keys and change configuration and webhooks.
- A site served over HTTPS. Local testing can use
http://localhost. - A decision on your age policy. Read Age policy and verification modes before you choose settings. In particular, an ID check confirms 18+, not a higher age.
- Somewhere to keep secrets on your server, such as environment variables
or
wp-config.php. The secret key and webhook signing secret must never appear in browser code.
Step 3: Set up your account
In the Dashboard:
- API Keys: create a key pair. Keys are passwords for your site's code.
The secret key (
sk_…) goes on your server and must stay private; the publishable key (pk_…) is needed only for the JavaScript SDK. - Configuration → Verification: choose the verification mode (L1: a selfie age estimate, with an ID only when needed; L2: an ID every time) and the challenge age. New accounts start on L2. See Age policy.
- Configuration → Domains: add the domains your site uses, plus
localhostfor testing. Removelocalhostbefore launch if you prefer. - Configuration → Webhooks: once your site can receive webhooks (messages SafePassage sends to your site about results), add its address here and store the signing secret. Each guide shows the address to use.
A key pair on the API Keys page, your chosen mode on the Configuration page, and your domains listed under Domains.
Step 4: Build, test and launch
Follow the guide for your method, then work through Test your integration and the go-live checklist.
If you do not have a developer
A SafePassage integration needs code that runs on your site's server. If you
run WordPress and can upload a file and edit wp-config.php, the
WordPress guide is written for you. Otherwise, ask a
developer, agency or your hosting provider, and send them:
- A link to this page and to the guide for your platform.
- The pages, products or areas that need age verification, and what should happen for users who are not verified.
- The verification mode and challenge age you have chosen.
- Access to the SafePassage Dashboard (invite them under Team with the Admin role), or the secret key and webhook signing secret through a password manager. Never send keys by email or chat.
- This acceptance check: "Done means a user who has not verified cannot reach the protected content, even by changing the address bar; a verified user can; and every item on the go-live checklist is complete."
If your site is on a hosted platform that does not allow server-side code, contact support@safepassageapp.com before you start, describing the platform.
Getting help
- Troubleshooting, organised by what you see.
- Email support@safepassageapp.com, or use Support in the Dashboard. Include
the
sessionId, the time, and the exact error message. Never include keys or signing secrets.