New here? Create your account
Complete API reference for resellers. Default discount starts at 0% and can be increased after demonstrating volume.
All API requests require authentication via the X-Reseller-Key header.
X-Reseller-Key: your_api_key_here
Keep your API key secret. Never expose it in client-side code.
https://servury.com/api/reseller.php
All endpoints return JSON. Successful responses have {"success": true, "data": {...}}. Errors return {"success": false, "error": "message"}.
List available VPS plans with your reseller pricing.
List available server locations.
List available operating systems.
Get reseller account information (balance, discount, payment method).
List all servers owned by the reseller.
Get detailed information for a specific server.
{
"success": true,
"data": {
"server": {
"id": "abc12345",
"hostname": "myserver",
"ip_address": "192.168.1.1",
"os": "ubuntu24",
"plan": "S-100",
"location": "USA",
"status": "active",
"username": "root",
"password": "serverpassword123",
"created_at": 1770120714,
"expiration_date": 1772712714
}
}
}
Get noVNC console URL for a server.
Provision a new VPS server. This will charge your account.
Renew/extend a server subscription.
Permanently delete a server (no refund).
Execute power actions on a server.
Reinstall the operating system (wipes all data).
Update server hostname.
Change server IP address.
Upgrade server to a higher plan (paid, prorated). Servers can only be upgraded within their product line.
Servers can only be upgraded within their product line. Cross-line upgrades are not supported.
All errors return a JSON object with success: false and an error message.
{
"success": false,
"error": "Invalid or inactive API key."
}
{
"success": false,
"error": "Server not found."
}
{
"success": false,
"error": "Invalid hostname. Use 3-63 alphanumeric characters."
}
<?php
$apiKey = "your_api_key_here";
$baseUrl = "https://servury.com/api/reseller.php";
function apiRequest($endpoint, $apiKey, $method = 'GET', $data = null) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $endpoint);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"X-Reseller-Key: $apiKey",
"Content-Type: application/json"
]);
if ($method === 'POST') {
curl_setopt($ch, CURLOPT_POST, true);
if ($data) {
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
}
}
$response = curl_exec($ch);
curl_close($ch);
return json_decode($response, true);
}
// Get available plans
$plans = apiRequest("$baseUrl?action=plans", $apiKey);
// Create a server
$newServer = apiRequest("$baseUrl?action=create", $apiKey, 'POST', [
'plan_id' => 5,
'hostname' => 'myserver',
'os' => 'ubuntu24',
'days' => 31
]);
// Power cycle a server
$result = apiRequest("$baseUrl?action=power&id=abc12345", $apiKey, 'POST', [
'action' => 'restart'
]);