App Store and Integration
How to sync third party apps
1
Add the required variables in your `.env` file
CALCOM_WEBHOOK_SECRET
- You can generate this by running
openssl rand -base64 32
. This is required when sending 3rd party app credentials from your platform to your instance of Cal.com.
- You can generate this by running
- On your self-hosted instance of Cal.com visit settings/admin/apps under an admin account. Here you can enable/disable apps on Cal.com and set the app keys (client id, client secret, etc.). These keys should match the ones on your platform.
CALCOM_WEBHOOK_HEADER_NAME
- The header name is expected to contain the webhook secret. The default is
calcom-webhook-secret
- The header name is expected to contain the webhook secret. The default is
CALCOM_CREDENTIAL_SYNC_ENDPOINT
- The endpoint on your platform that your instance of Cal.com will make a request to if the 3rd party app credentials are expired.
CALCOM_APP_CREDENTIAL_ENCRYPTION_KEY
- When sending 3rd party app credentials between your platform and your instance Cal.com, we expect these to be encrypted using AES256. When you encrypt the 3rd party app credentials, ensure the same key is used.
2
Sending credentials to your cal.com instance
When a user adds a 3rd party app on your platform, you should send the credentials that are created to your instance of Cal.com to ${CALCOM_WEBAPP_URL}/api/webhook/app-credential
. The payload should contain the following
3
Refreshing credentials
When Cal.com needs to refresh the app credentials it will make a request to CALCOM_CREDENTIAL_SYNC_ENDPOINT
. The request contains the following.
Was this page helpful?