# 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.

Endpoint: GET /DomainLookup/getdocroots
Version: 11.138.0.10
Security: BasicAuth

## Response 200 fields (application/json):

  - `data` (array)
    One entry for each domain on the account, sorted by domain name.

  - `data.docroot` (string)
    The absolute path to the domain's document root.
    Example: "/home/username/public_html"

  - `data.domain` (string)
    The domain.
    Example: "example.com"

  - `errors` (array,null)

  - `messages` (array,null)

  - `metadata` (object)

  - `metadata.transformed` (integer)

  - `status` (integer)
    * 1 — Success.
* 0 — Failed. Check the errors field for more details.
    Enum: 0, 1

  - `warnings` (array,null)


