Troubleshooting
Find the symptom that matches what you see. Each entry lists the likely causes in order and how to fix them. If nothing here helps, see Contact support.
Cannot start a verification
Your server's Create Session call fails, or the verify button shows an error. Check your server log for the HTTP status and response.
| Response | Cause | Fix |
|---|---|---|
401 API key required or Invalid API key | The key is missing, mistyped, deleted, or has extra spaces. | Copy the key again from API Keys. Check that your server reads the environment variable you set. |
401 Tenant is not active | The account is suspended or closed. | Contact support. |
403 API key not valid for this brand | The key is not a SafePassage key, or the request went to another service's address. | Use a SafePassage key with https://api.safepassageapp.com. |
400 Return URL domain not allowed | returnUrl (or cancelUrl) is on a domain that is not in Configuration → Domains. | Add the domain, or localhost for local testing. A root domain such as example.com also allows its subdomains. |
403 Origin '…' not allowed | JavaScript SDK on a page whose domain is not in Configuration → Domains. | Add the page's domain. |
400 with a list of messages | The request body is invalid, for example returnUrl does not start with http:// or https://. | Correct the fields named in the messages. |
403 SUBSCRIPTION_REQUIRED | No active subscription. | Choose a plan in Billing. See Plans, billing and limits. |
503 SESSION_LAUNCH_CONFIGURATION_UNAVAILABLE | The key pair has no active publishable key. | In API Keys, make sure the pair you use has an active publishable key, or create a new pair. |
429 | More than 300 sessions created per minute across your account. | Slow down and retry after X-RateLimit-Retry-After seconds. |
No response, or 5xx | Network problem or a temporary service problem. | Retry after a short delay. Show users a "try again shortly" message. |
403 PLAN_LIMIT_REACHED means your plan's verifications for this billing
period are used up. Upgrade in Billing, or wait for the next period. See
Plans, billing and limits.
JavaScript SDK only: "Too many verification attempts. Please wait before
trying again." means verify() was called more than five times in a minute on
one page. Show a "wait a minute" message.
The verification page says verification is blocked
The user sees Sandbox Limit Reached, Subscription Required or Monthly Limit Reached on the SafePassage page.
Your account cannot start new verifications. An Owner or Admin must act in Billing:
- Sandbox Limit Reached: the free sandbox allowance is used up. Choose a plan or subscription.
- Subscription Required: there is no active subscription. Subscribe.
- Monthly Limit Reached: your plan's verification limit for this billing period is used. Upgrade your plan, or contact support@safepassageapp.com.
Users cannot fix this themselves. Your server sees 403 with the matching
code, or for the sandbox limit a 201 response containing billingBlock.
Users finish verification but do not get access
- Your return page uses the
statusparameter, or is missing. Check that thereturnUrlpage exists, calls Validate Session, and sends a response in every case (including errors). - Validate Session returns
status: "pending". The user returned early, or left without finishing. Offer Check again and Continue verification. - The
externalUserIddoes not match. The session was started for a different user ID than the signed-in user, or your code compares numbers with strings. Compare the values exactly as you sent them. - Validate Session returns
404 Session not found. The secret key belongs to a different account from the one that created the session, for example test and live sites using different accounts. - The user lost their session cookie between leaving and returning (for
example a cookie set with
SameSite=Strict, or a different domain forreturnUrl). UseSameSite=Laxand return to the same domain. - A page cache is serving an old copy of the protected page. Exclude protected pages from caching.
Users return to the site without finishing
A user who does not pass, or gives up, may choose Return to site. They arrive
at your cancelUrl, or your returnUrl if you set none, with no
parameters, and their session stays open until its 10 minutes end.
Your return page should look up the session the user started, show that it is not finished, and offer Continue verification (the same session) or a new attempt once it has expired. Explain what helps: a valid photo ID, good light, and the whole document in view.
Users are asked for an ID when you did not expect it
- Your mode is L2, which always asks for an ID. New accounts start on L2.
- In L1, users whose estimated age is below your challenge age are asked for an ID. A higher challenge age sends more users to the ID step.
- Your code sends
verificationModeorchallengeAge, which override the Dashboard settings. Validate Session shows the values each session used.
See Age policy and verification modes.
The verification page does not load or shows an error
| What the user sees | Cause | Fix |
|---|---|---|
| An "invalid" or "expired" session message | The link is older than 10 minutes, or was changed. | Create a new session. Use verifyUrl exactly as returned; only add lang, skip_intro or auto_return. |
| The camera does not start | Camera permission denied, another app using the camera, or the page embedded in a frame without camera permission. | Ask the user to allow camera access, or open verification in its own tab instead of a frame. |
| A popup does not open (SDK new-tab mode) | Popup blocker. | Ask the user to allow popups, or use redirect mode. |
| The SDK button does nothing | The SDK script did not load (blocked by an extension or network). | Check the browser console. Show a fallback message when SafePassage is undefined. |
Webhook tests fail or the endpoint is paused
| Result of Test | Cause | Fix |
|---|---|---|
401 | Your receiver rejects the signature: the secret on your server is not this endpoint's secret, or the HMAC is computed over parsed JSON instead of the raw body. | Regenerate the secret, update your server, and hash the raw body. See Verify the signature. |
404 | Wrong path, or (WordPress) pretty permalinks are off. | Check the URL. Open it in a browser to confirm it exists. |
403 or an HTML challenge page | A firewall, CDN bot protection or security plugin blocks the request. | Allow POST requests to the endpoint path. |
| Timeout | Your receiver takes longer than 15 seconds. | Respond 2xx first, then do slow work in the background. |
| Rejected when saving the URL | The URL is not HTTPS, or resolves to a private or local address. | Use a public HTTPS address; use a tunnel for local testing. |
Endpoint paused: after an hour of rejections or 24 hours of failures, delivery pauses and every Dashboard page shows a notice. You are not emailed. Fix the cause, click Test and resume, then Redeliver to send the events of the last 7 days that were not delivered. Results are always available from Validate Session meanwhile. See Endpoint health.
Duplicate events: delivery is at least once. Deduplicate by eventId.
Your receiver accepts requests without a signature: fix this before launch. Anyone can send such requests. See Webhooks.
Validate Session errors
| Response | Cause | Fix |
|---|---|---|
401 Private API key required for session validation | A publishable key (pk_) was used. | Use the secret key, on your server. |
401 Private API key is not authorized | The secret key was revoked or expired. | Create a new key pair and update your server. |
404 Session not found | Unknown session ID, or a session from another account. | Use the sessionId your server stored, with the same account's key. |
400 Session has expired | The session ended unfinished after 10 minutes. | Offer a new attempt. |
429 | More than 100 validations per minute across your account. | Do not poll in a tight loop. Validate when the user returns, and use webhooks. |
Contact support
Email support@safepassageapp.com, or use Support in the Dashboard. Include:
- the
sessionIdand the approximate time (with time zone); - what the user saw, or the exact HTTP status and error message your server received;
- whether you use the server integration, the JavaScript SDK or WordPress.
Never send API keys, webhook signing secrets, or images of users' IDs.