Remove a custom domain
DELETE
/status-pages/{id}/domains/{domain_id}
const url = 'https://api.perstat.io/status-pages/example/domains/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.perstat.io/status-pages/example/domains/example \ --header 'Authorization: Bearer <token>'Removes a custom domain from the status page and deactivates serving for it. Returns 204 on success; if deactivating a verified domain fails upstream, the call returns 502 and the domain is kept so the call can be retried. Requires project management rights.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
domain_id
required
string