Get a connect session
Returns the session and, once it is completed, the connection it made or relinked.
https://api.bentocal.com/au/v1 /connect_sessions /{connect_session_id}Authentication
AuthorizationstringheaderBearer <token>requiredAn API key: bc_{live|test}_{region}_…, from the console.
Path parameters
1 paramconnect_session_idstringrequiredConnect session id (
cs_…).
Responses
A one-time link that takes an end user through connecting a calendar account.
idstringrequiredConnect session id (
cs_…).statusstringrequiredpending: created, not opened.redirected: the user went to the provider.completed: a connection was made or relinked.denied: the user declined at the provider.error: seeerror_code.expired: not finished in time.user_idstringrequiredurlstringurirequiredThe hosted connect page. Send the user here.
expires_atstringdate-timerequiredWhen the session expires (30 minutes after creation).
connectionany ofrequiredThe connection made or relinked, once
statusiscompleted.error_codestring | nullrequiredWhy the session ended in
error:account_mismatch(a relink signed in to a different account),connection_limit_reached,connection_not_found(the connection being relinked was deleted),session_expiredorinternal_error. New codes may be added.