---
title: "Return all domains information"
method: GET
path: "/get_domain_info"
tags: ["Domain Information"]
---

# Return all domains information

`GET /get_domain_info`

This function returns information about each domain on the server.

## Response `200`

HTTP Request was successful.

- object
  - `data` object
    - `domains` object[] — array of objects representing the domain's data. **Note:** This return only includes domains that you manually created. This does not include service subdomain (proxy subdomains) or automatically-created domains.
      - `docroot` string — The document root for the addon domain. An absolute file path.
      - `domain` string — The account's main domain. A valid domain.
      - `domain_type` string — The domain's type.
      - `ipv4` string — The domain's IPv4 address. A valid IPv4 address.
      - `ipv4_ssl` string — The domain's secure IPv4 address. A valid IPv4 address.
      - `ipv6` string, nullable — The domain's IPv6 address. * A valid IPv6 address. * `null` An IPv6 address does not exist for this domain.
      - `ipv6_is_dedicated` 0 | 1 — The domain possesses an IPv6 address. * `1` An IPv6 address exists for this domain. * `0` An IPv6 address does not exist for this domain.
      - `modsecurity_enabled` 0 | 1 — Whether ModSecurity is enabled on the server. * `1` ModSecurity is enabled. * `0` ModSecurity is not enabled.
      - `parent_domain` string — The parent domain. A valid domain name.
      - `php_version` string — The installed PHP versions.
      - `port` integer — The server's port number.
      - `port_ssl` integer — The server's secure port number.
      - `user` string — The account username. A cPanel account or reseller username on the server.
      - `user_owner` string — The domain's owner.
  - `metadata` object
    - `command` string — The method name called.
    - `reason` string — The reason the API function failed when the `metadata.result` field is `0`. This field may display a success message when a function succeeds.
    - `result` 0 | 1 — * `1` Success * `0` Failed: Check the reason field for more details.
    - `version` integer — The version of the API function.

---

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