FabricFabricSDK
Plugins

Cal.com

List, fetch, and cancel Cal.com bookings; enumerate event types and schedules.

Authentication

TypeDefaultDetails
api_keyCal.com API key passed as Authorization: Bearer cal_...

Cal.com requires the cal-api-version: 2024-08-13 header on every request — the plugin sets it automatically.

Endpoints

PathRiskDescription
bookings.listreadList bookings (filterable by status).
bookings.getreadFetch a single booking by uid.
bookings.canceldestructiveCancel a booking. Notifies the attendee.
event-types.listreadList event types for the authenticated user.
schedules.listreadList availability schedules.

bookings.list

const { data } = await fabric.cal.api.bookings.list({
  status: 'ACCEPTED',
  take: 25,
});
FieldTypeDescription
status'ACCEPTED' | 'PENDING' | 'CANCELLED' | 'REJECTED'Filter
takenumberPage size
skipnumberOffset

bookings.cancel

await fabric.cal.api.bookings.cancel({
  uid: 'aBcD1234',
  cancellationReason: 'Reschedule requested',
});

Cautious-mode plugins block this until approved — see Permissions.

Factory

import { calCom } from '@fabricorg/integrations/plugins';

const fabric = createFabric({
  plugins: [calCom({ apiKey: process.env.CAL_API_KEY })],
});