Auth
Registration, login, session refresh, and the self-service and invite-based account-joining flows. See Authentication for the general JWT flow this powers.
/auth/registerCreate a new account (tenant) plus its first user as Owner. Body: accountName, fullName, email, password, referralCode?. Returns the account, user, and a token pair.
Public - no auth required.
/auth/loginEmail/password login. Body: email, password. Returns the user and a token pair.
Public - rate-limited to 10/min/IP.
/auth/refreshExchange a valid refresh token for a new access token.
Public - rate-limited to 20/min/IP.
/auth/meThe current authenticated user.
/auth/socialBody: idToken (a Firebase ID token from Google/Facebook sign-in). Same response shape as login/register.
Public - rate-limited to 10/min/IP.
/invites/acceptAccept an email or SMS invite to join an existing account, attaching the accepting user to it.
Public - rate-limited to 10/min/IP.