---
title: "Get a domain by ID"
method: GET
path: "/api/hosting-account/domains/{id}"
tags: ["Admin - Hosting Account Domains"]
---

# Get a domain by ID

`GET /api/hosting-account/domains/{id}`

## Path parameters

- `id` integer, required

## Response `200`

Success

- HostingAccountDomain — Domain model for HostingAccount
  - `id` integer — ID of the domain record
  - `domain` string — Domain name
  - `domain_root` string — Domain root directory
  - `document_root` string — Document root directory
  - `inherit_document_root` boolean — Whether to inherit document root
  - `subdomain` string — Subdomain name
  - `domain_type` string — Type of domain (main, subdomain, addon, parked)
  - `ip` string — IP address associated with the domain
  - `hosting_account_id` integer — ID of the related hosting account
  - `php_version` string — @deprecated Legacy PHP version short string. Use php_version_id (and the phpVersion relation) instead.
  - `is_php_fpm_enabled` boolean — Is PHP-FPM enabled
  - `php_fpm_pm` string — PHP-FPM process manager type
  - `php_fpm_pm_max_children` integer — Maximum number of child processes
  - `php_fpm_pm_start_servers` integer — Number of child processes created on startup
  - `php_fpm_pm_min_spare_servers` integer — Minimum number of idle processes
  - `php_fpm_pm_max_spare_servers` integer — Maximum number of idle processes
  - `php_fpm_pm_max_requests` integer — Number of requests each child process handles
  - `php_fpm_pm_status_path` string — Path for status page
  - `php_fpm_ping_path` string — Path for ping page
  - `php_fpm_ping_response` string — Response for ping requests
  - `php_fpm_access_log` string — Access log file path
  - `php_fpm_access_format` string — Access log format string
  - `php_fpm_slowlog` string — Slow log file path
  - `php_fpm_request_slowlog_timeout` integer — Slow log timeout in seconds
  - `php_fpm_request_terminate_timeout` integer — Request termination timeout in seconds
  - `php_fpm_rlimit_files` integer — File descriptor limit
  - `php_fpm_rlimit_core` integer — Core file size limit
  - `php_fpm_chroot` string — Chroot directory path
  - `php_fpm_chdir` string — Change directory path
  - `php_fpm_env` object — Environment variables for PHP-FPM processes
  - `php_fpm_catch_workers_output` boolean — Whether to catch worker output
  - `status` string — Status of the domain (active, suspended, etc.)
  - `domain_type_friendly_name` string — Human-friendly domain type name
  - `redirect_to_text` string — Redirect status as text

## Other responses

- `404` — Not found

---

[API](https://skmtc.dev/adminbolt/apis/adminbolt-api-documentation.md) · [All operations](https://skmtc.dev/adminbolt/apis/adminbolt-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/adminbolt/adminbolt-api-documentation/revisions/bf4f36fbfbd3/schema)
