Hatch

A site’s subscribers and the issues it sent

On this page

GET/api/sites/{id}/newsletter

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

  • counts object (required)

    • active number (required)
    • pending number (required)
    • unsubscribed number (required)
  • subscribers array<Subscriber> (required)

    • id string: At most 300 characters
    • email string: At most 300 characters
    • status "pending" | "active" | "unsubscribed"
    • createdAt number
    • confirmedAt number | null
  • issues array<Issue> (required)

    • id string: At most 300 characters
    • subject string: At most 300 characters
    • path string | null
    • url string | null
    • sentAt number
    • recipients number
    • sent number
    • failed number
    • done boolean

Other answers:

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