Skip to content

Get Account

Endpoint used to get the account data linked to the institution.

Terminal window
curl --request GET \
--url https://chat.api.toolzz.com.br/api/v1/auth/myAccount/{adminId} \
--header 'Authorization: Bearer TOKEN_HERE'
{
"userAccount": {
"name": "<string>",
"lastName": "<string>",
"email": "<string>",
"phone": "<string>",
"imgProfile": "<string>",
"hasPassword": true,
"hasFinishedOnboarding": true
}
}
ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
adminIdStringID of the account administratorYes

Note: The adminId can be obtained through the GET Institution endpoint.


KeyTypeDescriptionRequired
idUUIDUnique and immutable identifier of the user.Yes
nameStringUser’s first name.Yes
lastNameStringLast name or family name.Yes
emailStringEmail address (must be unique).Yes
phoneStringPhone number with area code.No
imgProfileIdStringUnique reference to the image in storage.No
imgProfileArrayList of metadata or image paths.No
hasFinishedOnboardingBooleanDefines if the user has already gone through the initial tutorial.No

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