User Password
Change password and reset password.
Last updated
Change password and reset password.
Last updated
POST
‎https://<domain>/<api prefix>/<version>/user/profile/change-password/
This API endpoint is for changing user password
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Node
PHP
POST
‎https://<domain>/<api prefix>/<version>/user/forgot-password/
This API endpoint is to reset the user password. Users can request with the registered email or username. Users will get a link with token and user key in an email. This token, user key, and a new password can send to the forget password submit API endpoint to change the current password or directly use the link to change the password.
Node
PHP
POST
‎https://<domain>/<api prefix>/<version>/user/forgot-password-submit/‎‎
This endpoint is to reset the user password. User will get a link with token and user key in an email after success response from forgot password request API endpoint. Once use the link to change the password else send the token, user key, and a new password to this API endpoint to change the current user password.
Node
PHP
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
apikey*
string
apikey
Authorization*
string
Bearer access-token
old_password*
string
old password
new_password*
string
new password
confirm_password*
string
confirm password
Status Code
Error Type
Field
Description
401
Authentication Error
Your old password was entered incorrectly. Please enter it again.
400
Validation Error
confirm_password
The two password fields didn't match.
400
Validation Error
password
Your password can't be too similar to your other personal information.
Your password must contain at least 8 characters.
Your password can't be a commonly used password.
Your password can't be entirely numeric.
Your password must contain at least one capital letter, small letter, number and special character.
apikey*
string
apikey
email*
string
email or username
Status Code
Error Type
Description
401
Authentication Error
There is multiple users are registered with the specified E-Mail address.Please enter the username
401
Authentication Error
This username or email does not exist in the system.
apikey*
string
apikey
user*
string
user key from link
token*
string
token from link
new_password*
string
new password
Status Code
Error Type
Field
Description
400
Validation Error
token
The token is invalid. Enter the correct token that send to your email.
400
Validation Error
password
Your password can't be too similar to your other personal information.
Your password must contain at least 8 characters.
Your password can't be a commonly used password.
Your password can't be entirely numeric.
Your password must contain at least one capital letter, small letter, number and special character.
400
Validation Error
user
This field is required.