Skip to content

Get Google Calendar Function by ID

Endpoint used to get Google Calendar functions by ID.

Terminal window
curl --request GET \
--url https://chat.api.toolzz.com.br/api/v1/functions/{functionId} \
--header 'Authorization: Bearer TOKEN_HERE'
{
"id": "uuid",
"institutionId": "uuid",
"userId": "uuid",
"unityId": "uuid",
"code": "string",
"description": "string",
"iconFileId": "uuid",
"status": true,
"name": "string",
"pluginIcon": {
"id": "uuid",
"fileName": "string",
"url": "url",
"extension": "string",
"size": 0
},
"color": "string",
"outputs": [],
"isActivated": true,
"type": "google-calendar",
"googleCalendarPlugin": [
{
"id": "uuid",
"calendarId": "string",
"timezone": "string",
"googleUser": {
"name": "string",
"email": "string"
},
"googleToken": "string"
}
],
"discordPlugin": [],
"telegramPlugin": []
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
functionIdUUIDUnique function identifier.Yes
KeyTypeDescription
idUUIDUnique identifier of the plugin record in the database.
institutionIdUUIDUnique identifier of the institution to which the plugin belongs.
userIdUUIDUnique identifier of the user who performed the configuration.
unityIdUUIDUnique identifier of the linked organizational unit.
codeStringTechnical reference code for the internal integration logic.
descriptionStringPrompt/Instruction: Behavioral rules for the AI when operating the function.
iconFileIdUUIDReference identifier of the associated icon file.
statusBooleanDefines if the plugin is globally available in the system.
nameStringVisible name of the plugin (e.g., “Meeting Scheduling”).
pluginIconObjectDetailed data of the icon image file:
pluginIcon.idUUIDUnique identifier of the image file.
pluginIcon.fileNameStringPhysical name of the file stored on the server.
pluginIcon.urlURLPublic link (CDN) for rendering the icon.
pluginIcon.extensionStringImage file extension (e.g., png, svg).
pluginIcon.sizeNumberTotal file size in bytes.
colorStringColor label for the visual interface (e.g., blue, gray).
outputsArrayList of output variables generated by the plugin execution.
isActivatedBooleanIndicates if the integration is active and enabled for use.
typeStringTechnical type of the integration (fixed: google-calendar).
googleCalendarPlugin[]ArrayConfiguration of the connected calendar instance:
...[].idUUIDUnique identifier of the calendar configuration instance.
...[].calendarIdStringID of the target calendar (usually the e-mail or primary).
...[].timezoneStringTimezone configured for the events (e.g., America/Sao_Paulo).
...[].googleUserObjectIdentity data of the authenticated Google account:
...[].googleUser.nameStringUser’s full name extracted from the Google profile.
...[].googleUser.emailStringE-mail address of the linked Google account.
...[].googleTokenStringOAuth2 access token for communication with the Google API.
discordPlugin[]ArrayList of Discord extensions (empty if the type is Google Calendar).
telegramPlugin[]ArrayList of Telegram extensions (empty if the type is Google Calendar).

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