Remove Custom Domain from Status Page
DELETE /api/status-pages/domains/:id
Remove Custom Domain from Status Page
DELETE /api/status-pages/domains/:id
Removes a custom domain from a status page. Deletes the domain record; the status page's customDomainId is automatically set to null. Admin-only.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | number | The domain ID to remove |
Example (cURL)
curl -X DELETE "$BASE_URL/api/status-pages/domains/42" \
-H "Authorization: Bearer $TOKEN"
Response
204 No Content
Common errors
401 Unauthorizedwhen not authenticated403 Forbiddenwhen not an admin404 Not foundwhen the domain does not exist422 Unprocessable Entitywhen the domain ID is invalid