The Scrubbe authentication API lives underDocumentation Index
Fetch the complete documentation index at: https://docs.scrubbe.com/llms.txt
Use this file to discover all available pages before exploring further.
/api/v1/auth and covers the full identity lifecycle: registering a new account, verifying an email address, logging in to receive tokens, refreshing those tokens, and managing your profile. Public endpoints require no credentials; protected endpoints require a valid Bearer token in the Authorization header.
Public endpoints
These endpoints do not require authentication.POST /auth/login
Authenticate with email and password. Returns a short-lived access token and a long-lived refresh token.The registered email address.
The account password.
JWT to include in the
Authorization: Bearer header for protected requests. Short-lived.Long-lived token used to obtain a new access token via
POST /auth/refresh-token.Basic profile information for the authenticated user.
POST /auth/business/register
Register a new business account and workspace.Name of the organization.
Owner’s email address.
Account password (minimum 8 characters).
POST /auth/dev/register
Register a new developer account.Developer email address.
Account password.
POST /auth/oauth/login
Authenticate or register via an OAuth provider (e.g., Google). Redirects to the provider’s consent screen.OAuth provider name. Example:
"google".POST /auth/verify_email
Verify an email address using the OTP sent after registration.The email address to verify.
The one-time passcode delivered to the email address.
POST /auth/resend_otp
Resend the email verification OTP. Subject to the email rate limit (3 requests per minute).The email address to resend the OTP to.
POST /auth/forgot-password
Initiate the password reset flow. Sends a reset link or token to the specified email.The email address associated with the account.
POST /auth/validate-reset-token
Validate that a password reset token is still active before presenting the reset form.The reset token received via email.
POST /auth/reset-password
Set a new password using a valid reset token.The reset token from the email.
The new password (minimum 8 characters).
POST /auth/refresh-token
Exchange a refresh token for a new access token. Does not require theAuthorization header.
A valid, unexpired refresh token.
Protected endpoints
These endpoints requireAuthorization: Bearer <accessToken>.
POST /auth/logout
Invalidate the current session. The access token is revoked server-side. No request body required.POST /auth/change-password
Change the authenticated user’s password.The user’s current password.
The new password (minimum 8 characters, must differ from the current password).
GET /auth/me
Retrieve the profile of the currently authenticated user.PUT /auth/profile
Update the authenticated user’s profile information.Updated first name.
Updated last name.
Contact phone number.
Email address cannot be changed through this endpoint. Contact support to update your login email.