Hatch

A site’s own domain and the DNS records it needs

On this page

GET/api/sites/{id}/domain

Authorization

  • session: Authorization: Bearer <token>. The session token from signing in (or the session cookie in a browser on the same origin).

Path parameters

  • id string (required)

Response

200: It worked

  • domain DomainState | null (required)

    • One of: DomainState

      • domain string (required): At most 300 characters
      • verified boolean (required)
      • proof boolean | null (required)
      • pointing boolean | null (required)
      • checkedAt number | null (required)
      • records array<object> (required)

        • type "CNAME" | "TXT"
        • name string: At most 300 characters
        • value string: At most 300 characters
      • addresses array<string> (required)
  • target string (required): At most 300 characters

Other answers:

  • 4XX: Refused, with a message to show the person