API

Number Verification

Confirm a phone number over its mobile data session, with no SMS code and no password. Integrate by our SDK or directly over HTTP.

CAMARA 1.0.0Three-legged · Auth Code + PKCESDK or Web
Number Verification

Overview

Network-based Number Verification (NV1) proves a number by the mobile data session it is used from, not by a one-time code.

The subscriber's device reaches the authorization endpoint over cellular, the operator network confirms the data session's source address belongs to that number, and a short-lived authorization code comes back. Your backend redeems it and calls CAMARA verify, which answers true or false. You can integrate it two ways, both sharing the same backend flow: directly over HTTP, or with the Android SDK for the device step.

Number Verification

How it works

Three moves: your backend starts the request, the subscriber's device proves the number over mobile data, your backend finishes it.

Device / app Your backend PAiCore AS + network PAiCore gateway start(number) PAR: login_hint + PKCE request_uri authorization URL + state GET /authorize over mobile data network checks the source IP vs session 302: code (or access_denied) finish(code, state) token (PKCE) POST /verify (Bearer) devicePhoneNumberVerified
The authorization step is a silent redirect, not a browser screen, unless the operator's purpose requires consent. It runs on the subscriber's device over mobile data. The SDK and web paths differ only in who performs that step.
Number Verification

Web integration

Four calls. Steps 1, 3 and 4 are backend to backend; step 2 runs on the device over mobile data. Read exact endpoints from the discovery document rather than hardcoding paths. Throughout, $API is your deployment's base URL and $CLIENT_ID/$CLIENT_SECRET your confidential client.

discovery

1. Push the request (PAR)

Create a PKCE pair and a random state, then push the request with the number as login_hint. Keep the code_verifier for step 3.

201 Created

2. Authorize on the device (over mobile data)

Hand the device the authorization URL built from the request_uri. The device opens it over cellular and reads the redirect without following it.

GET /oauth2/authorize · on the device
The device, not your server

This step must leave from the subscriber's handset over mobile data, because that is what the operator correlates with the number. The Android SDK does exactly this; on another client you bind the request to the cellular network and read the 302 without following it.

3. Redeem the code (token)

4. Verify the number

200 OK

Sibling operation: device-phone-number

When you need the number itself rather than a yes or no, call device-phone-number under the number-verification:device-phone-number:read scope.

GET /number-verification/v1/device-phone-number
Number Verification

Android SDK

The PAiCore Number Verification SDK handles the one step that must run on the device, the mobile-data authorization, and nothing else. Your backend keeps the same two responsibilities as the web flow (start and finish); the SDK never holds a secret and never persists or logs the number.

Add it

build.gradle.kts

minSdk 24. Two normal permissions (ACCESS_NETWORK_STATE, CHANGE_NETWORK_STATE) are granted at install, with no runtime prompt.

Verify a number

Implement Nv1Backend with two calls to your own server (the web flow's start and finish), point the SDK at the Authorization Server, then call verifyNumber.

Kotlin
Full SDK reference

Artifact coordinates, the dependency-free reference backend and the device-side details are on the Android SDK page.

Number Verification

Scopes & purposes

ScopeOperationReturns
number-verification:verifyPOST /verifydevicePhoneNumberVerified: true or false
number-verification:device-phone-number:readGET /device-phone-numberdevicePhoneNumber: the device's number

Send one data-privacy purpose, from those your client holds:

PurposeTypical use
dpv:FraudPreventionAndDetectionConfirm the number at a sign-in, payment or transfer.
dpv:IdentityVerificationBind the number to an identity during onboarding or KYC.
dpv:IdentityAuthenticationRe-confirm the number as an authentication factor.
One purpose per request

Send exactly one dpv: purpose alongside the functional scope. An unauthorized purpose, or more than one, is rejected with invalid_scope.

Number Verification

Responses & errors

WhereSignalMeaning & what to do
verify 200devicePhoneNumberVerified: trueThe session belongs to the number. Proceed.
verify 200devicePhoneNumberVerified: falseIt does not. Treat as not verified; decide the fallback as a product choice.
authorizeerror=access_deniedThe network could not confirm the number over this session. Relayed so you can fall back.
authorizeerror=login_requiredThe operator needs an interactive step this silent path cannot do. Relayed for fallback.
PAR / tokeninvalid_scopeThe purpose is not one the client holds, or more than one was sent.
PAR / tokeninvalid_clientClient authentication is wrong. Check id, secret and redirect URI.
verify403 / 404Token lacks the scope or customer not subscribed (403); wrong path or version (404, use /v1).
No silent fallback

When the number cannot be confirmed over mobile data, the platform returns an honest negative or error. Trying an SMS code or another method is your product decision, not a platform default.

PAiCore Technology · Number Verification · developer documentation.