Skip to content

Update Password

Endpoint used to update the user account password.

Terminal window
curl --request POST \
--url https://chat.api.toolzz.com.br/api/v1/auth/change-password\
--header 'Authorization: Bearer TOKEN_HERE' \
--header 'Content-Type: application/json' \
--data '
{
"oldPassword": "your_old_password",
"newPassword": "your_new_password"
}
'
{
"message": "Password changed successfully.",
"userId": "50e8400-e29b-41d4-a716-446655440000",
"newPassword": "new_password_created"
}
ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
oldPasswordStringCurrent account password to be changed.Yes
newPasswordStringNew password to be set for the account.Yes

KeyTypeDescriptionRequired
messageStringConfirmation message of the password change.Yes
userIdUUIDUser’s unique identifier.Yes
newPasswordStringThe new password that was successfully created.Yes

To access this endpoint, it is necessary to send a valid access token through the authorization header (Authorization) of the request. Additionally, the API is protected by other security measures to safeguard user data.

To access your access token, follow these steps:

  1. Log in to the ToolzzAI platform
  2. Click on “Settings”
  3. Click on “Access Token”
  4. Copy the access token

Access token page