API

SIM Swap

Check whether a number's SIM changed recently, a strong account-takeover signal. A backend-only, two-legged call.

CAMARA 2.1.0Two-legged · client_credentialsBackend only
SIM Swap

Overview

SIM Swap tells you whether a number's SIM was changed recently, a strong signal of account-takeover risk.

It answers two questions: when the SIM last changed (retrieve-date), and whether it changed within a window you set (check). A recent swap right before a password reset or a high-value transfer is a classic takeover pattern, so a SIM Swap check complements Number Verification. SIM Swap is a backend API: it is two-legged and has no device step, so there is one integration path, web.

SIM Swap

Web integration

Two-legged: get a client_credentials token with the scope and purpose, then call the operation with the subscriber's number in the request body. No subscriber authentication step, no device.

1. Get a token

2. retrieve-date

When the SIM behind the number last changed (null if unknown).

200 OK

3. check

Whether the SIM changed within maxAge hours (1 to 2400; the operator's default applies when omitted).

200 OK
SIM Swap

Scopes & purposes

ScopeOperationReturns
sim-swap:retrieve-datePOST /retrieve-datelatestSimChange: timestamp or null
sim-swap:checkPOST /checkswapped: true or false for the window

Send one purpose your client holds: dpv:FraudPreventionAndDetection or dpv:EnforceSecurity. The subscriber's number goes in the request body as phoneNumber (a two-legged token does not carry it).

SIM Swap

Responses & errors

SignalMeaning & what to do
swapped: trueThe SIM changed within the window. Treat as elevated risk for the action at hand.
swapped: false / latestSimChange: nullNo recent change, or no change on record.
400 OUT_OF_RANGEmaxAge is outside 1 to 2400 hours. Rejected before the operator is called.
422 MISSING_IDENTIFIERNo phoneNumber in the body (a two-legged token cannot carry it). Send it.
403 / invalid_scopeToken lacks the operation scope or the purpose; customer not subscribed to sim-swap.
Judge a check against its own date

Operators maintain the change dates on their side. When you compare outcomes, read check against the date retrieve-date returns, not against a fixed value.

PAiCore Technology · SIM Swap · developer documentation.