Connect a calendar account
Verifies the credential against the provider and, only if it works, stores it encrypted. A credential the provider rejects is a 400 and no connection is created: a connection that has never worked would next be exercised by an inbound call at 2am, with nobody there to fix it.
Authorizations
Body
Input for connecting a calendar account.
Who holds the calendar. CAL_COM and GO_HIGH_LEVEL are connected with a key, GO_HIGH_LEVEL also needing the sub-account the key belongs to; GOOGLE and CALENDLY are connected by consent, through POST /v1/connections/calendar/google/authorize-url and POST /v1/connections/calendar/calendly/authorize-url.
CAL_COM, GOOGLE, CALENDLY, GO_HIGH_LEVEL The provider account’s API key. For CAL_COM, a Cal.com API key (starts with cal_). For GO_HIGH_LEVEL, a sub-account Private Integration Token, which must carry the calendars.readonly, calendars/events.readonly, calendars/events.write, contacts.readonly, contacts.write and locations.readonly scopes. It is verified against the provider before anything is stored, so an invalid key is a 400 and no connection is created. Stored encrypted and never returned.
1Required for GO_HIGH_LEVEL and ignored by every other provider: the sub-account the token belongs to, for example ve9EPM428h8vShlRW1KT. A Private Integration Token does not name its own sub-account and every calendar call needs one, so the two are stored and verified together: a token minted in a different sub-account is a 400.
1 - 64