The encrypted proof (
encryptedMobileNumber) and operatorId are produced on the device by the Authmatech SDK after header enrichment. This guide assumes your client has already obtained them and forwarded them to your backend. For the browser flow end to end, see Web verification.The request
CallPOST /v1/api/verify from your backend with both auth headers.
Body fields
The number the customer claims, in E.164 format (e.g.
+962791234567).The encrypted proof of possession returned by the SDK. Authmatech decrypts and validates this against
mobileNumber.The mobile network operator that enriched the session (e.g.
ZAIN_JO, ORANGE_JO). Optional but recommended.The use case driving the verification. One of
REGISTRATION, LOGIN, RESET_PASS, UPDATE_DETAILS, or TRANSACTION. Used for analytics and risk context.Optional. The session id returned by the SDK after session registration. When present, the verification is linked to the stored device context so Shield and Detect can reason about it.
Query parameter
When
true, the response includes a masked copy of the confirmed number (e.g. ********67). This corresponds to the Verify N+ product and may be priced differently from a plain validity check.The response
The verdict.
true means the customer controls the number they presented.Present only when
maskMobile=true. A masked copy of the confirmed number for display or audit.Recommended flow
Collect the proof on the client
The SDK performs header enrichment and registers a session, giving you
encryptedMobileNumber, operatorId, and sdkSessionId.Forward to your backend
Send those values plus the claimed
mobileNumber to your own server over TLS. Never call Verify from the browser — the API key must stay server-side.Verify and act
Call
POST /v1/api/verify. On validNumber: true, continue the journey. On false, fall back to Stuck+ or a secondary check.Verify+ for mistyped numbers
Customers fat-finger digits, miss a number, or invert a pair. With most flows, that’s the end of the journey. Authmatech Verify+ keeps them moving by returning a secure, privacy-preserving identity hint — a masked copy of the confirmed number — without ever revealing full information. Verify+ is the same endpoint with?maskMobile=true:
********67) so the customer can confirm or correct their entry — guiding them back on track without exposing the full number. Verify+ may be priced differently from a plain validity check; check your plan.
Handling failure modes
| Situation | What you’ll see | What to do |
|---|---|---|
| Customer controls the number | 200, validNumber: true | Continue |
| Number doesn’t match the proof | 200, validNumber: false | Offer Verify+ as a hint, then Stuck+ or retry |
| No mobile data / Wi‑Fi only | SDK can’t produce a proof | Fall back to manual entry + Stuck+ |
| Missing/invalid credentials | 401 | Check X-API-KEY and X-CLIENT-ID |
| Product disabled or balance expired | 400 with a message | Check plan/balance; see Errors |
Related
API: Verify a number
Full reference with an interactive playground.
Web verification
The browser flow, end to end.