Custom domains

Verify domain ownership (checks CNAME).

post/custom-domains/{hostname}/verify

Request

  • Base URL: https://api.stacktr.ee
  • URL: https://api.stacktr.ee/custom-domains/{hostname}/verify
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://api.stacktr.ee/oauth/authorize, token URL https://api.stacktr.ee/oauth/token, scopes: sites:write, sites:read)

Response

Verification result.

hostnamestring required
site_idstring required
status'pending' | 'verified' | 'failed' required
cname_targetstring

CNAME value the user must add to their DNS.

verified_atinteger nullable

Example response

{
  "hostname": "docs.example.com"
}

Changes

No recorded changes to this operation across all 1 revision of this API.