Click Airtime

Authentication

Authenticate with the Click Airtime V1 API using header-based email and token credentials.

Version 1 API (v1.4) — This API is in maintenance mode. New integrations should use the Version 2 API which provides API key authentication.

Overview

The V1 API uses header-based authentication. Every request must include two custom headers containing your account email and API token.

Required Headers

HeaderDescription
X-Click-Airtime-EmailThe email address Click Airtime registered for your V1 integration
X-Click-Airtime-TokenThe API token Click Airtime issued for that email, e.g. C8000000-000G-4474-0001-J0000

Getting Your Credentials

V1 credentials are provisioned by the Click Airtime team — there is no self-service signup or dashboard for generating V1 API tokens.

  1. Contact your Click Airtime account manager (or support@clickairtime.com) to request V1 API access
  2. Once approved, your X-Click-Airtime-Email and X-Click-Airtime-Token are issued and delivered to you securely via the Click Airtime portal or email
  3. Use those values as-is in every request — no further setup is required

Need to rotate or revoke a token? Reach out to your Click Airtime contact — token issuance, rotation, and revocation are all handled on our side. New integrations should adopt the Version 2 API, which supports self-service API key management.

Keep your token secret. Never expose your API token in client-side code, public repositories, or browser requests. Always make API calls from your server.

Code Examples

curl -X GET https://api.clickairtime.com/adp/balances \
  -H "X-Click-Airtime-Email: your@email.com" \
  -H "X-Click-Airtime-Token: your-api-token"
const headers = {
  'X-Click-Airtime-Email': 'your@email.com',
  'X-Click-Airtime-Token': 'your-api-token',
};

const response = await fetch('https://api.clickairtime.com/adp/balances', {
  headers,
});

const data = await response.json();
console.log(data);
import requests

headers = {
    'X-Click-Airtime-Email': 'your@email.com',
    'X-Click-Airtime-Token': 'your-api-token',
}

response = requests.get(
    'https://api.clickairtime.com/adp/balances',
    headers=headers,
)

print(response.json())

Authentication Errors

If your credentials are missing or invalid, the API returns a 401 Unauthorized response:

{
  "message": "Invalid or missing authentication credentials",
  "statusCode": 401
}

Common Issues

ProblemSolution
401 UnauthorizedVerify your email and token are correct
Token not working after resetRegenerate the token in your dashboard and update your integration
Header names are case-sensitiveEnsure exact casing: X-Click-Airtime-Email and X-Click-Airtime-Token