User Password
Change password and reset password.
Change password
POST
‎https://<domain>/<api prefix>/<version>/user/profile/change-password/
This API endpoint is for changing user password
Headers
Name | Type | Description |
---|---|---|
apikey* | string | apikey |
Authorization* | string | Bearer access-token |
Request Body
Name | Type | Description |
---|---|---|
old_password* | string | old password |
new_password* | string | new password |
confirm_password* | string | confirm password |
Sample code
Node
PHP
Error Responses
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. |
Forgot password request
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.
Headers
Name | Type | Description |
---|---|---|
apikey* | string | apikey |
Request Body
Name | Type | Description |
---|---|---|
email* | string | email or username |
Sample code
Node
PHP
Error Responses
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. |
Forgot password submit
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.
Headers
Name | Type | Description |
---|---|---|
apikey* | string | apikey |
Request Body
Name | Type | Description |
---|---|---|
user* | string | user key from link |
token* | string | token from link |
new_password* | string | new password |
Sample code
Node
PHP
Error Responses
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. |
Last updated