Authentication
All API requests require authentication using your API Key and a signature generated from your API Secret.
Getting Your Credentials
- Login to your Reseller Dashboard
- Go to Settings → API Keys
- Copy your API Key and API Secret
Never share your API Secret publicly. Keep it server-side only. If compromised, regenerate it immediately from your dashboard.
Signature Generation
Every request must include a sign parameter. The signature is an MD5 hash of your credentials combined with a request-specific key.
sign = MD5(api_key + api_secret + ref_id)
- For balance check:
ref_id = "balance"
- For price list:
ref_id = "pricelist"
- For transactions:
ref_id = your unique reference ID
Examples
const crypto = require('crypto');
const apiKey = 'your-api-key';
const apiSecret = 'your-api-secret';
const refId = 'your-unique-ref-id';
const sign = crypto
.createHash('md5')
.update(apiKey + apiSecret + refId)
.digest('hex');
All requests must include:
Content-Type: application/json
Request Body
Every request body must contain:
| Field | Type | Required | Description |
|---|
api_key | string | Yes | Your API key from the dashboard |
sign | string | Yes | MD5 signature (see above) |
IP Whitelisting (Optional)
For additional security, you can whitelist specific IP addresses in your dashboard. Only requests from whitelisted IPs will be accepted.