Skip to content

Update Cal.com

Endpoint to update a Cal.com integration in the ToolzzAI agent.

Terminal window
curl --request PUT \
--url https://chat.api.toolzz.com.br/api/v1/calcom/integration/{integrationId} \
--header 'Authorization: Bearer TOKEN_HERE' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"unitId": "uuid",
"calcomUsername": "<string>",
"timezone": "<string_timezone>",
"prompt": "<string_prompt_ia>",
"checkAvailabilityEnabled": boolean,
"createBookingEnabled": boolean
}
'
{
"id": "uuid",
"title": "string",
"calcomUsername": "string",
"timezone": "string",
"prompt": "string",
"apiKey": "cal_string",
"isTokenMasked": true,
"isActive": true,
"checkAvailabilityEnabled": boolean,
"createBookingEnabled": boolean,
"botId": null,
"unitId": "uuid",
"defaultEventTypeId": null,
"defaultEventTypeSlug": null,
"createdAt": "YYYY-MM-DD HH:mm:ss.SSSSSS",
"updatedAt": "YYYY-MM-DD HH:mm:ss.SSS"
}
ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
integrationIdUUIDUnique configuration identifier in the database.Yes
KeyTypeDescriptionRequired
titleStringTool identifier name in the panel (e.g., “Calcom”).Yes
unitIdUUIDUnique identifier of the owning organizational unit.Yes
calcomUsernameStringUsername or profile slug on the Cal.com platform.Yes
timezoneStringDefault timezone for appointments (e.g., UTC).Yes
promptStringFunction Instruction: Commands that guide the AI’s behavior.Yes
checkAvailabilityEnabledBooleanIf true, allows the AI to check calendar availability.Yes
createBookingEnabledBooleanIf true, allows the AI to make new appointments.Yes

KeyTypeDescription
idUUIDUnique configuration identifier in the database.
titleStringTool identifier name (e.g., “Calcom”).
calcomUsernameStringUsername or profile slug on Cal.com.
timezoneStringDefault timezone configured for the calendar.
promptStringFunction Instruction: Prompt that guides the AI’s behavior.
apiKeyStringAPI key masked for security.
isTokenMaskedBooleanIndicates that the apiKey is hidden by asterisks.
isActiveBooleanDefines if the integration is enabled for operation.
checkAvailabilityEnabledBooleanPermission for the AI to read available times.
createBookingEnabledBooleanPermission for the AI to make new appointments.
botIdNull/UUIDToolzz AI Agent ID: Linked AI identifier.
unitIdUUIDUnique identifier of the owning organizational unit.
defaultEventTypeIdNull/NumberDefault event type ID (e.g., fixed meeting).
defaultEventTypeSlugNull/StrDefault event type slug (e.g., 30min).
createdAtStringOriginal record creation date and time.
updatedAtStringDate and time of the last data update.

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