Duplicate Google Calendar Function
Endpoint used to duplicate a Google Calendar function.
Request Example
Section titled “Request Example”curl --request POST \ --url https://chat.api.toolzz.com.br/api/v1/functions/duplicate/{functionId} \ --header 'Authorization: Bearer TOKEN_HERE'Response Example
Section titled “Response Example”{ "id": "uuid", "institutionId": "uuid", "userId": "uuid", "unityId": "uuid", "code": "string", "description": "string", "iconFileId": "", "status": true, "name": "string", "color": "string", "outputs": [], "isActivated": false, "type": "google-calendar", "googleCalendarPlugin": [ { "id": "uuid", "googleId": "string", "calendarId": "email", "timezone": "string", "pluginId": "uuid", "notificationType": null, "notificationContentType": null, "notificationContent": null, "notificationDelayMs": 0, "notificationWaitForSpeech": 0, "createdAt": "timestamp", "updatedAt": "timestamp", "googleUser": { "name": "string", "given_name": "string", "family_name": "string", "picture": "url", "email": "email", "hd": "string" }, "googleToken": "string" } ], "discordPlugin": [], "telegramPlugin": []}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 |
URL Parameters (Path)
Section titled “URL Parameters (Path)”| Parameter | Type | Description | Required |
|---|---|---|---|
functionId | UUID | Unique function identifier. | Yes |
Response description
Section titled “Response description”Here is the exhaustive technical documentation, mapping each individual field present in the plugin object structure (in this case, the copy of the Google Calendar integration).
Full Documentation: All Plugin Fields (Google Calendar)
Section titled “Full Documentation: All Plugin Fields (Google Calendar)”| Category | Key | Type | Description |
|---|---|---|---|
| Root | id | UUID | Unique identifier of the plugin record in the database. |
institutionId | UUID | Unique identifier of the institution owning the resource. | |
userId | UUID | Unique identifier of the user who created/copied the integration. | |
unityId | UUID | Unique identifier of the organizational unit to which the plugin belongs. | |
code | String | Internal reference code for the integration logic. | |
description | String | Instructions (prompt) that teach the AI to operate this function. | |
iconFileId | String | Reference ID for the icon file (empty if default). | |
status | Boolean | Availability state of the plugin in the global system. | |
name | String | Visible name of the plugin (e.g., “Google Calendar-copy”). | |
color | String | Color associated with the visual identity of the plugin in the interface. | |
outputs | Array | Expected output variables (usually empty in configuration). | |
isActivated | Boolean | Defines if the plugin is on (true) or off (false). | |
type | String | Technical type of the integration (e.g., google-calendar). | |
| Instance | googleCalendarPlugin[] | Array[Obj] | Specific settings for the linked Google account: |
...[].id | UUID | Unique identifier of the calendar configuration instance. | |
...[].googleId | String | Unique snowflake/numeric ID of the user’s Google account. | |
...[].calendarId | String | Target calendar e-mail (official calendar ID). | |
...[].timezone | String | Configured timezone (e.g., America/Sao_Paulo). | |
...[].pluginId | UUID | Foreign key pointing to the Root id. | |
| Notifications | ...[].notificationType | Null | Notification trigger type. |
...[].notificationContentType | Null | Notification content format. | |
...[].notificationContent | Null | Notification message text or template. | |
...[].notificationDelayMs | Number | Delay for notification execution in milliseconds. | |
...[].notificationWaitForSpeech | Number | Waiting time for voice input (ms). | |
| Timestamps | ...[].createdAt | String | Instance creation date/time (ISO 8601). |
...[].updatedAt | String | Instance last update date/time (ISO 8601). | |
| Google Profile | ...[].googleUser | Object | Identity data extracted via OAuth2: |
...[].googleUser.name | String | User’s full name in Google. | |
...[].googleUser.given_name | String | User’s first name. | |
...[].googleUser.family_name | String | User’s last name. | |
...[].googleUser.picture | URL | Direct link to the Google profile image. | |
...[].googleUser.email | String | E-mail address of the authenticated account. | |
...[].googleUser.hd | String | Workspace domain (e.g., toolzz.me). | |
| Security | ...[].googleToken | String | Access token for communication with the Google API. |
| Others | discordPlugin[] | Array | List of Discord extensions (empty in this context). |
telegramPlugin[] | Array | List of Telegram extensions (empty in this context). |
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
