Sync a calendar

Reconcile meetings with the provider now. Runs automatically every minute regardless. Only provider-confirmed attendees count as booked.

POSThttps://app.trygtm.com/api/v1/calendars/{calendar_id}/sync
Scope
write

Path parameters

calendar_idstringrequired
The calendar connection's id, from list_calendars. The tool may omit it when the workspace has one connected calendar; the REST route takes it in the path.

Headers

Idempotency-Keystringoptional
A key unique to this write, up to 255 characters. A retry carrying the same key returns the first response instead of running again. Kept for 24 hours.

Request

curl -X POST https://app.trygtm.com/api/v1/calendars/8f2a91c4-6d1e-4c0a-9a57-2f3b1c7e9d10/sync \
  -H "Authorization: Bearer $TRYGTM_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

Response

{
  "data": {
    "status": "synced",
    "meetings": 3
  }
}

Was this page helpful?