Concepts
CAMARA, authentication and the conventions shared across the APIs.
CAMARA APIs
CAMARA is the open standard for turning operator network capabilities into plain REST APIs. PAiCore implements that surface, so you integrate the standard once and reach the network through us.
CAMARA is an open-source project under the Linux Foundation, and the API set behind the GSMA Open Gateway initiative. Writing to the standard means your integration is portable: the same request shape works across operators and deployments.
Two ways to integrate
Every API here can be consumed two ways. Pick per product and per client:
| Path | What it is | Best for |
|---|---|---|
| Web (HTTP) | Call the REST endpoints directly from your backend with OAuth2. No dependency to add. | Any API, any language. The only option for SIM Swap and other backend APIs. |
| PAiCore SDK | For Number Verification on Android, our SDK performs the device-side step (the mobile-data authorization) so your app writes a few lines. | Mobile apps doing Number Verification, where the check must leave from the handset. |
Authentication
OAuth2 comes in two consent models. Three-legged authenticates the subscriber on each call. Two-legged uses client_credentials with the subscriber named in the request body.
| Model | How it works | Used by |
|---|---|---|
| Three-legged | Authorization Code + PKCE. The subscriber is authenticated on each call. | Number Verification |
| Two-legged | client_credentials. The subscriber is named in the request body. | SIM Swap and other backend APIs |
A data-privacy dpv: purpose is required on every call. It states why the data is used and must be one your client is authorized for.
Conventions
Conventions shared across the APIs:
- REST and JSON, versioned paths. For example
/number-verification/v1and/sim-swap/v2. Use the URL version shown here. - OAuth2, in two consent models. Three-legged authenticates the subscriber on each call (Number Verification: Authorization Code + PKCE). Two-legged uses
client_credentialswith the subscriber named in the request body (SIM Swap and other backend APIs). - A data-privacy purpose on every call. A
dpv:purpose states why the data is used and must be one your client is authorized for. - E.164 numbers.
phoneNumberandlogin_hintcarry the full international form, for example+351960000000. - Correlation header. Send
x-correlatoron each call; it is echoed back and used end to end for tracing a request. - One base URL. A deployment exposes everything under its public API host. The exact OAuth endpoints are advertised in each API's discovery document.
Throughout these pages $API is your deployment's base URL (for example https://api.<deployment>), and $CLIENT_ID / $CLIENT_SECRET are the confidential client issued to you. They stay on your server.