Scheduling & calendar
Cal.com mock API
Cal.com API v2: event types, schedules, bookings (cancel, reschedule, confirm, decline), webhooks and the current user, with signed webhooks.
At a glance
- Operations
- 121
- Stateful operations
- 24
- Stateful resources
- 5
- Webhook events
- 5
- Vendor API version
- v2
- Verification
- Spec-verified
How it works
Use Cal.com without calling Cal.com, Inc.
- Install the mock from the library into a workspace. It runs as a virtual service.
- Point your client's base URL at the virtual service instead of the vendor.
- Authenticate the way you already do. The mock accepts the same credential shape:
Authorization: Bearer cal_live_ExampleApiKey0123456789 State
Resources that remember
Writes persist per caller, so a create followed by a read returns what you created.
| Resource | Operations |
|---|---|
| Event types | 5 |
| Schedules | 6 |
| Bookings | 7 |
| Webhooks | 5 |
| Me | 1 |
Webhooks
Events your handlers can receive
- BOOKING_CANCELLED
- BOOKING_CREATED
- BOOKING_REQUESTED
- BOOKING_REJECTED
- BOOKING_RESCHEDULED
Deliveries are signed with the hmac scheme, so your verification code runs unchanged.
Coverage
121 operations
24 of them are stateful. The largest groups:
| Group | Operations |
|---|---|
| Other operations | 97 |
| Bookings | 7 |
| Schedules | 6 |
| Event types | 5 |
| Webhooks | 5 |
| Me | 1 |
Verification
Spec-verified
Generated operations are checked against the vendor OpenAPI description, which proves shape and routing. Stateful operations and scenario suites prove behaviour. Responses are not yet compared with a live vendor sandbox.
4 operations cannot be checked against the specification.
Source and limits
License, source and limits
- Generated from the Cal.com, Inc. API description, licensed under MIT.
- Cal.com, Inc. API documentation
- Source specification
Each collection (event types, schedules, bookings, webhooks) holds up to 1 MiB of objects per API key; writes beyond that are dropped (x-maxoperf-vs-state: capacity). Stateful resources are event types (CRUD; a confirmationPolicy of type always makes new bookings pending), schedules (CRUD; creating or patching isDefault true demotes the previous default, and the default cannot be deleted), bookings (create, list, get, cancel, reschedule, confirm, decline; the same event type and start twice is rejected), top-level user webhooks (CRUD; numeric ids as the pinned spec declares) and me. Booking list filters are status (upcoming, cancelled, unconfirmed; past and recurring answer empty), attendeeEmail and eventTypeId with sortStart, take and skip; afterStart, beforeEnd and the other filters are ignored. Availability (/v2/slots), seated and recurring bookings, location updates, attendees, guests, team and organization endpoints, nested event-type webhooks and OAuth routes answer schema-valid generated responses that store nothing, and a booking on a slot /slots does not list is accepted. The cal-api-version header is accepted and ignored. Locations of event types are stored as sent (new event types start with none). Error bodies use the Cal.com v2 envelope {status:error, timestamp, path, error:{code, message}}. Webhooks BOOKING_CREATED (also on confirm), BOOKING_REQUESTED, BOOKING_RESCHEDULED, BOOKING_CANCELLED and BOOKING_REJECTED are signed with HMAC-SHA256 hex in x-cal-signature-256 using each webhook secret (a webhook without a secret receives unsigned deliveries) and carry x-cal-webhook-version 2021-10-20. Any non-empty Authorization header identifies the caller.
MaxoPerf is not affiliated with, endorsed by, or sponsored by Cal.com, Inc. Cal.com is a trademark of its owner.