Return domain owner

This function lists the owner of a domain.

SecurityBasicAuth
Request
query Parameters
domain
required
string <domain>

A domain on the system that is owned by the user calling this function.

Example: domain=example.com
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/getdomainowner
Request samples
whmapi1 --output=jsonpretty \
  getdomainowner \
  domain='example.com'
Response samples
application/json
{
  • "data": {
    • "user": "username"
    },
  • "metadata": {
    • "command": "getdomainowner",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}