The /auth/resetpassword endpoint allows users to reset their password by providing a verification code along with the new password. The verification code is typically sent to the userโs email after initiating the password reset process. Method:
PATCH
Query Parameter:
Parameter | Type | Description |
---|---|---|
code | string | The verification code sent to the userโs email. |
Parameter | Type | Description |
---|---|---|
string | The email address of the user. | |
new_password | string | The new password to be set. |
/forgotpassword
request
See example of the responses below
Authentication
This endpoint requires authentication. Include your bearer token in the Authorization header.Query Parameters
Parameter | Type | In | Required | Description |
---|---|---|---|---|
code | string | query | โ | The verification code sent to the userโs email |
Request Body
Request Schema
Field | Type | Required | Description |
---|---|---|---|
email | string | โ | The email address of the user |
new_password | string | โ | The new password to be set |
Responses
โ 200 - Success - If Logged In
โ ๏ธ 401 - Unauthorized
โ ๏ธ 404 - Not Found
โ 500 - Internal Server Error
Tags
Auth
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Query Parameters
The verification code sent to the user's email
Body
application/json
Response
Success - If Logged In