v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
DomainLookup

Return every domain's document root

This function retrieves the document root for every domain on the cPanel account, including the primary domain, addon domains, parked domains and subdomains.

get/DomainLookup/getdocroots

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": [
    {
      "docroot": "/home/username/public_html",
      "domain": "example.com"
    }
  ],
  "status": 1
}