v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
DomainLookup

List the domains that have their own DNS zone

This function lists the cPanel account's base domains: the primary domain, its addon domains and its parked domains.

Note:

Subdomains are not base domains and this function does not return them. Use the SubDomain::listsubdomains function for those.

get/DomainLookup/getbasedomains

Query parameters

return_temporary_domain0 | 1
Example:1

Whether to include the account's temporary domains in the result.

  • 1 - Include temporary domains.
  • 0 - Exclude temporary domains.

Response

HTTP Request was successful.

errorsstring[] nullable
messagesstring[] nullable
status0 | 1
  • 1 — Success.
  • 0 — Failed. Check the errors field for more details.
warningsstring[] nullable

Example response

{
  "data": [
    {
      "domain": "example.com"
    }
  ],
  "status": 1
}