latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

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
  }
}