Get a link that connects Google Calendar
Google asks the calendar’s owner to agree in a browser, so the API can’t connect a calendar by itself: send the link this returns to whoever owns the calendar. They sign in to LobbyStack as an owner or admin of the business, agree on Google’s page, and land on the dashboard’s integrations page, where they can pick the calendar to use; PATCH /calendars/ can pick it too. For a business nobody has claimed yet, hand it over with POST /team/claim-link first, unless the account the key acts as connects its own calendar. The link works until expires_at. Connecting another Google account replaces the business’s calendar, the connection without a staff member, so to add a staff member’s calendar, first move the current one to its staff member with PATCH /calendars/. A deployment without Google Calendar answers 403.
Autorisations
An API key from Settings > API keys (lsk_...), which acts on its own business, or a platform key from the PLATFORM_API_KEYS setting (lsp_...), which onboards and manages businesses. Scopes: business:read, business:write, calls:read, contacts:read, contacts:write, appointments:read, appointments:write, messages:read, knowledge:read, knowledge:write, webhooks:manage, billing:manage, phone_numbers:manage, team:manage, businesses:create, users:create. Only platform keys can hold businesses:create and users:create.
En-têtes
The business a platform key acts on. Required with a platform key. A per-business key may leave it out; if it sends one, it must be the key's own business.
Réponse
Created
A link that connects a Google Calendar to the business.