docs: Clean up (#26879)

* clean-up nav

* Documentation edits made through Mintlify web editor

* Documentation edits made through Mintlify web editor

* further clean up

* add oauth in sidebar

* --

* land in v2

* land in v2

* Documentation edits made through Mintlify web editor

* Documentation edits made through Mintlify web editor

* cleanup

* Documentation edits made through Mintlify web editor

* deprecated v1

---------

Co-authored-by: Syed Ali Shahbaz <[email protected]>
Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
This commit is contained in:
mintlify[bot]andSyed Ali Shahbaz authored and GitHub committed 2026-01-15 15:18:23 +00:00
1 parent 9ea71d2ba5
commit c5213be60d
7 files changed
+46 -132

No files matched your search

+5 -1
View File
@@ -1,8 +1,12 @@
---
title: Global event types
title: Global event types [Deprecated]
description: Event types that every managed user or a subset of managed users will have automatically
---
<Warning>
This is now deprecated and under Maintenance for existing users only
</Warning>
If you want all of your managed users or a subset of managed users to have the same event type set up automatically, then follow along.
## Prerequisites
-4
View File
@@ -5,10 +5,6 @@ icon: "presentation-screen"
<img src="/images/Platform_banner.png" width="800" height="800" />
<a href="https://app.cal.com/signup?redirect=https://app.cal.com/settings/platform/new" heading="">
Get started
</a>
<CardGroup cols={2}>
<Card href="/platform/atoms" title="Atoms" icon="rocket">
Customizable UI components handling scheduling on behalf of your users
+9 -12
View File
@@ -4,10 +4,7 @@ description: Find out how to use Cal "atoms" to integrate scheduling into your p
"icon": "rocket"
---
## 1. Unlocking access to atoms
1. Sign up for a Platform account [here](https://app.cal.com/signup?redirect=https://app.cal.com/settings/platform/new)
## 2. Setting up an OAuth client
## 1. Setting up an OAuth client
Once your account is created, the next step is to create an OAuth client. This allows you to connect your users to Cal and handle their scheduling with atoms.
@@ -23,7 +20,7 @@ Once your account is created, the next step is to create an OAuth client. This a
4. Profile: When you proceed to the chapter 2, you will create your users on our end, so that we can manage their scheduling. Profile permissions allow to either read or update users you create on our end.
5. Apps: used to connect Google Calendar, Zoom, Microsoft Teams, etc. to atoms.
## 3. Creating managed users connected to the OAuth client
## 2. Creating managed users connected to the OAuth client
In order for atoms to handle scheduling on behalf of your users, you have to create what we call a “managed user” for each of your users.
@@ -93,7 +90,7 @@ Second, if `timeZone` is passed in the request, the user's default schedule from
if the `timeZone` is not passed, then user has no default schedule and user can't be booked and user can't set availability using the `AvailabilitySettings` atom. You will have to set it up manually via the `/schedules` endpoints.
We recommend setting the `timeZone` for ease of use.
## 4. Backend: setting up a refresh token endpoint
## 3. Backend: setting up a refresh token endpoint
You have to set up an endpoint on your server to which atoms can send an expired access token and receive new one in return. This exchange will be automatically handled by atoms when you provide this endpoint URL when setting up frontend in the next step.
@@ -122,7 +119,7 @@ Shortly:
The atoms will now use the new access token to handle scheduling on behalf of your user. Access token expires after 60 minutes and atoms
then will make a request to your refresh token endpoint to get a new access token while also refreshing the refresh token.
## 5. Managing refresh token expiry
## 4. Managing refresh token expiry
Each refresh token is valid for 1 year. When a managed user's access token is refreshed, the refresh token is refreshed too.
However, to make sure that refresh tokens do not expire for less active users you have 2 options:
@@ -132,11 +129,11 @@ is about to expire, then refresh tokens using the [`/refresh`](https://cal.com/d
refresh token has expired, call the [`/force-refresh`](https://cal.com/docs/api-reference/v2/platform-managed-users/force-refresh-tokens) endpoint - it allows you to refresh managed user tokens
using only the OAuth client ID and client secret and is intended to be used in cases when one of the tokens is lost or the refresh token is expired.
## 6. Frontend: setting up atoms
## 5. Frontend: setting up atoms
Atoms are customizable UI components handling scheduling on behalf of your users.
### 6.1 Install the atoms package
### 5.1 Install the atoms package
npm:
@@ -156,7 +153,7 @@ pnpm:
pnpm add @calcom/atoms
```
### 6.2 Set up environment variables
### 5.2 Set up environment variables
CAL_OAUTH_CLIENT_ID: OAuth client ID
@@ -241,7 +238,7 @@ function MyApp({ Component, pageProps }) {
export default MyApp;
```
## 7. Frontend: using atoms
## 6. Frontend: using atoms
It’s very easy, just import the atom and drop it in code! For example, for users to connect their Google Calendar drop in "Connect.GoogleCalendar" component - it will handle everything.
@@ -288,7 +285,7 @@ other more complex atoms will expose multiple classNames and props to react to e
/>;
```
## 8. Front-end: passing additional props to CalProvider
## 7. Front-end: passing additional props to CalProvider
The CalProvider component offers several additional props to customize its behavior and appearance:
1. autoUpdateTimezone: By default, the atoms automatically update the user's timezone. You can disable this feature by setting autoUpdateTimezone to false.
-32
View File
@@ -1,32 +0,0 @@
---
title: Setup
icon: "user-shield"
description: Get started with creating a platform account
---
<Steps>
<Step title="Signup to Cal.com">
Head over to the [Cal.com](https://cal.com/) landing page and create a new account by clicking on the **Get Started** button at the top right corner.
<img src="/images/Landing_Page.png" />
This will redirect you to the Cal.com signup page which looks like this
<img src="/images/Signup_page.png" />
</Step>
<Step title="Create your platform team">
After you sign up and create your account, go the [platform setup page](https://app.cal.com/settings/platform/new) where you are prompted to set up your platform team.
<img src="/images/Platform_signup.png" />
</Step>
<Step title="Subscribe to stripe">
Once your platform team is created, you'll need to subscribe via stripe for the plan that you want to choose.
<img src="/images/Platform_subscribe.png" />
</Step>
<Step title="You're ready">
Once you subscribe via stripe, you will be redirected back to the platform setup page where you'll be able to see your platform dashboard. You're ready to start building with platform, head over to <a href="/docs/platform/quickstart">Quickstart</a> for further steps.
<img src="/images/Platform_dashboard.png" />
</Step>
</Steps>