Skip to main content

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​

StageWhat you doGuide
1. ChoosePick an integration method and check the prerequisites.This page
2. Configure and buildSet your age policy, create keys, add the code.Server integration, JavaScript SDK or WordPress
3. Confirm on your serverGrant access only after your server confirms the result.Included in each guide
4. TestTry successful, unsuccessful, interrupted and expired journeys.Test your integration
5. Go liveSubscribe, check settings, and confirm the first real verifications.Go-live checklist
6. OperateWatch 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…UseWho does the work
Runs on WordPressWordPress guide: one code file and a shortcodeSomeone 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 popupJavaScript SDK plus a server endpointA developer
Is built on a hosted platform where you cannot add server-side codeSee If you do not have a developer
There is no browser-only integration

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:

  1. 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.
  2. 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.
  3. Configuration → Domains: add the domains your site uses, plus localhost for testing. Remove localhost before launch if you prefer.
  4. 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.
You should see

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:

  1. A link to this page and to the guide for your platform.
  2. The pages, products or areas that need age verification, and what should happen for users who are not verified.
  3. The verification mode and challenge age you have chosen.
  4. 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.
  5. 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.