Hatch
On this page

GET/api/me

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

  • user User | null (required)

    • One of: User

      • id string (required): At most 300 characters
      • email string (required): At most 300 characters
      • name string (required): At most 300 characters
      • image string | null
      • twoStep boolean: Sign-in asks for a code from an authenticator app too
  • billing Billing

    • plan string (required): At most 300 characters
    • status string (required): At most 300 characters
    • renews number | null (required)
    • ends number | null (required)
    • manage boolean (required): There is something to manage in the billing portal
    • plans array<Plan> (required)

      • id string: At most 300 characters
      • title string: At most 300 characters
      • price number: Cents per month. 0 is free.
      • blurb string: At most 300 characters
      • features array<string>

Other answers:

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