Calendly
Import Calendly bookings and cancellations. Each scheduled event becomes a community event.
Connect Calendly
Calendly uses a reviewed Activepieces piece inside Datum. It reads bookings through a personal access token. Datum creates the webhook subscription with a signing key shared only with Calendly.
Create a token
Create a personal access token in Calendly’s API and webhooks settings. Grant
users:read,scheduled_events:read,webhooks:readandwebhooks:writeif Calendly requests scopes. Addorganizations:readto receive bookings across your organization.Open Sources
Open Sources → Connect a source → Calendly. Enter Calendly personal access token. Datum finds your user and organization from the token and generates two separate webhook secrets in its vault.
Leave the webhook scope at its default to receive your own bookings. To receive bookings across your organization, open Advanced settings and choose
organizationfor Webhook scope. User and organization URI overrides are also available there.Press Verify. The worker registers a signed subscription for bookings and cancellations.
An older connection can be without webhook secrets. For such a connection:
- Open its Settings → Webhook.
- Choose Webhook URL.
- Choose Prepare webhook.
Datum adds only the missing secrets that it makes. It keeps your token and the existing secrets. The worker registers the subscription on its next poll. You can do the same repair with
ocmgr connection webhook <connectionId> --jsonor theprepare_connection_webhookMCP tool.Import history
Press Run now on the source’s page. Alternatively, run the following command from your terminal or agent:
ocmgr ingest <connectionId>Datum reads scheduled events and their invitees, starting with the newest events.
Check the result
Check the Verify result for token access and a successful read of one page of scheduled events. Create a test booking. Check the delivery with
ocmgr inbound list --connection <connectionId>. Check the booking in Activity.
Data Datum imports
| Invitees | Name and email address, and when they booked or cancelled |
| Events | One community event per scheduled event, with its title, times, venue and status, so a cancelled event shows as cancelled |
| Venue | In person for a physical location. Online for Zoom, Google Meet, Teams, Webex and GoToMeeting. Unknown otherwise |
| Not collected | Questions and answers, reminder phone numbers, tracking, payments, cancellation reasons, cancel and reschedule links, meeting notes and join links |
Datum treats every address as unverified because a booking form does not prove email ownership. Calendly creates a new invitee for each booking. Datum links bookings within one connection when the email address and name agree. Shared addresses such as info@ and addresses with different names remain separate. Possible matches across sources enter your review queue.
Each booking also appears under its event in Community events, alongside Luma and Zoom events.
Optional Event Gateway
When the instance has Event Gateway, open Settings → Webhook → Webhook URL and choose Prepare webhook. Enabled subscriptions switch to the prepared URL on the next sync, usually within 15 minutes. Datum verifies provider signatures after gateway delivery. Without Event Gateway, subscriptions use the direct receiver.
Troubleshooting
Datum has no webhook subscription
Datum creates the webhook subscription only when both secrets contain at least 32 characters. Store the URL secret and signing key:
ocmgr connection update <connectionId> \
--secret secret=$(openssl rand -hex 32) --secret webhookSigningKey=$(openssl rand -hex 32)
Bookings stopped arriving after I changed the secret
Changing either secret updates the subscription URL and key at the next check. Datum refuses retries against the old subscription. Calendly may not resend those deliveries. Run ocmgr ingest <connectionId> after changing secrets to import those bookings from history.
Calendly says the subscription already exists
Datum searches the 100 newest subscriptions for its previous subscription. It removes that subscription before creating another. Delete the old subscription in Calendly’s webhook settings if it falls outside that range.
From your terminal or agent
ocmgr connection create --kind piece:calendly \
--config '{"user":"https://api.calendly.com/users/<uuid>","organization":"https://api.calendly.com/organizations/<uuid>"}' \
--secret apiKey=<token> --json
ocmgr connection update <connectionId> \
--secret secret=$(openssl rand -hex 32) --secret webhookSigningKey=$(openssl rand -hex 32) --json
ocmgr connection verify <connectionId> --json
ocmgr ingest <connectionId> --json{ "name": "create_connection", "arguments": { "kind": "piece:calendly", "config": { "user": "https://api.calendly.com/users/<uuid>", "organization": "https://api.calendly.com/organizations/<uuid>" }, "credentials": { "apiKey": "<token>" } } }
{ "name": "list_inbound", "arguments": { "connection": "<connectionId>" } }curl "$OCMGR_URL/v1/inbound?connection=<connectionId>" \
-H "Authorization: Bearer $OCMGR_API_KEY"See create_connection and list_inbound for every parameter.
FAQ
Has anyone tested this with a real Calendly account?
Live tests cover signed bookings and cancellations, repeat bookings linked to the same member, historical imports and duplicate replay. A fresh booking and cancellation also reached the outbound webhook destination. Test your own event type before relying on the connector.
Can replaying an old booking undo a cancellation?
Datum reads the current scheduled event when processing a delivery. The original booking activity keeps its original timestamp. Current event details come from Calendly. If Calendly has removed the event, Datum keeps the historical activity and leaves existing event details unchanged.
Why does Datum make the webhook subscription itself?
The piece’s trigger creates subscriptions without a signing key. Anyone with that URL could submit false bookings. Datum supplies your signing key and rejects invalid signatures. It also rejects deliveries older than three minutes.
Where does Datum keep raw deliveries?
The intake log retains deliveries for 30 days. Datum then deletes them. Member erasure clears attributable deliveries sooner. See Webhooks and push.