v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
Variables
Login Information

Return web server's hostname

This function retrieves a web server's hostname.

get/Variables/get_session_information

Query parameters

name'host'
Example:host

The web server environment variable to retrieve. You can only retrieve the web server's hostname.

  • host is the only possible value.

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "get_session_information",
  "module": "Variables",
  "result": {
    "data": {
      "host": "example.com"
    },
    "status": 1
  }
}