Skip to content

CAMARA network APIs: the operator as a developer platform

B2Bnetwork team · · 6 min

IT in telecom

In brief

CAMARA is an open source project under the Linux Foundation that defines common APIs for operator networks: for example, checking whether a number recently had its SIM card swapped, confirming a phone number without an SMS code, or requesting better connection quality for the duration of a session. A bank or an app writes the integration once and can run it with many operators. Behind it, the operator has to build an exposure layer: an API gateway, authentication and consent, connections to the network and BSS, per-call billing and monitoring.

What CAMARA is and why it matters to operators

Operators have long had data and capabilities that companies in other industries are willing to pay for: they know when a SIM card was replaced, which number belongs to a device on the network, whether a phone is roaming. Until recently, each operator exposed them differently, so a bank that wanted to use them in several countries had to write several integrations.

CAMARA standardizes these interfaces. The project runs under the Linux Foundation, the API definitions and reference implementations are licensed under Apache 2.0, and the requirements are aligned with a group of GSMA member operators (the Operator Platform Group). Each API has its own repository with an OpenAPI definition, documentation and test scenarios, and versions are published together in the project's regular release cycles.

For the operator, this means a new kind of customer: a developer who pays per API call rather than for a subscription. For the IT team, it means a new product with availability, security and billing requirements that relies on data from the network and the BSS.

Example APIs and who uses them

API (CAMARA repository)The question it answersTypical user
SIM Swapwhether and when the number changed its SIM card, for example in the last 24 hoursbanks, payments, shops at login and transfer
Number Verificationwhether the number the user typed is the number of the device connecting to the networkapps at registration and login
Device Swapwhether the number is now used in a new devicefraud teams
KYC Matchwhether the data a customer provided matches the subscriber data held by the operatorbanks and fintechs at account opening
Device Roaming Status, Device Locationwhether the device is roaming, whether it is in a given areatransaction checks, logistics
Quality on Demandrequesting better transmission quality for a device for a set timelive video, remote control, gaming

The SIM Swap API has two basic operations: retrieving the date of the last SIM change and checking whether a change happened within a given period (the `maxAge` parameter, from 1 to 2400 hours in the specification). An operator can limit this period because of privacy rules and then returns an error with an explanation. How a bank uses this signal to protect customers is covered in SIM swap fraud at an operator.

What the operator has to build

A single simple call hides several layers:

  1. An API gateway with rate limits, partner keys, versioning and a call log.
  2. Authentication and consent. The CAMARA security profile uses OpenID Connect (the authorization code flow with network-based authentication, and CIBA) and OAuth 2.0 (client credentials, JWT Bearer). With network-based authentication, the operator recognizes the subscriber from the connection on its own network, and the token is issued for that number.
  3. Translation to the network and the BSS. SIM Swap reads SIM replacement history from the ordering system or the SIM inventory, Number Verification uses information from the core network, and Quality on Demand requests a quality policy in the network. In 5G, access to network functions goes through the Network Exposure Function (NEF), whose APIs are defined in 3GPP TS 29.522.
  4. Billing. Each call is recorded as a charging event for the partner, priced according to the API and the contract.
  5. Partner management. App registration, a sandbox with fictitious data, documentation, contracts and a contact point for incidents.

The API response has to be fast, because a bank checks SIM Swap during login or a transfer. If SIM replacement history lives in a system that responds in seconds, it has to be moved in advance into a fast, event-fed store. Where TM Forum standards fit into this picture is explained in TM Forum Open APIs.

Consent, personal data and response scope

Some APIs return information about a specific person, so the operator has to establish a legal basis under the GDPR: whether subscriber consent is required or another basis applies, such as fraud prevention. The CAMARA repository on identity and consent describes how to collect, store and withdraw consent throughout its lifecycle.

Good practice is a minimal response. SIM Swap in its `check` variant returns only "yes or no" for the given period. KYC Match returns whether fields match, not the subscriber's data. The less data reaches the partner, the simpler the risk assessment and the fewer questions from the data protection officer.

How to test network APIs

  • Conformance with the definition. Responses are checked automatically against the OpenAPI definition from the CAMARA repository, including error codes and their content.
  • Scenarios from the repository. The project publishes test scenarios in `.feature` files, for example for checking and retrieving the SIM swap date. This is a ready set of cases that the operator extends with its own.
  • Test data in the network. Tests need numbers with a controlled history: SIM replaced an hour ago, a year ago, never, a number ported from another operator, an inactive number.
  • Negative cases. A token for a different number, expired consent, exceeded rate limit, `maxAge` outside the allowed range.
  • Performance and availability. Response time during the banking login peak and behavior when the source system is unavailable.

The API contract and partner documentation are best kept in a single interface catalog, as discussed in API documentation with OpenAPI and AsyncAPI. B2Bnetwork engineers design and build the integration layer between the gateway, the network, the BSS and billing as part of system integration.

Questions and answers

How is CAMARA different from TM Forum Open APIs?

TM Forum Open APIs are mainly used to integrate systems inside the operator and with its business partners: catalog, orders, bills, tickets. CAMARA defines the APIs through which the operator exposes network capabilities to outside developers: number verification, a SIM swap signal, connection quality. Operators usually use both.

Are CAMARA APIs free?

The API definitions and reference implementations are available under the Apache 2.0 license, so operators and developers can use them without license fees. Calling the API at an operator is a service that the partner usually pays for under a contract, directly or through an intermediary.

Does the SIM Swap API replace SMS codes in banking?

It does not replace them, it complements them. The bank checks whether the SIM card was recently replaced and, if so, does not send an SMS code or requires additional verification. Number Verification, on the other hand, can confirm a number without an SMS code because it relies on authentication through the operator's network.

How long does it take to expose the first CAMARA API?

It depends mainly on where the data lives and whether the operator already has an API gateway that supports OpenID Connect. The first API requires building the shared layers: authentication, consent, billing and partner management. Later APIs reuse those layers, so they take less time.

Changing an operator's systems? Talk to an engineer who has done it in night windows.

Let's talk

Read more: IT in telecom

All in IT in telecom →