Add Custom Domain to Status Page
POST /api/status-pages/domains
Add Custom Domain to Status Page
POST /api/status-pages/domains
Adds a custom hostname to an existing status page and returns the DNS TXT record needed for verification. Admin-only.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
statusPageId | number | string | Yes | The status page ID or publicId |
hostname | string | Yes | The custom hostname (e.g. status.example.com) |
Example (cURL)
curl -X POST "$BASE_URL/api/status-pages/domains" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"statusPageId": 1,
"hostname": "status.example.com"
}'
Response
{
"domain": {
"id": 42,
"hostname": "status.example.com",
"status": "pending",
"role": "status_page",
"verificationToken": "abc123-def456-ghi789",
"verifiedAt": null,
"createdAt": "2026-05-01T11:00:00.000Z",
"updatedAt": "2026-05-01T11:00:00.000Z"
},
"dns": {
"txtName": "_uptimeify-verify.status.example.com",
"txtValue": "abc123-def456-ghi789"
}
}
Common errors
401 Unauthorizedwhen not authenticated403 Forbiddenwhen not an admin404 Not foundwhen the status page does not exist409 Conflictwhen the hostname is already in use422 Unprocessable Entitywhen the hostname is reserved or invalid