accountsummary
Show Eenos Account Summary
To find the Eenos hosting account details.
Required Headers
| Field | Description | Example |
| X-RESELLER | The reseller account user name | alphareseller |
| X-API-USER | API user name | eenos_api |
| X-API-PASSWORD | API user password | eenos123 |
Required Parameters
| Field | Description | Example |
| user | Eenos account user name | myclient |
Status Codes
| Code | Description |
| 200 | OK, Success |
| 500 | Server Error |
| 403 | Forbidden |
| 400 | Bad request |
Request URL
Post url = /accountsummary/
Default Full URL = https://your-host-name:4444/api/accountsummary/
Version Full URL = https://your-host-name:4444/api/v1/accountsummary/
Sample Curl Code
#!/bin/bash
REQUEST_URL="/accountsummary/"
BASE_URL="https://your-host-name:4444/api/v1"
# Default base URL
# BASE_URL="https://your-host-name:4444/api"
# Version specific base URL (recommended)
# BASE_URL="https://your-host-name:4444/api/v1"
API_URL="$BASE_URL$REQUEST_URL"
/usr/bin/curl -X POST "$API_URL" \
-H "X-RESELLER: alphareseller" \
-H "X-API-USER: eenos_api" \
-H "X-API-PASSWORD: eenos123" \
-d "user=myclient"
Sample Output
{
"data" : {
"acct" : {
"addondomains" : "unlimited",
"bandwidth" : "unlimited",
"bandwidth_usage": 8,
"contactemail" : "contact@myclientsite.com",
"dedicatedip" : {
"ipv4" : "1xx.xx.xxx.xxx",
"ipv6" : "2a01:0xxx:0xxx:xxxx:0000:0000:0000:0017",
"status" : "off",
"status6" : "off"
},
"dkim" : "off",
"domain" : "myclientsite.com",
"email" : "unlimited",
"feature" : "Default",
"ftp" : "unlimited",
"homedir" : "/home/myclient",
"is_reseller" : "no",
"is_suspended" : "no",
"language" : "en",
"maillist" : "unlimited",
"mailquota" : "unlimited",
"mailserver" : "local",
"nameservers" : [
"ns1.eenos.com",
"ns2.eenos.com"
],
"owner" : "root",
"package" : "Brownse",
"parkeddomains" : "unlimited",
"quota" : "unlimited",
"quota_usage": 372,
"reseller" : {
"selfown" : "off",
"status" : "off"
},
"setuptime" : "2022-12-13 01:31",
"shell" : {
"shell" : "/sbin/nologin",
"status" : "off"
},
"spf" : "off",
"sql" : "unlimited",
"subdomains" : "unlimited",
"theme" : "default",
"user" : "myclient"
}
},
"info" : "Hosting account summary of user myclient",
"status" : 200
}
Python Code
#!/usr/bin/python3
import requests
from pprint import pprint
# ---------------------------------------------------------------------
# API VERSION RULES
# ---------------------------------------------------------------------
# Default API (stable):
# https://your-host-name:4444/api/
#
# Versioned API (recommended for production / future compatibility):
# https://your-host-name:4444/api/v1/
#
# Endpoint example:
# accountsummary/
# Full versioned URL:
# https://your-host-name:4444/api/v1/accountsummary/
#
# Use versioned endpoints when API structure may change across releases.
# ---------------------------------------------------------------------
# API URL (versioned)
api_url = "https://your-host-name:4444/api/v1/accountsummary/"
# If using default API, uncomment below:
# api_url = "https://your-host-name:4444/api/accountsummary/"
# Authentication headers (new API format)
headers = {
"X-RESELLER": "alphareseller",
"X-API-USER": "eenos_api",
"X-API-PASSWORD": "eenos123",
}
# Payload data
data = {
"user": "myclient"
}
try:
response = requests.post(api_url, headers=headers, data=data)
response.raise_for_status()
pprint(response.json())
except Exception as e:
pprint(str(e))
PHP Code
<?php
/*
|--------------------------------------------------------------------------
| API VERSION RULES
|--------------------------------------------------------------------------
| Default API (stable):
| https://your-host-name:4444/api/
|
| Versioned API (recommended for production / future compatibility):
| https://your-host-name:4444/api/v1/
|
| Endpoint example:
| accountsummary/
| Full versioned URL:
| https://your-host-name:4444/api/v1/accountsummary/
|--------------------------------------------------------------------------
*/
// API request URL (versioned)
$request_url = '/accountsummary/';
/*
|--------------------------------------------------------------------------
| BASE URL SELECTION
|--------------------------------------------------------------------------
*/
// Versioned API base URL
$base_url = 'https://your-host-name:4444/api/v1';
// Default API base URL (uncomment if needed)
// $base_url = 'https://your-host-name:4444/api';
// Full API URL
$api_url = $base_url . $request_url;
// POST payload
$fields = [
'user' => 'myclient'
];
// Initialize cURL
$ch = curl_init($api_url);
// Set options
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($fields));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// Authentication headers (new API format)
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'X-RESELLER: alphareseller',
'X-API-USER: eenos_api',
'X-API-PASSWORD: eenos123'
]);
// Execute request
$result = curl_exec($ch);
// Error handling
if (curl_errno($ch)) {
echo 'cURL Error: ' . curl_error($ch);
} else {
echo json_encode(json_decode($result), JSON_PRETTY_PRINT);
}
// Close connection
curl_close($ch);
?>