How to use OAuth to authorize apps with cal.com accounts
As an example, you can view our OAuth flow in action on Zapier. Try to connect your cal.com account here.
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.
Only the cal.com team can create new OAuth clients. Please contact us at support@cal.com 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.
To verify the correct setup and functionality of OAuth credentials you can use the following endpoint:
GET https://app.cal.com/api/auth/oauth/meHeaders:
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