# Get custom domain details — API reference

> Returns the custom-domain challenge, health, entitlement, problem and public-address details.

Source: https://upfour.io/docs/api/status-pages/get-custom-domain-details

[Developers](https://upfour.io/docs/api.md)/[Status pages](https://upfour.io/docs/api/status-pages.md)

Returns the custom-domain challenge, health, entitlement, problem and public-address details.

GET https://app.upfour.io/v1/status-pages/{pageID}/domain

scope status_page.read stable returns 200

## Parameters

| Field | Type | Description |
| --- | --- | --- |
| `pageID` required | uuid | path parameter |

## Returns

A successful request returns `200` with application/json.

Response fields 1 top-level fields

| Field | Type | Description |
| --- | --- | --- |
| `data` | StatusPageDomainDetails | |
| StatusPageDomainDetails · 101 fields FieldTypeDescription `page` StatusPage  · nullable StatusPage · 61 fields FieldTypeDescription `accent_color` string `announcement` string `appearance` StatusPageAppearanceResponse  · nullable null until a layout was chosen; the page then renders the default design (essential layout, paper ground). StatusPageAppearanceResponse · 5 fields FieldTypeDescription `ground` string one of`paper` `white` `cool` Empty is stored as paper. `header_dark` string #RRGGBB or empty for the platform default. `header_light` string #RRGGBB or empty for the platform default. `layout` string one of`essential` `brand` `overview` `version` integer Must be 1. `automatic_reports` boolean `automatic_reports_notify` boolean `company_name` string `company_url` string `contact_url` string `created_at` string (date-time) `custom_css` string `custom_domain` string `custom_domain_certificate_status` string one of`none` `pending` `issued` `failed` `unknown` `custom_domain_status` string one of`none` `pending_dns` `queued` `provisioning` `active` `failed` `disabled` `conflict_requires_review` `custom_js` string Not supported: always empty. `default_language` string  · nullable Language of the page's own communication; null inherits from the client, then the company default. `design` string No effect since Plan 82; accepted and stored only. `google_tag_id` string Not supported: always empty. `header_layout` string No effect since Plan 82; accepted and stored only. `hide_from_search_engines` boolean `history_days` integer `id` uuid `is_published` boolean `logo_url` string `minimum_incident_length` integer `organization_id` uuid `password_protected` boolean `remove_branding` boolean `show_not_monitored_as_green` boolean `subdomain` string `subscribable` boolean `theme` string `timezone` string `updated_at` string (date-time) `uptime_decimals` integer `access_restricted` boolean Whether any visitor gate (password, e-mail codes, IP allowlist or access token) is on. Only in GET /status-pages. `auto_report_open_template_id` uuid `auto_report_resolve_template_id` uuid `client_id` uuid `custom_domain_attempts` integer `custom_domain_cleanup_requested_at` string (date-time) `custom_domain_dns_target` string `custom_domain_error` string `custom_domain_last_checked_at` string (date-time) `custom_domain_next_retry_at` string (date-time) `custom_domain_pending_expires_at` string (date-time) `custom_domain_ploi_tenant` string `custom_domain_provisioned_at` string (date-time) `custom_domain_verification_token` string Value of the up4-status-verification TXT record that proves ownership of the domain. `custom_domain_verified_at` string (date-time) `favicon_url` string `logo_asset_url` string `logo_dark_asset_url` string `platform_url` string `public_url` string Where the page is reachable: the custom domain once active, else the platform address. `reply_to_email` string `subscriber_count` integer Confirmed, active subscribers. Only in GET /status-pages. `platform_url` string The page's address under the platform domain. `public_url` string `challenge` StatusPageDomainChallenge StatusPageDomainChallenge · 14 fields FieldTypeDescription `created_at` string (date-time) `domain` string `id` uuid `organization_id` uuid `pending_expires_at` string (date-time) `status` string one of`pending_dns` `conflict_requires_review` `status_page_id` uuid `updated_at` string (date-time) `error` string `incumbent_organization_id` uuid `incumbent_status_page_id` uuid `last_checked_at` string (date-time) `verification_token` string `verified_at` string (date-time) `cname_name` string `cname_target` string `entitlement` StatusPageDomainEntitlement StatusPageDomainEntitlement · 10 fields FieldTypeDescription `can_purchase` boolean `limit` integer `metered` boolean `over_limit` boolean `pack_slots` integer `paid_slots` integer `plan_included` integer `unit_price_cents` integer `used` integer `renew_at` string (date-time) `health` StatusPageDomainHealth StatusPageDomainHealth · 5 fields FieldTypeDescription `status` string one of`unknown` `healthy` `unhealthy` `checked_at` string (date-time) `error` string `error_code` string one of`dns_invalid` `routing_unchecked` `routing_changed` `certificate_unchecked` `certificate_not_ready` `https_unreachable` `unknown` `next_check_at` string (date-time) `problem_code` string one of`dns_not_found` `txt_not_found` `hosting_setup_failed` `hosting_routing_failed` `https_pending` `https_unreachable` `public_page_mismatch` `public_page_unreachable` `removal_delayed` `claim_released` `unknown` `txt_name` string `txt_value` string | | |

## Errors

Only the errors this operation can return. Every error uses the [same envelope](https://upfour.io/docs/api/responses.md).

| Status | Code | Meaning |
| --- | --- | --- |
| 400 | [bad_request](https://upfour.io/docs/api/errors#code-bad_request) | The request is malformed or fails validation. |
| 404 | [not_found](https://upfour.io/docs/api/errors#code-not_found) | The requested resource does not exist or is outside the caller's scope. |

Every call can also return `unauthorized` (401), `rate_limit_exceeded` (429) or `internal_error` (500 / 502). See [Responses and errors](https://upfour.io/docs/api/responses.md).

[PreviousRecheck a custom domain](https://upfour.io/docs/api/status-pages/recheck-a-custom-domain.md) [NextList custom domain events](https://upfour.io/docs/api/status-pages/list-custom-domain-events.md)

## Request

### cURL

```bash
curl -s "https://app.upfour.io/v1/status-pages/00000000-0000-4000-8000-000000000001/domain" \
  -H "Authorization: Bearer $UP4_API_KEY"
```

### JavaScript

```javascript
const res = await fetch("https://app.upfour.io/v1/status-pages/00000000-0000-4000-8000-000000000001/domain", {
  headers: {
    Authorization: `Bearer ${process.env.UP4_API_KEY}`,
  },
});
console.log(res.status, await res.json());
```

### Python

```python
import os
import requests

res = requests.get(
    "https://app.upfour.io/v1/status-pages/00000000-0000-4000-8000-000000000001/domain",
    headers={"Authorization": f"Bearer {os.environ['UP4_API_KEY']}"},
)
print(res.status_code, res.json())
```

### Go

```go
package main

import (
	"fmt"
	"io"
	"net/http"
	"os"
)

func main() {
	req, _ := http.NewRequest("GET", "https://app.upfour.io/v1/status-pages/00000000-0000-4000-8000-000000000001/domain", nil)
	req.Header.Set("Authorization", "Bearer "+os.Getenv("UP4_API_KEY"))
	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()
	out, _ := io.ReadAll(res.Body)
	fmt.Println(res.StatusCode, string(out))
}
```

### PHP

```php
<?php
$ch = curl_init("https://app.upfour.io/v1/status-pages/00000000-0000-4000-8000-000000000001/domain");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer " . getenv("UP4_API_KEY"),
    ],
]);
$response = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), " ", $response, "\n";
curl_close($ch);
```

## Response

### 200

```json
{
  "data": {
    "cname_name": "status.example.com",
    "cname_target": "pages.example.test",
    "entitlement": {
      "can_purchase": false,
      "limit": 10,
      "metered": false,
      "over_limit": false,
      "pack_slots": 0,
      "paid_slots": 0,
      "plan_included": 10,
      "unit_price_cents": 200,
      "used": 1
    },
    "page": {
      "accent_color": "",
      "announcement": "Planned maintenance on Sunday from 02:00 to 03:00 UTC.",
      "appearance": null,
      "automatic_reports": false,
      "automatic_reports_notify": false,
      "company_name": "Acme GmbH",
      "company_url": "",
      "contact_url": "",
      "created_at": "2026-10-27T09:00:00Z",
      "custom_css": "",
      "custom_domain": "status.example.com",
      "custom_domain_certificate_status": "none",
      "custom_domain_dns_target": "pages.example.test",
      "custom_domain_next_retry_at": "2026-10-27T09:00:00Z",
      "custom_domain_pending_expires_at": "2026-11-10T09:00:00Z",
      "custom_domain_status": "pending_dns",
      "custom_domain_verification_token": "••••",
      "custom_js": "",
      "default_language": null,
      "design": "v2",
      "google_tag_id": "",
      "header_layout": "vertical",
      "hide_from_search_engines": false,
      "history_days": 90,
      "id": "00000000-0000-4000-8000-000000000001",
      "is_published": false,
      "logo_url": "",
      "minimum_incident_length": 0,
      "organization_id": "00000000-0000-4000-8000-000000000002",
      "password_protected": false,
      "platform_url": "https://example.com",
      "public_url": "https://example.com",
      "remove_branding": false,
      "show_not_monitored_as_green": false,
      "subdomain": "acme-status",
      "subscribable": false,
      "theme": "light",
      "timezone": "UTC",
      "updated_at": "2026-10-27T09:00:00Z",
      "uptime_decimals": 0
    },
    "platform_url": "https://example.com",
    "public_url": "https://example.com",
    "txt_name": "_up4-status.status.example.com",
    "txt_value": "up4-status-verification=721378bc96ef2ddece4a66b447ba60d6a1266860d9cb23f4"
  }
}
```

### 400

```json
{
  "error": {
    "code": "bad_request",
    "message": "The request is malformed or fails validation.",
    "request_id": "req_…"
  }
}
```

### 404

```json
{
  "error": {
    "code": "not_found",
    "message": "The requested resource does not exist or is outside the caller's scope.",
    "request_id": "req_…"
  }
}
```
