Skip to content

Set Active Account

Endpoint used to set the active account for the current user in Toolzz Chat.

Terminal window
curl --request PUT \
--url 'https://chat.toolzz.ai/api/v1/profile/set_active_account' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"account_id": 1
}'
{
"message": "Active account updated successfully",
"account_id": 1
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (must contain “Bearer” before the token)Yes
ParameterTypeDescriptionRequired
account_idnumberThe ID of the account to set as active.Yes

KeyTypeDescription
messagestringSuccess message.
account_idnumberThe ID of the account that was set as active.

To access this endpoint, it is necessary to send a valid access token through the authorization header (Authorization) of the request.