API Documentation
API Access: Use our RESTful API to integrate LicenZer with your applications.
Authentication
All API requests require authentication using your reseller token or API key.
Reseller Token
Include your reseller token in the request:
curl -X GET "https://yourdomain.com/resellerapi/getlist?token=YOUR_RESELLER_TOKEN"
Admin API Key
For admin-level operations, use the API key:
curl -X GET "https://yourdomain.com/api/reseller/getplans?api_key=YOUR_API_KEY"
Base URLs
| Endpoint Type | Base URL | Authentication |
|---|---|---|
| Reseller API | /resellerapi |
Reseller Token |
| License API | /api |
License-based |
| Admin API | /api/reseller |
API Key |
Reseller API Endpoints
Get License List
Endpoint: GET /resellerapi/getlist
Description: Retrieve all licenses for your reseller account.
Parameters:
token(required): Your reseller token
Example Request:
curl "https://yourdomain.com/resellerapi/getlist?token=YOUR_TOKEN"
Example Response:
{
"success": true,
"licenses": [
{
"id": 1,
"license_key": "ABC-123-XYZ",
"ip": "192.168.1.1",
"software": "cpanel",
"status": 1,
"end_at": "2025-12-31"
}
]
}
Register License
Endpoint: GET /resellerapi/register
Description: Create a new license.
Parameters:
token(required): Your reseller tokenkey(required): Software key (e.g., cpanel)ip(required): Server IP addressmonth(required): Duration in months (1-12)
Example Request:
curl "https://yourdomain.com/resellerapi/register?token=YOUR_TOKEN&key=cpanel&ip=192.168.1.1&month=1"
Get Balance
Endpoint: GET /resellerapi/getblanace
Description: Check your current balance.
Parameters:
token(required): Your reseller token
Example Response:
{
"success": true,
"balance": 150.50,
"currency": "USD"
}
License Management
Activate License
GET /resellerapi/activate?token=YOUR_TOKEN&license_key=LICENSE_KEY
Deactivate License
GET /resellerapi/deactivate?token=YOUR_TOKEN&license_key=LICENSE_KEY
Change IP
GET /resellerapi/changeiplicense?token=YOUR_TOKEN&license_key=LICENSE_KEY&newip=NEW_IP
Delete License
GET /resellerapi/delete?token=YOUR_TOKEN&license_key=LICENSE_KEY
Error Handling
All API endpoints return JSON responses with a success field:
Success Response:
{
"success": true,
"message": "Operation completed successfully",
"data": { ... }
}
Error Response:
{
"success": false,
"error": "Error message here"
}
Security: Never share your API token or key publicly. Keep them secure!