Hosting: Domains
List website subdomains
Retrieve all subdomains created under the selected website.
Use this endpoint to inspect subdomain configuration for a specific website, including the parent domain and root directory assigned to each subdomain.
get/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains
Path parameters
usernamestring required
Example:u123456789
domainstring required
Example:mydomain.tld
Domain name
Response
Success response
Example response
[
{
"username": "u123456789",
"domain": "blog.example.com",
"parent_domain": "example.com",
"root_directory": "/home/u123456789/domains/blog.example.com/public_html",
"subdomain": "blog"
}
]