Version 2 API Overview
Modern REST API for sending airtime top-ups programmatically with API key authentication and standardized responses.
Version 2 API
The Click Airtime V2 API provides a clean, RESTful interface for sending airtime top-ups to 600+ networks in 140+ countries. Built for enterprise integrations with API key authentication and pre-funded wallets.
Base URL
https://api.clickairtime.com/v2
Authentication
All V2 API requests require an API key, generated from the Enterprise Portal. Include it as a Bearer token:
Authorization: Bearer ce_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
API keys use the ce_live_ prefix. Keep your keys secret — they grant direct access to your wallet balance.
Response Format
All responses follow a standardized envelope:
Success
{
"success": true,
"data": { ... },
"meta": {
"request_id": "req_a1b2c3d4e5f6",
"timestamp": "2026-10-13T13:20:03.466Z"
}
}
Success with Pagination
{
"success": true,
"data": [ ... ],
"meta": {
"request_id": "req_a1b2c3d4e5f6",
"timestamp": "2026-10-13T13:20:03.466Z",
"pagination": {
"page": 1,
"per_page": 20,
"total": 150,
"total_pages": 8,
"has_next": true,
"has_prev": false
}
}
}
Error
{
"success": false,
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "Your wallet balance is too low for this transaction.",
"details": {}
},
"meta": {
"request_id": "req_a1b2c3d4e5f6",
"timestamp": "2026-10-13T13:20:03.466Z"
}
}
Endpoints
| Method | Endpoint | Description |
|---|---|---|
GET | /v2/catalog/lookup | Look up products for a phone number or network |
GET | /v2/catalog/countries | List supported countries and networks |
GET | /v2/catalog/networks | List networks by country |
GET | /v2/catalog/products | List products for a network |
POST | /v2/topups | Send an airtime top-up |
GET | /v2/topups | List topup history |
GET | /v2/topups/:id | Get topup status |
GET | /v2/balance | Get all wallet balances |
GET | /v2/balance/:wallet_id | Get a specific wallet's balance |
Synchronous Top-ups
POST /v2/topups is synchronous: it returns the final status of the top-up in the same call (201 with status: "completed", or an error such as DELIVERY_FAILED). Calls can take up to about 15 seconds, so set a client timeout of at least 30 seconds. To re-check a transaction later, use GET /v2/topups/:id, or GET /v2/topups?reference=... to find it by your own reference.
Idempotency and Duplicate Prevention
Send an Idempotency-Key header (for example a UUID) with every POST /v2/topups. Repeating a request with the same key within 24 hours returns the original transaction without charging your wallet again — this makes it safe to retry after a timeout. If you omit the header, the API falls back to a body-derived duplicate check with a 5-minute window. See Send Airtime.
Rate Limits
Limits apply per API key: by default 60 requests per minute, and at most 100 requests per second. Limits can be raised on request.
Every authenticated response includes rate limit headers:
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 58
X-RateLimit-Reset: 1791897960
X-RateLimit-Reset is the Unix time (in seconds) when the current one-minute window resets. Over the limit, the API returns 429 RATE_LIMIT_EXCEEDED with a Retry-After header (seconds). See the Rate Limits guide.
