Verify a custom domain
const url = 'https://api.perstat.io/status-pages/example/domains/example/verify';const options = {method: 'POST', 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 POST \ --url https://api.perstat.io/status-pages/example/domains/example/verify \ --header 'Authorization: Bearer <token>'Runs the DNS verification for a custom domain synchronously: the domain’s CNAME record is checked against its unique target, and on success the domain is marked verified and activated for serving. Returns the current domain state either way. Requires project management rights. Accepts API keys with the status-pages:write scope, subject to current role and resource grants.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”Request succeeded. The response body contains the result.
object
Vom Edge gemeldeter Cert-Status.
CNAME-Ziel, das der Kunde setzen soll.
true, sobald die Domain erfolgreich als VHost an die Edge gepusht wurde.
Eine verifizierte Domain mit edge_synced=false ist noch in Bereitstellung
(Edge-Push steht aus / wird vom Reconcile nachgezogen) und serviert noch nicht.
Public_id (spd_…).
pending | verified | failed.
cname | txt.
Wert für den TXT-Record _datargo-verify.<domain>.
Unix-Sekunden der Verifikation.
Examplegenerated
{ "cert_status": "example", "cname_target": "example", "domain": "example", "edge_synced": true, "id": "example", "last_error": "example", "status": "example", "verification_method": "example", "verification_token": "example", "verified_at": 1}Authentication is missing or invalid.
The authenticated caller does not have permission to perform this operation.
No accessible resource matches the supplied identifier.