📡 API Documentation
Integrate Invoisa license validation into your application.
🔐 Authentication
All API requests require a valid license key passed as a query parameter or in the request body.
GET /api/license/validate?key=YOUR_LICENSE_KEY&domain=yourdomain.com
✅ Validate License
GET
/api/license/validate
Parameters
| Param | Type | Required | Description |
|---|---|---|---|
| key | string | Yes | Your license key |
| domain | string | Yes | Domain to validate against |
Success Response (200)
{
"valid": true,
"license": {
"key": "XXXX-XXXX-XXXX",
"plan": "Professional",
"domain": "yourdomain.com",
"expires_at": "2025-12-31",
"status": "active"
}
}
Error Response (403)
{
"valid": false,
"message": "License is expired or domain mismatch."
}
🔑 Activate License
POST
/api/license/activate
Parameters
| Param | Type | Required | Description |
|---|---|---|---|
| key | string | Yes | Your license key |
| domain | string | Yes | Domain to bind |
{
"success": true,
"message": "License activated for yourdomain.com"
}
⚡ Rate Limits
API requests are rate-limited to 60 requests per
minute per IP. Exceeding this will return a 429 Too Many Requests response.
💻 Quick Integration (PHP)
$response = file_get_contents(
'https://yourdomain.com/api/license/validate?' .
http_build_query([
'key' => 'YOUR_LICENSE_KEY',
'domain' => $_SERVER['HTTP_HOST'],
])
);
$data = json_decode($response, true);
if ($data['valid'] ?? false) {
// License is valid — proceed
} else {
die('Invalid license: ' . ($data['message'] ?? 'Unknown error'));
}