Welcome to the API documentation. Learn how to integrate with our VTU platform.
Introduction
Welcome to the VTU API API documentation. This API allows you to programmatically purchase data bundles, airtime, pay electricity bills, manage virtual cards, and more.
Base URL
All API requests are made to:
https://example.com/api/
Features
- Data Purchase — Buy data bundles for all major networks
- Airtime Top-up — Send airtime to any mobile number
- Bill Payments — Pay electricity bills (prepaid & postpaid)
- Webhooks — Receive real-time transaction status notifications
- Push Notifications — Register devices for push notifications
Quick Start
- Create an account on the VTU API platform
- Generate an API token from the Developer Settings page
- Make your first request using the token in the
Authorizationheader
curl -X POST https://example.com/api/data \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{
"mobile_number": "08101234567",
"plan": "plan id eg (34)",
"network": 1
}'
SDKs & Tools
While we don't provide official SDKs yet, you can use any HTTP client in your preferred language:
| Language | Recommended Client |
|---|---|
| JavaScript | fetch, axios |
| PHP | Guzzle, cURL |
| Python | requests, httpx |
| Java | OkHttp, HttpClient |
| Dart/Flutter | http, dio |
Alternatively, if you prefer to use Postman for testing, you can access our comprehensive Postman API documentation here: Postman API Documentation
Need Help?
- Browse the full endpoint reference in the sidebar
- Check the Authentication guide
- Review Error Codes for troubleshooting