Introduction
Welcome to the MinatPay API.
You can use our API to access MinatPay endpoints, allowing you to automate data purchases and integrate our services into your application.
- Get User Details
- Purchase Airtime
- Purchase Data
- Fetch Available Plans
- Automate Transactions
🔑 Authentication & API Access
To use the MinatPay API, you need your API credentials.
👉 Where to get your API details:
- Login to your MinatPay account
- Go to Profile
- Navigate to the API tab
- Copy your API credentials
These credentials will be used to authenticate all API requests.
🌐 Base URL
All API requests must be made using the base URL below:
🧠 How It Works
MinatPay API endpoints allow you to:
- Fetch available data plans (/getplans)
- Purchase data (/data)
All requests must include proper authentication headers.
Get User Details
This endpoint allows you to retrieve your account details including balance, username, and API key.
Endpoint:
Headers
Response
Response Fields
| Field | Description |
|---|---|
| balance | User wallet balance |
| username | Account username |
| apikey | User API key |
Buy Airtime
This endpoint allows you to purchase airtime for all supported networks.
Endpoint
Headers
Request Body
Request Parameters
| Parameter | Type | Description |
|---|---|---|
| amount | number | Amount to recharge (100 – 5000) |
| phone | string | 11-digit phone number |
| airtime_type | string | Must be vtu |
| network_id | number | 1 = MTN, 2 = GLO, 3 = Airtel, 4 = 9mobile |
Success Response
Failed Response
Get Data Plans
This endpoint allows you to retrieve available data plans. You can fetch all plans or filter by a specific network.
Endpoint:
Optional Query Parameters
You can filter results by network:
| Parameter | Description | |
|---|---|---|
| network | Filter by network | mtn, glo, airtel, 9mobile |
Example Requests
Get all plans:
Filter by network (MTN):
Response
Buy Data
Endpoint:
Headers
Request Body
Success Response
Coming Soon
- Airtime API
- Cable TV API
- Electricity API
- Wallet Funding
MinatPay is continuously expanding its API capabilities.