---
title: "Return every domain's document root"
method: GET
path: "/DomainLookup/getdocroots"
tags: ["DomainLookup"]
---

# Return every domain's document root

`GET /DomainLookup/getdocroots`

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

## Response `200`

HTTP Request was successful.

- object
  - `data` object[] — One entry for each domain on the account, sorted by domain name.
    - `docroot` string, path — The absolute path to the domain's document root.
    - `domain` string, domain — The domain.
  - `errors` string[], nullable
  - `messages` string[], nullable
  - `metadata` object
    - `transformed` integer
  - `status` 0 | 1 — * `1` — Success. * `0` — Failed. Check the `errors` field for more details.
  - `warnings` string[], nullable

---

[API](https://skmtc.net/cpanel/apis/cpanel-uapi.md) · [All operations](https://skmtc.net/cpanel/apis/cpanel-uapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cpanel/cpanel-uapi/revisions/632e2f8e6d04/schema)
