Calendly
The Calendly enables tools and to call Calendly APIs on behalf of a using OAuth 2.0 authentication.
Want to quickly get started with Calendly in your or AI app? The pre-built Arcade Calendly MCP Server is what you want!
What’s documented here
This page describes how to use and configure Calendly auth with Arcade.
This is used by:
- The Arcade Calendly MCP Server, which provides pre-built for interacting with Calendly
- Your app code that needs to call the Calendly API
- Or, your custom tools that need to call the Calendly API
Configuring Calendly auth
When using your own app credentials, make sure you configure your to use a custom user verifier. Without this, your end-users will not be able to use your app or in production.
In a production environment, you will most likely want to use your own Calendly app credentials. This way, your will see your application’s name requesting permission.
Before showing how to configure your Calendly app credentials, let’s go through the steps to create a Calendly app.
Create a Calendly app
To integrate with Calendly’s API, you’ll need to create a developer and register an OAuth application:
Create a Calendly developer account
- Navigate to developer.calendly.com/create-a-developer-account
- Sign up using your GitHub or Google
- Complete the registration process
Register a new OAuth application
- Click on Create New App or Register an App
- Fill in the required details:
- Application Name: Choose a descriptive name for your application
- Type: Select Web or Native based on your application type
- Environment: Choose Sandbox (for testing) or Production
- Redirect URI: Add the redirect URL generated by Arcade (see configuration section below)
- For Sandbox: HTTP with localhost is allowed (e.g.,
http://localhost:1234) - For Production: HTTPS is required
- For Sandbox: HTTP with localhost is allowed (e.g.,
Save your credentials
- After registration, you’ll receive your Client ID, Client Secret, and Webhook Signing Key
- Important: Copy and save these credentials immediately, as the Client Secret and Webhook Signing Key won’t be accessible again
For detailed instructions, refer to Calendly’s Getting Started guide and OAuth documentation .
Next, add the Calendly app to Arcade.
Configuring your own Calendly Auth Provider in Arcade
Dashboard GUI
Configure Calendly Auth Using the Arcade Dashboard GUI
Access the Arcade Dashboard
To access the Arcade Cloud dashboard, go to api.arcade.dev/dashboard . If you are self-hosting, by default the dashboard will be available at http://localhost:9099/dashboard . Adjust the host and port number to match your environment.
Navigate to the OAuth Providers page
- Under the OAuth section of the Arcade Dashboard left-side menu, click Providers.
- Click Add OAuth Provider in the top right corner.
- Select the OAuth 2.0 tab at the top.
Enter the provider details
- Choose a unique ID for your provider (e.g. “arcade-calendly”).
- Optionally enter a Description.
- Enter the Client ID and Client Secret from your Calendly app.
- Configure the OAuth 2.0 endpoints:
- Authorization URL:
https://auth.calendly.com/oauth/authorize - Token URL:
https://auth.calendly.com/oauth/token
- Authorization URL:
- Note the Redirect URL generated by Arcade. This must be set as your Calendly app’s Redirect URI.
Create the provider
Hit the Create button and the provider will be ready to be used.
When you use tools that require Calendly auth using your Arcade credentials, Arcade will automatically use this Calendly OAuth provider. If you have multiple Calendly providers, see using multiple auth providers of the same type for more information.
Using Calendly auth in app code
Use the Calendly in your own and AI apps to get a token for the Calendly API. See authorizing agents with Arcade to understand how this works.
Use client.auth.start() to get a token for the Calendly API:
Python
from arcadepy import Arcade
client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable
user_id = "{arcade_user_id}"
# Start the authorization process
auth_response = client.auth.start(
user_id=user_id,
provider="arcade-calendly"
)
if auth_response.status != "completed":
print("Please complete the authorization challenge in your browser:")
print(auth_response.url)
# Wait for the authorization to complete
auth_response = client.auth.wait_for_completion(auth_response)
token = auth_response.context.token
# Do something interesting with the token...Using Calendly auth in custom tools
You can use the pre-built Arcade Calendly MCP Server to quickly build and AI apps that interact with Calendly.
If the pre-built tools in the Calendly Server don’t meet your needs, you can author your own custom tools that interact with the Calendly API.
Use the OAuth2() auth class to specify that a requires authorization with Calendly. The context.authorization.token field will be automatically populated with the ’s Calendly token:
from typing import Annotated
import httpx
from arcade_tdk import ToolContext, tool
from arcade_tdk.auth import OAuth2
@tool(
requires_auth=OAuth2(provider_id="arcade-calendly")
)
async def get_user_info(
context: ToolContext,
) -> Annotated[dict, "The user information."]:
"""
Retrieve the authenticated user's information from Calendly.
"""
url = "https://api.calendly.com/users/me"
headers = {
"Authorization": context.authorization.token,
}
async with httpx.AsyncClient() as client:
response = await client.get(url, headers=headers)
response.raise_for_status()
return dict(response.json())For more details about Calendly’s authentication, refer to the Calendly Authentication documentation .