# Retrieve cPanel-generated subdomains for a domain This function retrieves the list of subdomains that cPanel automatically generates for a given domain. These include proxy subdomains such as , , and , as well as other system-generated domain names. Endpoint: GET /DNS/fetch_cpanel_generated_domains Version: 11.136.0.4 Security: BasicAuth ## Query parameters: - `domain` (string, required) The domain for which to retrieve cPanel-generated subdomains. Example: "example.com" ## Response 200 fields (application/json): - `apiversion` (integer) The version of the API. Example: 3 - `func` (string) The name of the method called. Example: "fetch_cpanel_generated_domains" - `module` (string) The name of the module called. Example: "DNS" - `result` (object) - `result.data` (array) An array of objects containing the cPanel-generated domain names for the specified domain. Example: [{"domain":"example.com."},{"domain":"cpanel.example.com."},{"domain":"mail.example.com."},{"domain":"webmail.example.com."},{"domain":"webdisk.example.com."}] - `result.data.domain` (string) A cPanel-generated domain name, returned as a fully-qualified domain name (FQDN) with a trailing dot. Example: "webmail.example.com." - `result.errors` (array,null) List of errors if the API failed. - `result.messages` (array,null) List of messages generated by the API. - `result.metadata` (object) - `result.metadata.transformed` (integer) Post-processing may have transformed the data. Enum: 1 - `result.status` (integer) * — Success. * — Failed. Check the field for more details. Enum: 1, 0 - `result.warnings` (array,null) List of warnings generated by the API. Warnings describe non-critical failures or other problematic conditions noted while running a API.