chore: add dev docs on mintlify (#16935)

* --init

* progress...

* add more docs

* bunch of changes and added back platform

* development guides added

* more guides in develop with cal

* self hosted WIP

* deployments

* fix deployment steps

* self-hosted guides

* ..

* Removed the development only sections

* Removed 'with Cal.com'

* use steps component for steps

---------

Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
Syed Ali ShahbazandKeith Williams authored and GitHub committed 2024-10-08 02:32:16 -03:00
1 parent 66378160df
commit da55306a5a
55 files changed
+2964 -681

No files matched your search

@@ -0,0 +1,30 @@
---
title: "How to setup API in a local instance"
---
To test API in your local instance, you have the following pre-requisites:
<Steps>
<Step title="Clone the cal.com repository">
Please close the cal.com repository. You can do it by following the instructions provided in [Installation](/developing/local-development)
</Step>
<Step title="Add license key in .env">
Add a staging license key that goes in as value for `CALCOM_LICENSE_KEY` in your root `.env` file.
You can use the following as staging license key
```
1a1f8138-0bfc-4f37-b4af-1e24fd145839
```
</Step>
<Step title="Install API submodule">
Next, you need to install API submodule by following the instructions provided in [API submodule](/developing/local-development#api)
</Step>
<Step title="Start development server and create API key">
Start the cal.com server using `yarn dev` on localhost and create the test API keys by visiting `/settings/developer/api-keys`
</Step>
<Step title="Start API server and test API">
Start the API server by running `yarn workspace @calcom/api dev` and start testing your API locally
</Step>
</Steps>
<Info>By default, the app server runs on port 3000 and the API server runs on port 3003</Info>
@@ -0,0 +1,25 @@
---
title: "Adding your first app"
---
Head over to the **apps** page, where you'll find our app store. We suggest firstly adding a calendar integration, then optionally a video conferencing platform, and then try out the other apps.
<iframe
width="560"
height="315"
src="https://www.youtube.com/watch?v=V6mwvgcAxi0"
title="Adding your first app"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
Find the app you'd like to install, and either click **Install** in the top right of that app's card to add it right away, or click on the app's card to view more details.
In the details page you can read more about each app, then click **Install** in the top right of the page to add it to your account.
<img src="./images/i1599x929-tUttNKwBum0Z_p1vwkt.png"
legend="The app details page for Google calendar"
/>
If the app requires authentication, for instance to connect your Google Account, a dialog will be opened prompting you to authenticate. Once complete, the app will be successfully installed.
@@ -0,0 +1,95 @@
---
title: "Build a greeter app"
---
## Building a **Greeter** app
<Steps>
<Step title="Create an app">
Create an app with the title "**Greeter".** Run the following command and provide the information it is looking for.
```bash
yarn app-store create
```
<iframe
width="560"
height="315"
src="https://cdn.iframe.ly/AK13z2x"
title="Step 1"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
</Step>
<Step title="Install the app">
The app is created in Step 1 and we should install it now.
</Step>
<Step title="Add the functionality">
The app is installed but it doesn't do anything because we haven't written added any functionality to it. Let's add a button in the main navigation that greets the user.
1. Create a component `greeter/components/GreeterButton.tsx` - You can name it whatever you want.
2. Import this component in `Shell.tsx` and add it wherever you want to so that the button is available on all pages.
```js
/**
* GreeterButton.tsx
* It creates a button that can be added anywhere. The button is visible only if the app is installed.
*/
import useApp from "@calcom/lib/hooks/useApp";
import showToast from "@calcom/lib/notification";
import { Button } from "@calcom/ui";
import useMeQuery from "@lib/hooks/useMeQuery";
export default function GreeterButton() {
const { data: user } = useMeQuery();
const { data: greeterApp } = useApp("greeter");
// Make sure that greeterApp is installed. We shouldn't show the button when app is not installed
if (!user || !greeterApp) {
return null;
}
return (
<Button
onClick={() => {
showToast("Hello, " + user.name, "success");
}}
>
Greet Me!
</Button>
);
}
```
```;
/**
* Shell.tsx
*/
// ...
import GreeterButton from "@calcom/app-store/greeter/components/GreeterButton";
// ...
<GreeterButton />;
```
<img src="./images/i1280x250-dXnl-QuzSMbl_xydd9y.png" />
A sample line where I used the component in the demo
<iframe
width="560"
height="315"
src="https://www.loom.com/embed/b0fd31cc11444799af7a6f12a01d4321"
title="Step 3"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
</Step>
</Steps>
That's it. You now have a fully functional Greeter app. This is the simplest possible demonstration of how you can build an app and what it can do. There are simply no restrictions on what an app can achieve.
@@ -0,0 +1,86 @@
---
title: "How to build an app"
---
Since Cal.com is open source we encourage developers to create new apps for others to use. This guide is to help you get started.
You can create an app by simply running the following command. It creates a new directory under [`packages/app-store/`](https://github.com/calcom/cal.com/tree/main/packages/app-store)``
```bash
yarn create-app
```
You just need to provide a few inputs and then you will have your app created within a few seconds. [See, how you can build a very simple app that greets your users.](/developing/guides/appstore-and-integration/build-a-greeter-app)
### Steps in creating an app
<Steps>
<Step title="Create app">
Create the app using the `create-app` command. The app can be installed now, but at this moment it isn't doing anything. It is just installed and ready to do what you want it to do.
</Step>
<Step title="Adding the functionalities">
There is pretty much no restriction on what an App can do. For example:
- Hooking into existing functionalities to enhance them - _In all these cases you need to first check if the app is installed or not. There is_ `_useApp(appSlug)_` _react hook to do that. It gives you the app details if the app is installed._
- Apps that need to connect with third parties like Google Calendar, Apple Calendar, Google Meet.
- A very powerful app that has its own data and pages - [Routing Forms App](https://github.com/calcom/cal.com/tree/main/packages/app-store/ee/routing_forms) is a great example of this.
- There are other powerful apps already in the [App Store](https://app.cal.com/apps) that you can get an idea of the capabilities of apps.
</Step>
</Steps>
### Structure
All apps can be found under [`packages/app-store`](https://github.com/calcom/cal.com/tree/main/packages/app-store). In this folder is `_baseApp` which shows the general structure of an app.
```bash
├──_example
| ├──config.json -> Autogenerated by cli. You are free to edit it.
| ├──api
| | ├──add.ts -> Autogenerated by cli. You would want to edit it if your app needs to connect with a third party
|
| ├──components
|
| ├──static -> Add all static assets here
| | ├──icon.svg -> This is used as the logo for your App.
| ├──index.ts
| ├──package.json
| ├──.env.example -> Specify the environmental variables (ex. auth token, API secrets) that your app will need if it's applicable
| ├──README.mdx -> Customize your app description. You can add an image slider as well.
```
### Other Commands
**Deleting an app:**
```bash
yarn app-store delete --slug APP_NAME
```
**Editing an app:**
```bash
yarn app-store edit --slug APP_NAME
```
### Important Points
* Make sure to have `yarn app-store:watch` command running when developing an app so that autogenerated files are always up to date.
* If app-store cli fails at this step, try to run this command manually first. Solve that problem and then re-run cli. The command can fail because there are Prisma migrations that can't be applied automatically.
<img src="./images/i1600x120-WfEdMhsOOLSg_sitk6a.png" />
A sample failure in create command
* When you edit an app following things aren't updated.
* README.mdx - It would still have the old description. Feel free to edit it manually.
### Publishing Your App to the Cal.com App Store
Once your app is working in your environment, you can publish it to Cal.com App Store by opening a PR [here](https://github.com/calcom/cal.com).
If you need any help feel free to join us on [Discord](https://go.cal.com/discord).
@@ -0,0 +1,33 @@
---
title: "Assign people to a call from a CRM or database"
---
## Option 1: Based on CRM integration
If you are working with a CRM such as Salesforce, Hubspot, Close.com or similar, you can use our integrations to connect to your apps.
We're using the Assignee APIs from each service to understand which person is assigned to an email of a new lead.
By prefilling your booking link with [email protected] our integration will look up who has spoken to [email protected] before and skip all round-robin logic.
Here is an example URL: i.cal.com/sales/[email protected]
This works with Embeds as well, just add the parameter to your CalLink property.
## Option 2: Based on Emails
If you are using a different product that we don't integrate with, or you need something more custom you can also achieve this with our Organization plan.
We've built our Organization system in a way where every email can be turned into a scheduling link with your company subdomain:
[email protected] → acme.cal.com/jane (or schedule.acme.com/jane)
This means if you have a table
| User | AccountExecutive |
| :----------- | :----------- |
| [email protected] | [email protected] |
You could show [email protected] an embed inside your application simply by using the value from AccountExecutive to build the link:
[email protected] → acme.cal.com/jane either with a string replace function or a simple regex.
@@ -0,0 +1,33 @@
---
title: "Integration with HubSpot"
---
To use Cal.com with HubSpot, you only need two things:
<Steps>
<Step title="Pre-requisite">
You need to have an account on both platforms
</Step>
<Step title="Install Hubspot App">
You'll need to go to the [HubSpot app page](https://app.cal.com/apps/hubspot) and click the "Install" button ⬇
<img src="./images/i1599x807-x2DRUUT-DkbF_yljih9.png" />
</Step>
<Step title="Choose hubspot account">
After clicking the "Install" button, you will need to select the HubSpot account you want to use Cal.com with⬇
<img src="./images/i1600x1287-XKGU-PMvAkrB_zq004d.png" />
</Step>
<Step title="Connect app">
Then, you will need to give the listed permissions to Cal.com clicking the button "Connect app" in order to manage certain aspects of your account, in order to provide you with the functionality you are looking for. By the way, we are making our app official with HubSpot, so you will not be seeing the warning very soon ⬇
<img src="./images/i1600x1253-8BQ3KGqrqGTp_xrhqzd.png" />
</Step>
</Steps>
---
Done! You will be redirected to Cal.com Installed Apps showing your newly installed app ready for you to take advantage of ⬇
<img src="./images/i1600x813-fFKsveiL2GuM_wk8cv1.png" />
@@ -0,0 +1,70 @@
---
title: "How to use OAuth to authorize apps"
---
As an example, you can view our OAuth flow in action on Zapier. Try to connect your cal.com account [here](https://zapier.com/apps/calcom/integrations).
To enable OAuth in one of your apps, you will need a Client ID, Client Secret, Authorization URL, Access Token Request URL, and Refresh Token Request URL.
<img src="./images/oauth-zapier.png" />
### OAuth Client Credentials
Only the cal.com team can create new OAuth clients. Please contact us at [[email protected]](mailto:[email protected]) with the following details: client name, redirect URI (provided by the app), app logo, and a link to the app.
The Cal.com team will register the app and provide you with the Client ID and Client Secret. Keep these credentials confidential and secure.
### Authorization URL
To initiate the OAuth flow, direct users to the following authorization URL:
- `https://app.cal.com/auth/oauth2/authorize`
- URL Parameters:
- *client_id*
- *state*: A securely generated random string to mitigate CSRF attacks
- *redirect_uri*: This is where users will be redirected after authorization
- *scope*: Specify the required scopes. Current scopes include READ_BOOKING and READ_PROFILE. Additional scopes can be added as needed.
After users click *Allow*, they will be redirected to the redirect_uri with the code (authorization code) and state as URL parameters.
### Access Token Request
Endpoint: `POST https://app.cal.com/api/auth/oauth/token`
Request Body:
- *code*: The authorization code received in the redirect URI
- *client_id*
- *client_secret*
- *grant_type*: "authorization_code"
- *redirect_uri*
Response:
```json
{
access_token: “exampleAccessToken”
refresh_token: “exampleRefreshToken”
}
```
### Refresh Token Request
Endpoint: `POST https://app.cal.com/api/auth/oauth/refreshToken`
Request Body:
- *grant_type*: "refresh_token"
- *client_id*
- *client_secret*
Response:
```json
{
access_token: “exampleAccessToken”
}
```
### Testing OAuth Credentials
To verify the correct setup and functionality of OAuth credentials you can use the following endpoint:
`GET https://app.cal.com/api/auth/oauth/me`
Headers:
- Authorization: Bearer *exampleAccessToken*
### Authorize requests with Bearer token
Ensure that Cal.com endpoints accessed by the app support authentication via Bearer Token.
If this is not the case, it will be necessary to update the code accordingly.
Here is an example of an endpoint that supports both apiKey and Bearer token authentication: [/listBookings endpoint](https://github.com/calcom/cal.com/blob/main/packages/app-store/zapier/api/subscriptions/listBookings.ts)
@@ -0,0 +1,50 @@
---
title: "Setting up OIDC with okta"
---
<Steps>
<Step title="Create an application with your OIDC provider">
For example, in Okta, once you create an account, you can click on Applications on the sidebar menu:
<img src="./images/i1600x900-oVjaQ0tU3AnO_wrzp85.png" />
</Step>
<Step title="Click on Create App Integration">
<img src="./images/i1600x900-wrIlZkLdZ6kL_wf7mxn.png" />
</Step>
<Step title="Select OIDC in the modal form, along with Web App, and click Next">
<img src="./images/i1600x900-IfRWYg8XuCMI_tkwyft.png" />
</Step>
<Step title="Enter the Sign in redirect URL and sign out URL">
Enter the Sign in redirect URL (or auth URL) as:
```
https://app.cal.com/api/auth/oidc
```
And the sign out URL as:
```
https://app.cal.com/auth/login
```
<img src="./images/i1600x900-TqgDJpBoiR-C_onrwit.png" />
</Step>
<Step title="Gather Client Secret, Client ID, and Well Known URL">
Now you should have the Client Secret and Client ID with you. You would also need the Well Known URL which for Okta is generally of the type:
```
https://{yourOktaDomain}/.well-known/openid-configuration
```
So, if your Okta domain is `dev-123456.okta.com`, your well known URL would be:
```
https://dev-123456.okta.com/.well-known/openid-configuration
```
</Step>
<Step title="Log in">
Log in with the Organization Admin user.
</Step>
<Step title="Go to Organization SSO Settings">
Visit `https://app.cal.com/settings/organizations/sso` and you should see something like this:
<img src="./images/i1600x900-8ufcUyCOVwV6_hdudno.png" />
</Step>
<Step title="Configure SSO with OIDC">
Click on Configure SSO with OIDC, and then enter the Client Secret, Client ID, and Well Known URL from Step 5, and click save.
<img src="./images/i1600x900-GN1NLgrcf5r4_tmhni3.png" />
</Step>
</Steps>
That's it. Now when you try to login with SSO, your application on Okta will handle the authentication.
@@ -0,0 +1,82 @@
<Steps>
<Step title="Create an application with your OIDC provider">
For example, in Okta, once you create an account, you can click on Applications on the sidebar menu:
<img src="./images/i1600x900-oVjaQ0tU3AnO_wrzp85.png" />
</Step>
<Step title="Click on Create App Integration">
<img src="./images/i1600x900-wrIlZkLdZ6kL_wf7mxn.png" />
</Step>
<Step title="Select SAML or OIDC and Web App, then click Next">
Note you will have to fill in the appropriate fields for the SAML or OIDC setup to continue.
- [SAML Setup](/developing/guides/auth-and-provision/sso-setup#setting-up-saml-login)
- [OIDC Setup](/developing/guides/auth-and-provision/sso-setup#setting-up-oidc-login)
<img src="./images/i1600x900-IfRWYg8XuCMI_tkwyft.png" />
</Step>
<Step title="Enable SCIM provisioning">
Once the application is created, under General -> App Settings, click "Edit" and then the checkbox "Enable SCIM provisioning".
<img src="./images/scim/app-settings-enable-scim.webp" />
</Step>
<Step title="Go to Directory Sync in Cal.com">
Next, go to your instance of Cal.com and navigate to `https://app.cal.com/settings/organization/dsync` and click configure.
<img src="./images/scim/dsync-configure.webp" />
</Step>
<Step title="Configure Directory Sync">
In the "Configure Directory Sync" form, choose a directory sync name and select "Okta SCIM v2.0" as the "Directory Provider".
<img src="./images/scim/dsync-configure-provider.webp" />
</Step>
<Step title="Take note of SCIM Base URL and SCIM Bearer Token">
<img src="./images/scim/dsync-configure-info.webp" />
</Step>
<Step title="Setup Provisioning in Okta">
In Okta, go to your application. Navigate to the "Provisioning" tab and click "Integration" under "Settings".
<img src="./images/scim/okta-dsync-options.webp" />
- Under "SCIM connector base URL" enter the "SCIM Base URL" from Cal.com
- Under "Unique identifier field for users" enter "email"
- Under "Supported provisioning actions" enable:
- "Import New Users and Profile Updates"
- "Push New Users"
- "Push Profile Updates"
- "Push Groups"
- Under "Authentication Mode" choose "HTTP Header"
- Under "Authentication" enter the "SCIM Bearer Token" from Cal.com
- When you hit save, it will make a test call to the "SCIM Base URL"
</Step>
<Step title="Go to the 'To App' settings">
After saving, navigate to the "To App" settings, still under the "Provisioning" tab.
</Step>
<Step title="Enable Provisioning to App">
Under "Provisioning to App", click "Edit" and enable:
- "Create User"
- "Update User Attributes"
- "Deactivate User"
</Step>
<Step title="Update Attribute Mapping">
Under "\{Your application name\} Attribute Mapping," remove all fields except for:
- "username"
- "givenName"
- "familyName"
- "email"
- "displayName"
</Step>
<Step title="Map Attributes from Okta Profile">
Set each of these properties to "Map from Okta Profile" and the related field. Under "Apply On" select "Create and Update".
<img src="./images/scim/okta-property-settings.webp" />
</Step>
<Step title="Assign users and groups to the app">
You can now assign users and groups to the app.
</Step>
</Steps>
## Mapping Okta Groups to Cal.com Teams
When provisioning groups to your organization, Okta groups can be mapped to teams within your organization, and users will be auto-assigned to these teams.
On `https://app.cal.com/settings/organization/dsync`, there is a table with the teams under your organization. Click on "Add group name" to map the Okta group to the team.
<Note>
The group name must be spelled exactly as it is shown on Okta.
</Note>
When you push the group to your organization, those users will automatically be added to the team.
<img src="./images/scim/group-team-mapping.webp" />
@@ -0,0 +1,75 @@
---
title: "SSO setup"
---
Cal.com supports both Security Assertion Markup Language (SAML) and OpenID Connect (OIDC), two of the industry's leading authentication protocols. We prioritize your ease of access and security by providing robust Single Sign-On (SSO) capabilities. Whether you're looking for the XML-based standard of SAML or the lightweight OIDC, our platform is equipped to integrate smoothly with your preferred identity provider, ensuring both convenience and security for your users.
### Setting up SAML login
<Steps>
<Step title="Create a SAML application with your Identity Provider (IdP)">
Follow the instructions here - [SAML Setup](/developing/guides/auth-and-provision/sso-setup#saml-registration-with-identity-providers)
</Step>
<Step title="Configure access to the IdP SAML app">
Ensure that all users who need access to Cal.com have access to the IdP SAML app.
</Step>
<Step title="Retrieve XML metadata from your IdP">
Keep the XML metadata from your IdP accessible, as you will need it later.
</Step>
<Step title="Log in to your Organization Admin account">
Visit `settings/organizations/sso`.
</Step>
<Step title="Configure SSO with SAML">
Click on the `Configure` button for `SSO with SAML`.
</Step>
<Step title="Paste the XML metadata and Save">
In the SAML configuration section, copy and paste the XML metadata from step 3 and click on Save.
</Step>
<Step title="Your users can now log into Cal using SAML">
Once setup is complete, provisioned users can log into Cal.com using SAML.
</Step>
</Steps>
### SAML Registration with Identity Providers
This guide explains the settings you need to use to configure SAML with your Identity Provider. Once configured, obtain an XML metadata file and upload it on your Cal.com instance.
> **Note:** Please do not add a trailing slash at the end of the URLs. Create them exactly as shown below.
**Assertion consumer service URL / Single Sign-On URL / Destination URL:** https://app.cal.com/api/auth/saml/callback
**Entity ID / Identifier / Audience URI / Audience Restriction:** [https://saml.cal.com](https://saml.cal.com)
**Response:** Signed
**Assertion Signature:** Signed
**Signature Algorithm:** RSA-SHA256
**Assertion Encryption:** Unencrypted
**Mapping Attributes / Attribute Statements:**
- http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier -> id
- http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress -> email
- http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname -> firstName
- http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname -> lastName
### Setting up OIDC login
<Steps>
<Step title="Gather necessary credentials">
Keep handy the Client Secret, Client ID, and Well Known URL for the next steps.
</Step>
<Step title="Log in and go to Organization SSO Settings">
Visit `/settings/organizations/sso` and you should see something like this:
<img src="./images/i1600x900-8ufcUyCOVwV6_hdudno.png" />
</Step>
<Step title="Configure SSO with OIDC">
Click on Configure SSO with OIDC, enter the Client Secret, Client ID, and Well Known URL from Step 1, and click save.
<img src="./images/i1600x900-GN1NLgrcf5r4_tmhni3.png" />
</Step>
<Step title="Complete OIDC setup">
Now, when you try to login with SSO, your OIDC provider will handle the authentication.
</Step>
</Steps>
@@ -0,0 +1,39 @@
---
title: "Setting up mailtrap for email testing"
---
Mailtrap is a versatile tool for testing email notifications without sending them to the real users of your application. It's especially useful for testing and ensuring that the system sends out accurate emails in a secure and efficient manner.
To set up Mailtrap for email testing on Cal.com, follow these steps:
<Steps>
<Step title="Create an Account">
The first step is to register an account with Mailtrap. It offers a free plan for small testing needs, and also paid plans for larger organizations.
</Step>
<Step title="Create an Inbox">
After registering, create an inbox for your application. Each inbox comes with its SMTP and POP3 credentials, which can be used to send and retrieve emails.
</Step>
<Step title="Configure the Cal.com env file">
Change the tab to nodemailer and copy the information to `.env`:
```
EMAIL_SERVER_HOST='sandbox.smtp.mailtrap.io'
EMAIL_SERVER_PORT=2525
EMAIL_SERVER_USER='XXX'
EMAIL_SERVER_PASSWORD='XXX'
```
<Info>Please remember to change the user and password and replace 'XXX' above with their respective values.</Info>
</Step>
<Step title="Set EMAIL_FROM">
Set the `EMAIL_FROM` environment variable in the `.env` file. For example:
```
EMAIL_FROM='[email protected]'
```
</Step>
<Step title="Send Test Emails">
Once your instance is configured, you can start sending test emails. These emails are "trapped" in the Mailtrap inbox, enabling you to verify email content, headers, and attachments.
</Step>
<Step title="Analyze and Debug">
Mailtrap provides features to analyze and debug your emails. You can check whether the HTML displays correctly, ensure the email is not treated as spam, and also see if it contains any broken links, invalid format, or incorrect images.
</Step>
</Steps>
Happy testing!
@@ -0,0 +1,38 @@
---
title: Embed Events
---
## Actions
You can listen to an action that occurs in embedded cal link as follows. You can think of them as DOM events. We are avoiding the term "events" to not confuse it with Cal Events.
```js
<script>
Cal("on", {
action: "ANY_ACTION_NAME",
callback: (e)=>{
// `data` is properties for the event.
// `type` is the name of the action(You can also call it type of the action.) This would be same as "ANY_ACTION_NAME" except when ANY_ACTION_NAME="*" which listens to all the events.
// `namespace` tells you the Cal namespace for which the event is fired/
const {data, type, namespace} = e.detail;
}
})
</script>
```
## Following are the list of supported actions.
| Action | Description | Properties |
|----------------------|-------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|
| eventTypeSelected | When user chooses an event-type from the listing. | `eventType: object` // Event Type that has been selected |
| bookingSuccessful | When the booking is successfully done. It might not be confirmed. | `confirmed: boolean` // Whether confirmation from organizer is pending or not <br /> `eventType: object` // Event Type that has been booked <br /> `date: string` // Date of Event <br /> `duration: number` // Duration of booked Event <br /> `organizer: object` // Organizer details like name, timezone, email |
| linkReady | Tells that the link is ready to be shown now. | None |
| linkFailed | Fired if link fails to load. | `code: number` // Error Code <br /> `msg: string` // Human Readable message <br /> `data: object` // More details to debug the error |
| __iframeReady | It is fired when the embedded iframe is ready to communicate with parent snippet. This is mostly for internal use by Embed Snippet. | None |
| __windowLoadComplete | Tells that window load for iframe is complete. | None |
| __dimensionChanged | Tells that dimensions of the content inside the iframe changed. | `iframeWidth: number` <br /> `iframeHeight: number` |
<Info>Actions that start with __ are internal.</Info>
To get more details on how Embed actually works, you can refer to this [Embed Flowchart](https://www.figma.com/file/zZ5oaUpg12Fuu5mGZrPlP5/Embed-Flowchart).