POST /api/login endpoint is used by the CLI and any application that needs to exchange credentials for a JWT.
Base path: /api/v1/auth
GET /auth/me — get current user
Returns the profile of the authenticated user.Response
Internal user ID.
The user’s UUID in Supabase Auth.
The user’s email address.
Account role:
user or admin.Subscription plan:
community, starter, professional, or enterprise.POST /login — sign in and get token
Signs in with email and password, and returns a JWT. Used by the CLI’sauth login command and non-Supabase client integrations.
Request body
The user’s email address.
The user’s password.
Response
POST /register — create an account
Creates a new user account and returns the same response as login.Request body
Email address for the new account.
Password for the new account.
Response
Same structure as POST /login.For refreshing an expired session token, use the Supabase client’s
refreshSession() method. The InfraAudit API does not expose a dedicated refresh endpoint.