Introduction
Sell Naara eSIM data and verification numbers from your own app, with a plain REST API and prepaid wholesale pricing.
You call the API, you pay a prepaid wholesale price, and you relay the delivery to your customer: a QR code or activation string for an eSIM, or a phone number plus the code that arrives for it.
What you can build
- eSIM data plans for 190+ countries, plus Naara Connect Full eSIMs (calls, SMS and data on one eSIM).
- Verification numbers for one-time codes, quoted live for the country and service you ask for.
- A storefront without code: paste one snippet, or install the WordPress plugin, and Naara hosts the checkout for you.
How it fits together
-
1
Get a key
Create an API client in your Developer area and choose its scopes:
catalogue,quote,order,status. -
2
Top up
Orders draw down your prepaid API balance in USD. An empty balance returns
402and provisions nothing. -
3
Call the API
List plans, quote a price, place an order with a unique
reference, then poll the order until it iscompleted.
The Developer API is switched on by the platform operator
If every request returns 404, the API has not been enabled on this install yet. Ask the operator to turn it on.
curl https://naara.app/api/v1/catalogue \
-H "Authorization: Bearer $NAARA_KEY"
<?php
require 'vendor/autoload.php';
$client = new GuzzleHttp\Client(['base_uri' => 'https://naara.app/api/v1/']);
$response = $client->get('catalogue', [
'headers' => ['Authorization' => 'Bearer ' . getenv('NAARA_KEY')],
]);
echo $response->getBody();
const res = await fetch("https://naara.app/api/v1/catalogue", {
headers: {
Authorization: `Bearer ${process.env.NAARA_KEY}`,
},
});
console.log(await res.json());
import os
import requests
res = requests.get(
"https://naara.app/api/v1/catalogue",
headers={"Authorization": f"Bearer {os.environ['NAARA_KEY']}"},
)
print(res.json())
{
"data": [
{
"id": 12,
"name": "Nigeria 5GB / 30 days",
"type": "local",
"has_voice": false,
"data_mb": 5120,
"validity_days": 30,
"countries": [
"NG"
],
"price_usd": 11.0,
"currency": "USD"
}
]
}