Developer Docs
Designed for developers
Ship faster with our powerful and easy-to-use APIs.
API Endpoints
Our REST API is the core of the system. You can interact with it from any programming language that can make HTTP requests.
Supported Languages
Code examples are provided in PHP (cURL), Python (Requests), and JavaScript (Fetch). The API will work with any language.
Endpoint: Verify License
Checks if a license key is valid, active, and belongs to the specified product.
POST /api/v1/license/verify
Parameters
license_key
(string, required) - The user's license key.product_sku
(string, required) - The unique SKU of your product.
Example Request (Python)
import requests
api_url = 'https://license-master.ruptechnologies.com/api/v1/license/verify'
payload = {
'license_key': 'LMS-XXXX-XXXX-XXXX',
'product_sku': 'YOUR-PRODUCT-SKU'
}
response = requests.post(api_url, data=payload)
if response.status_code == 200:
print("License is valid!")
print(response.json())
else:
print("License is invalid or error occurred.")
print(response.json())
Success Response (200 OK)
{
"success": true,
"message": "License is valid.",
"data": {
"status": "active",
"expires_at": null,
"activations_count": 0,
"activation_limit": 1
}
}
Endpoint: Activate License
Activates a license key and links it to a specific domain. This counts against the activation limit.
POST /api/v1/license/activate
Parameters
license_key
(string, required)product_sku
(string, required)domain
(string, required) - The domain of the site where the license is being activated (e.g., `https://example.com`).
Example Request (JavaScript)
const apiUrl = 'https://license-master.ruptechnologies.com/api/v1/license/activate';
const payload = new URLSearchParams({
'license_key': 'LMS-XXXX-XXXX-XXXX',
'product_sku': 'YOUR-PRODUCT-SKU',
'domain': 'https://example.com'
});
fetch(apiUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'Accept': 'application/json'
},
body: payload
})
.then(res => res.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));