Signup flow
Account creation requires email verification via a one-time passcode (OTP). Step 1 — Request an OTP Send your name and email to receive a passcode:Logging in
CallPOST /auth/login with your email and password to receive tokens:
Authorizing requests
Include your access token in theAuthorization header on every request to a protected endpoint:
Bearer.
Refreshing tokens
CallPOST /auth/refresh with your current refresh token to receive a new access token and a rotated refresh token. The old refresh token is immediately invalidated.
refreshToken returned in the response. Your previous refresh token will no longer work.
Logging out
CallPOST /auth/logout with your refresh token to revoke it. After logout, the refresh token cannot be used to issue new access tokens.
Roles
Your account has a role that controls what actions you can perform. The supported roles are:
By default, your account is assigned the role you specified at signup (or
USER if none was provided). You can request a specific role at login time by including the role field in your login request body:
Public vs. protected endpoints
The following endpoints do not require an
Authorization header. All other endpoints require a valid Bearer token.