Calendly
Scheduling with Calendly, for example a booking button on the site, the list of event types and booked meetings.
Connection type: For the app and the agent. Credentials: Personal access token.
How it works
The app and the agent never see the credentials. They call the Calendly API through the Bloklo gateway, for example fetch("/gw/<connection id>/users/me"). The gateway appends the path to the address https://api.calendly.com, adds an Authorization: Bearer … header with the key from the connection, and passes the service's response back to the app.
- Reads (GET) go through at once. Writes (POST, PUT, PATCH, DELETE) go through at once only when the connection is set to Always allow; otherwise the gateway returns status 202 with an
approval_idand the write waits for approval in the panel (see Agent permissions). - The Test button sends
GET /users/meand checks that the service accepted the credentials.
API v2, JSON bodies, Bearer token. Resources are referenced by full URI (e.g. user, event type) passed as a parameter. Pagination: count and the pagination.next_page URL.
Before you start
- An account with Calendly with permission to create API keys or tokens.
Where to get the credentials
- Sign in to Calendly, open the profile menu and choose Developer → Personal access tokens (address
calendly.com/app/developer?tab=personal_access_tokens). - Click Create personal access token and enter a name.
- Select the scopes. For reading:
users:read,event_types:read,scheduled_events:read,availability:read. For creating links and bookings alsoscheduling_links:writeandscheduled_events:write. A token without scopes gives no access at all. - Confirm with the code Calendly sends by e-mail and copy the token. It is shown only once.
The API works on every Calendly plan, including the free one. The token stops working after the account's e-mail, password or sign-in method changes. A booking button on the site needs no connection: the scheduling link is enough.
Connecting in Bloklo
- Open Connectors in the sidebar and find Calendly.
- Click Connect and enter a connection name in Details.
- In Configure connection, fill in: Personal access token.
- Click Connect. Bloklo saves the credentials encrypted and sends a test request; the message shows whether the service responded.
- Attach the connection to a project: Attach to a project… on the connection page, or describe the task in the project chat and pick the connection the agent suggests.
Form fields
- Personal access token: From Calendly: profile menu → Developer → Personal access tokens. Scopes must be selected when it is created.
Never paste credentials into the chat with the agent. Enter them only in the connection form.
Example prompts
Prompts to type in the chat of a project with the connection attached:
- “Add a booking page showing available time slots.”
- “Build a dashboard of upcoming meetings and their invitees.”
- “Add a button that cancels a meeting with a reason.”
API methods
The most commonly used Calendly API methods. The path goes after /gw/<connection id>; parts in braces, such as {id}, are replaced with values. The gateway treats every request other than GET as a write, including queries sent with POST (such as search or GraphQL), so they need approval unless the connection is set to Always allow. The full list of methods is in the provider's documentation.
| Method | Path | What it does | In the gateway |
|---|---|---|---|
GET | /users/me | Current user | read |
GET | /event_types | List event types | read |
GET | /event_type_available_times | Available times for an event type | read |
GET | /scheduled_events | List scheduled events | read |
GET | /scheduled_events/{uuid} | Get a scheduled event | read |
GET | /scheduled_events/{uuid}/invitees | List event invitees | read |
POST | /scheduling_links | Create a single-use scheduling link | write (approval) |
POST | /invitees | Book a slot for an invitee | write (approval) |
POST | /scheduled_events/{uuid}/cancellation | Cancel an event | write (approval) |
Service limits
500 requests per minute per user (paid plans), 50 on the free plan; 429. Bookings via POST /invitees: free and trial 5 per day, paid 10 per minute, 50 per hour and 100 per day, Enterprise 500 per minute. Contact deletion 20 per minute.
Agent actions and permissions
| Action | Type | What the agent uses it for |
|---|---|---|
| Read data | read | Fetches data from the service, such as a list of records, to build and check the app. Examples: current user; list event types; available times for an event type. |
| Write data | write | Requests other than GET: creating, changing or deleting data in the service, and also queries sent with POST (such as search). Examples: create a single-use scheduling link; book a slot for an invitee; cancel an event. |
By default, reads run without asking and writes need approval in the chat. Change this on the connector page or in Settings → Agent permissions (see Agent permissions).
Troubleshooting
The connection test shows “Invalid key” (HTTP 401)
The service did not recognise the credentials: the value is wrong, expired, revoked or was copied with a space. Create a new key at the provider and enter it on the connection page under Change credentials. Empty fields stay unchanged.
The connection test shows “Invalid key” (HTTP 403)
The credentials are rejected or lack the needed permissions, or the service only accepts requests from selected IP addresses. Check the key, extend its permissions at the provider or add the Bloklo gateway IP address (shown in Settings → Privacy & security) to the allowlist.
The test returns another HTTP code
The Test button sends the service a read request that requires valid credentials. A code other than 401 and 403 usually means a temporary problem at the service or a restriction on the account at the provider; include the error code shown with the result in a problem report.
Limits and security
- One connection can make up to 1,000 requests per minute; the service's own limits also apply.
- Credentials are encrypted and not shown in the browser after saving; only the names of stored fields are visible.
- A published app works for every visitor: protect the data the connection gives access to with sign-in in the app.
Something unclear or out of date? Contact us