POST /sites/s_ab12cd34ef56/status-domain/check
Request examples and the documented response.
Back to this endpoint in the API reference
curl
Request
curl -X POST "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/status-domain/check" \ -H "Authorization: Bearer $PAGEHUM_API_KEY"
JavaScript
Request
const response = await fetch("https://api.pagehum.com/v1/sites/s_ab12cd34ef56/status-domain/check", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.PAGEHUM_API_KEY}` },
});
const { ok, data, error } = await response.json();
if (!ok) throw new Error(error);Response
Response
{
"ok": true,
"data": {
"host": "status.harbor.example",
"state": "pending",
"records": [
{
"type": "CNAME",
"name": "status",
"value": "cname.vercel-dns.com"
}
],
"detail": "Waiting for DNS. Add the CNAME record at your DNS provider; it usually shows within minutes, sometimes an hour.",
"addedAt": 1791710700000,
"checkedAt": 1791710700000,
"liveAt": null
}
}