Skip to content

Create Cal.com Function

Endpoint used to create a Cal.com integration function.

Terminal window
curl --request POST \
--url https://converflow.api.prod.toolzz.media/api/v1/calcom/integration \
--header 'Authorization: Bearer TOKEN_HERE' \
--header 'Content-Type: application/json' \
--data '
{
"title": "string",
"unitId": "uuid",
"apiKey": "string",
"calcomUsername": "string",
"timezone": "string",
"prompt": "string",
"checkAvailabilityEnabled": boolean,
"createBookingEnabled": boolean
}
'
{
"id": "uuid",
"botId": null,
"unitId": "uuid",
"title": "string",
"calcomUsername": "string",
"apiKey": "string",
"isActive": true,
"isTokenMasked": true,
"timezone": "string",
"prompt": "string",
"checkAvailabilityEnabled": true,
"createBookingEnabled": true,
"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
KeyTypeDescriptionRequired
titleStringIntegration identifier name in the panel (e.g., “Calcom”).Yes
unitIdUUIDUnique identifier of the owning organizational unit.Yes
apiKeyStringAPI key (Live Key) for secure authentication with Cal.com.Yes
calcomUsernameStringUsername or slug of the user on the Cal.com platform.Yes
timezoneStringDefault timezone for appointments (e.g., UTC, America/Sao_Paulo).Yes
promptStringFunction Instruction: Guides the AI on how and when to use the scheduler.Yes
checkAvailabilityEnabledBooleanIf true, the AI can check available times in the calendar.Yes
createBookingEnabledBooleanIf true, the AI is allowed to make meeting bookings.Yes

KeyTypeDescriptionRequired
idUUIDUnique identifier of the integration in the database.Yes
botIdNull/UUIDToolzz AI Agent ID: Linked AI identifier (null if none).No
unitIdUUIDUnique identifier of the owning organizational unit.Yes
titleStringIntegration identifier name (e.g., “Calcom”).Yes
calcomUsernameStringUsername/Slug on the Cal.com platform.Yes
apiKeyStringCal.com API key (masked for security).Yes
isActiveBooleanDefines if the integration is enabled for use.Yes
isTokenMaskedBooleanIndicates that the apiKey is hidden by asterisks in the response.Yes
timezoneStringConfigured default timezone (e.g., UTC).Yes
promptStringFunction Instruction: Behavioral guidelines for the AI.Yes
checkAvailabilityEnabledBooleanIf true, the AI can read the calendar availability.Yes
createBookingEnabledBooleanIf true, the AI can create new appointments/bookings.Yes
defaultEventTypeIdNull/NumberDefault event type ID for quick bookings.No
defaultEventTypeSlugNull/StrDefault event type slug (e.g., 30min).No
createdAtStringRecord creation date and time (ISO 8601).Yes
updatedAtStringDate and time of the last data update.Yes

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