v52

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-03269339953.6 KB
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

usernamestring

Website username

domainstring

Full subdomain

parent_domainstring

Parent website domain

root_directorystring

Subdomain root directory

subdomainstring

Subdomain prefix

Example response

[
  {
    "username": "u123456789",
    "domain": "blog.example.com",
    "parent_domain": "example.com",
    "root_directory": "/home/u123456789/domains/blog.example.com/public_html",
    "subdomain": "blog"
  }
]