Skip to content

Get Widget

Endpoint used to get a widget.

Terminal window
curl --request GET \
--url https://chat.api.toolzz.com.br/api/v1/widget/{widgetId} \
--header 'Authorization: Bearer TOKEN_HERE'
{
"id": "uuid",
"institutionId": "uuid",
"title": "<string>",
"subTitle": "<string>",
"headerIconFileId": "uuid",
"primaryColor": "<string>",
"secondaryColor": "<string>",
"widgetIconFileId": "uuid",
"primaryAIColor": "<string>",
"secondaryAIColor": "<string>",
"avatarIconFileId": "uuid",
"aiFirstMessage": "<string>",
"primaryUserColor": "<string>",
"secondaryUserColor": "<string>",
"Bot": null,
"headerIcon": "uuid",
"widgetIcon": "uuid",
"avatarIcon": "uuid",
"defaultMessages": [],
"audioVoice": "<string>",
"voiceActive": false,
"isPublic": true,
"isOpen": false,
"isActive": true,
"isActivated": true,
"unity": {
"isActivated": true,
"id": "uuid",
"institutionId": "uuid",
"unityUuid": "uuid",
"faviconUrl": "uuid",
"theme": "<string>",
"subdomain": "<string>",
"name": "<string>",
"credentialProjectId": "uuid"
},
"favorites": []
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
widgetIdUUIDWidget identifier.Yes

KeyTypeDescription
idUUIDUnique identifier of the Widget configuration.
institutionIdUUIDUnique identifier of the owning institution.
titleStringMain title displayed in the Widget header.
subTitleStringSubtitle or short description displayed in the header.
primaryColorStringMain interface color (Hexadecimal).
secondaryColorStringContrast/secondary interface color.
aiFirstMessageStringAutomatic initial greeting sent by the Agent.
BotObjectObject containing the linked Agent settings (null if none).
audioVoiceStringIdentifier of the audio profile for text reading.
voiceActiveBooleanDefines if voice functionality is enabled.
isPublicBooleanDefines if the Widget is publicly accessible.
isOpenBooleanDefines if the Widget starts expanded when loading the page.
unityObjectData of the organizational unit to which the Widget belongs.
unity.idUUIDUnique unit identifier.
unity.nameStringOrganizational unit name.
unity.subdomainStringSpecific unit subdomain, if any.
favoritesArrayList of identifiers of users who favorited this Widget.

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