Auth
Reset password
/auth/resetpassword
PATCH
This endpoint requires authentication. Include your Bearer token in the Authorization header.
Description
/auth/resetpassword Description: The /auth/resetpassword endpoint allows users to reset their password. This endpoint supports two different flows:Flow 1: Forgot Password (Email Code Reset)
Use this flow when the user has forgotten their password and received a reset code via email from/auth/forgotpassword.
- Provide the
codeas a query parameter - Provide
emailandnew_passwordin the request body - No authentication required (the code validates the request)
Flow 2: Change Password (Authenticated)
Use this flow when a logged-in user wants to change their current password.- Provide
email,current_password, andnew_passwordin the request body - Requires valid Bearer token authentication
- The
current_passwordmust match the user’s existing password
PATCH
Password Requirements:
- Minimum 8 characters
- At least one uppercase letter
- At least one lowercase letter
- At least one number
- At least one special character
Request Payload:
Note: You must provide eithercode(query param) ORcurrent_password(body), but not both.
Code Examples
Authorizations
Query Parameters
Body
application/json