Update Password
Endpoint used to update the user account password.
Request Example
Section titled “Request Example”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" } 'Response Example
Section titled “Response Example”{ "message": "Password changed successfully.", "userId": "50e8400-e29b-41d4-a716-446655440000", "newPassword": "new_password_created"}Request description
Section titled “Request description”Access Token
Section titled “Access Token”| Parameter | Type | Description | Required |
|---|---|---|---|
Authorization | String | Access token (“Bearer” must be before the token) | Yes |
Body Parameters
Section titled “Body Parameters”| Parameter | Type | Description | Required |
|---|---|---|---|
oldPassword | String | Current account password to be changed. | Yes |
newPassword | String | New password to be set for the account. | Yes |
Response description
Section titled “Response description”| Key | Type | Description | Required |
|---|---|---|---|
message | String | Confirmation message of the password change. | Yes |
userId | UUID | User’s unique identifier. | Yes |
newPassword | String | The new password that was successfully created. | Yes |
Security
Section titled “Security”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:
- Log in to the ToolzzAI platform
- Click on “Settings”
- Click on “Access Token”
- Copy the access token
