Hatch

Your sites, and what this server can do for them

On this page

GET/api/sites

Authorization

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

Response

200: It worked

  • sites array<Site> (required)

    • id string: At most 300 characters
    • slug string: At most 300 characters
    • title string: At most 300 characters
    • visibility "public" | "link" | "invite"
    • invites array<string>
    • key string: The secret in a link-only site’s address. At most 100 characters
    • bytes number
    • files number
    • updatedAt number | null
    • newsletter boolean: The site takes email sign-ups
    • takenDown object | null

      • One of: Option 1

        • reason string (required): At most 100000 characters
        • at number (required)
    • url string: At most 2000 characters
    • domain DomainState | null

      • 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)
        • addresses array<string> (required)
    • webhook object | null

      • One of: Option 1

        • url string (required): At most 500 characters
  • features SiteFeatures (required): What this server can do for sites

    • private boolean (required)
    • invites boolean (required)
    • newsletter boolean (required)
    • careers boolean (required)
    • domains boolean (required)
    • analytics boolean (required)
    • notify boolean (required): Owners can get emails and webhooks when something arrives

Other answers:

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