Skip to main content

POST /api/auth/challenge

Request a sign-in challenge for a Bitcoin address. During beta, the address must be whitelisted. Admin addresses bypass the whitelist.

Request body

Response

Errors


POST /api/auth/verify

Submit the wallet signature to authenticate and receive a session token.

Request body

publicKey is optional but recommended — it speeds up verification for some wallet types.

Response

Errors


POST /api/auth/logout

Invalidate the current session. Requires authentication.

Response


GET /api/auth/me

Returns the authenticated user’s profile, plan limits, and usage stats.

Response