Server Administration
System Information
Return server's hostname
This function retrieves the server's hostname. WebPros Dashboard uses this function to discover the WHM API endpoint.
get/wp_dashboard_get_hostname
Response
HTTP Request was successful.
Example response
{
"data": {
"hostname": "hostname.example.com"
},
"metadata": {
"command": "wp_dashboard_get_hostname",
"reason": "OK",
"result": 1,
"version": 1
}
}