微算力 · API 导航与自营网关
API 接入 EN
未登录登录
📅

托管 OAuth,一键掌控日历预约

Cal.com · v1.0.1
办公 安全 A 级 作者 byungkyu 公开目录收录
下载 1.4k 安装 0 收藏 6.8k 浏览 1
原始页面

简介

通过 Maton 平台托管 OAuth 直连 Cal.com,一站式管理日程、预约与会议安排,适合追求自动化调度的个人与团队。

原始描述

Cal.com API integration with managed OAuth. Manage event types, bookings, schedules, availability, calendars, conferencing, webhooks, teams, verified resourc...

中文使用说明 来自收录源

核心功能

Cal.com 技能通过 Maton 代理层封装 Cal.com V2 API,提供托管式 OAuth 认证与统一入口,支持完整的日程生命周期管理:

  • 个人资料与账户:读取/更新用户基本信息、时区、时间格式等。
  • 事件类型(Event Types):创建、查询、修改会议模板,设定时长、可见性、预订页面配置。
  • 预约管理(Bookings):查询、创建、取消预约,支持状态筛选(upcoming/past/cancelled)与分页。
  • 可用时段(Slots):获取可预约空档、预留时段,避免冲突。
  • 日程表(Schedules):配置工作时段、默认日程、多日程切换。
  • 日历与会议集成:查看已连接的 Google/Outlook 日历,管理视频会议应用(Google Meet、Zoom 等)。
  • Webhook:支持事件级与用户级 webhook,实时接收预约创建、取消、会议开始等事件。

显著优点

  1. 托管 OAuth:无需自行维护 Cal.com OAuth 应用,Maton 自动注入 Token,降低接入门槛。
  2. 统一网关:所有请求通过 api.maton.ai 代理,标准化鉴权(单一 MATON_API_KEY),简化多账户管理。
  3. 多账户支持:通过 Maton-Connection 头部可指定不同 Cal.com 账户,适合代运营或团队场景。
  4. 完整功能映射:覆盖 Cal.com V2 核心能力,包括 slot 预留、会议录制事件等高级特性。

潜在缺点与局限

  • 代理依赖:请求需经过 Maton 中转,若 Maton 服务异常则不可用,存在单点风险。
  • 功能边界:仅限 Cal.com 自身能力,无法直接操作 Google Calendar 原生事件(需通过 Cal.com 的日历同步)。
  • 写入需确认:官方提示所有写入操作需用户显式批准,交互流程上可能增加一步确认环节。
  • 文档待完善:部分端点(如 GET /v2/schedules)存在 500 错误提示,需直接使用 /{id} 端点。

适合人群

  • 需要为 AI Agent 或内部工具集成日历预约能力的开发者
  • 使用 Cal.com 作为排程基础设施的咨询师、教练、远程团队
  • 希望通过单一 API Key 管理多个 Cal.com 账户的 SaaS 运营方

常规风险

  • 密钥泄露:MATON_API_KEY 一旦泄露,攻击者可访问绑定的所有 Cal.com 数据,需妥善保管。
  • OAuth 授权范围:用户需理解 Cal.com OAuth 授权的权限范围,避免过度授权。
  • 数据隐私:预约数据(含参与者邮箱)流经 Maton 代理,需评估 Maton 的隐私政策与合规性。

技能正文


name: calcom description: | Cal.com API integration with managed OAuth. Create and manage event types, bookings, schedules, and availability. Use this skill when users want to manage scheduling, create bookings, configure event types, or check availability. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Requires network access and valid Maton API key. metadata: author: maton version: "1.0" clawdbot: emoji: 🧠 homepage: "https://maton.ai" requires: env: - MATON_API_KEY

Cal.com

Access the Cal.com API with managed OAuth authentication. Create and manage event types, bookings, schedules, calendars, and webhooks.

Quick Start

# Get your profile
python3 <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/cal-com/v2/me')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

Base URL

https://api.maton.ai/cal-com/v2/{resource}

Maton proxies requests to api.cal.com and automatically injects your OAuth token.

Authentication

All requests require the Maton API key in the Authorization header:

Authorization: Bearer $MATON_API_KEY

Environment Variable: Set your API key as MATON_API_KEY:

export MATON_API_KEY="YOUR_API_KEY"

Getting Your API Key

  1. Sign in or create an account at maton.ai
  2. Go to maton.ai/settings
  3. Copy your API key

Connection Management

Manage your Cal.com OAuth connections at https://api.maton.ai.

List Connections

python3 <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections?app=cal-com&status=ACTIVE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

Create Connection

python3 <<'EOF'
import urllib.request, os, json
data = json.dumps({'app': 'cal-com'}).encode()
req = urllib.request.Request('https://api.maton.ai/connections', data=data, method='POST')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Content-Type', 'application/json')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

Get Connection

python3 <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections/{connection_id}')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

Response:

{
  "connection": {
    "connection_id": "{connection_id}",
    "status": "ACTIVE",
    "creation_time": "2026-02-12T22:52:17.140998Z",
    "last_updated_time": "2026-02-12T22:55:20.376189Z",
    "url": "https://connect.maton.ai/?session_token=...",
    "app": "cal-com",
    "metadata": {}
  }
}

Open the returned url in a browser to complete OAuth authorization.

Delete Connection

python3 <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections/{connection_id}', method='DELETE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

Specifying Connection

If you have multiple Cal.com connections, specify which one to use with the Maton-Connection header:

python3 <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/cal-com/v2/me')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Maton-Connection', '{connection_id}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

If you have multiple connections, always include this header to ensure requests go to the intended account.

Security & Permissions

  • Access is scoped to event types, bookings, schedules, and availability within the connected Cal.com account.
  • All write operations require explicit user approval. Before executing any create, update, or delete call, confirm the target resource and intended effect with the user.

API Reference

User Profile

Get Profile

GET /cal-com/v2/me

Response:

{
  "status": "success",
  "data": {
    "id": 2152180,
    "email": "user@example.com",
    "name": "User Name",
    "avatarUrl": "https://...",
    "bio": "",
    "timeFormat": 12,
    "defaultScheduleId": null,
    "weekStart": "Sunday",
    "timeZone": "America/New_York"
  }
}

Update Profile

PATCH /cal-com/v2/me
Content-Type: application/json

{
  "bio": "Updated bio",
  "name": "New Name"
}

Event Types

List Event Types

GET /cal-com/v2/event-types

With username filter:

GET /cal-com/v2/event-types?username={username}

Response:

{
  "status": "success",
  "data": {
    "eventTypeGroups": [
      {
        "teamId": null,
        "bookerUrl": "https://cal.com",
        "profile": {
          "slug": "username",
          "name": "User Name"
        },
        "eventTypes": [
          {
            "id": 4716831,
            "title": "30 min meeting",
            "slug": "30min",
            "length": 30,
            "hidden": false
          }
        ]
      }
    ]
  }
}

Get Event Type

GET /cal-com/v2/event-types/{eventTypeId}

Create Event Type

POST /cal-com/v2/event-types
Content-Type: application/json

{
  "title": "Meeting",
  "slug": "meeting",
  "length": 30
}

Required fields:

  • title - Event type name
  • slug - URL slug (must be unique)
  • length - Duration in minutes

Response:

{
  "status": "success",
  "data": {
    "id": 4745911,
    "title": "Meeting",
    "slug": "meeting",
    "length": 30,
    "locations": [{"type": "integrations:daily"}],
    "hidden": false,
    "userId": 2152180
  }
}

Update Event Type

PATCH /cal-com/v2/event-types/{eventTypeId}
Content-Type: application/json

{
  "title": "Updated Meeting Title",
  "description": "Updated description"
}

Delete Event Type

DELETE /cal-com/v2/event-types/{eventTypeId}

Event Type Webhooks

List Webhooks

GET /cal-com/v2/event-types/{eventTypeId}/webhooks

Create Webhook

POST /cal-com/v2/event-types/{eventTypeId}/webhooks
Content-Type: application/json

{
  "subscriberUrl": "https://example.com/webhook",
  "triggers": ["BOOKING_CREATED"],
  "active": true
}

Available triggers: BOOKING_CREATED, BOOKING_RESCHEDULED, BOOKING_CANCELLED, BOOKING_CONFIRMED, BOOKING_REJECTED, BOOKING_REQUESTED, BOOKING_PAYMENT_INITIATED, BOOKING_NO_SHOW_UPDATED, MEETING_ENDED, MEETING_STARTED, RECORDING_READY, INSTANT_MEETING, RECORDING_TRANSCRIPTION_GENERATED

Get Webhook

GET /cal-com/v2/event-types/{eventTypeId}/webhooks/{webhookId}

Update Webhook

PATCH /cal-com/v2/event-types/{eventTypeId}/webhooks/{webhookId}
Content-Type: application/json

{
  "active": false
}

Delete Webhook

DELETE /cal-com/v2/event-types/{eventTypeId}/webhooks/{webhookId}

Bookings

List Bookings

GET /cal-com/v2/bookings

With filters:

GET /cal-com/v2/bookings?status=upcoming
GET /cal-com/v2/bookings?status=past
GET /cal-com/v2/bookings?status=cancelled
GET /cal-com/v2/bookings?status=accepted
GET /cal-com/v2/bookings?take=10

Response:

{
  "status": "success",
  "data": {
    "bookings": [
      {
        "id": 15893969,
        "uid": "gZJNR7FQG2qLsBqnFdxAPE",
        "title": "30 min meeting between User and Guest",
        "startTime": "2026-02-13T17:00:00.000Z",
        "endTime": "2026-02-13T17:30:00.000Z",
        "status": "ACCEPTED"
      }
    ],
    "totalCount": 1,
    "nextCursor": null
  }
}

Get Booking

GET /cal-com/v2/bookings/{bookingUid}

Create Booking

POST /cal-com/v2/bookings
Content-Type: application/json

{
  "eventTypeId": 4716831,
  "start": "2026-02-13T17:00:00Z",
  "timeZone": "America/New_York",
  "language": "en",
  "responses": {
    "name": "Guest Name",
    "email": "guest@example.com"
  },
  "metadata": {}
}

Required fields:

  • eventTypeId - ID of the event type
  • start - Start time in ISO 8601 format (must be an available slot)
  • timeZone - Valid IANA timezone
  • language - Language code (e.g., "en")
  • responses.name - Attendee name
  • responses.email - Attendee email

Response:

{
  "status": "success",
  "data": {
    "id": 15893969,
    "uid": "gZJNR7FQG2qLsBqnFdxAPE",
    "title": "30 min meeting between User and Guest Name",
    "startTime": "2026-02-13T17:00:00.000Z",
    "endTime": "2026-02-13T17:30:00.000Z",
    "status": "ACCEPTED",
    "location": "integrations:daily"
  }
}

Cancel Booking

POST /cal-com/v2/bookings/{bookingUid}/cancel
Content-Type: application/json

{
  "cancellationReason": "Reason for cancellation"
}

Schedules

Get Default Schedule

GET /cal-com/v2/schedules/default

Get Schedule

GET /cal-com/v2/schedules/{scheduleId}

Create Schedule

POST /cal-com/v2/schedules
Content-Type: application/json

{
  "name": "Work Hours",
  "timeZone": "America/New_York",
  "isDefault": false
}

Response:

{
  "status": "success",
  "data": {
    "id": 1243030,
    "name": "Work Hours",
    "isManaged": false,
    "workingHours": [
      {
        "days": [1, 2, 3, 4, 5],
        "startTime": 540,
        "endTime": 1020
      }
    ]
  }
}

Update Schedule

PATCH /cal-com/v2/schedules/{scheduleId}
Content-Type: application/json

{
  "name": "Updated Schedule Name"
}

Delete Schedule

DELETE /cal-com/v2/schedules/{scheduleId}

Availability Slots

Get Available Slots

GET /cal-com/v2/slots/available?eventTypeId={eventTypeId}&startTime={startTime}&endTime={endTime}

Parameters:

  • eventTypeId - Required. The event type ID
  • startTime - Required. Start of range (ISO 8601)
  • endTime - Required. End of range (ISO 8601)

Response:

{
  "status": "success",
  "data": {
    "slots": {
      "2026-02-13": [
        {"time": "2026-02-13T17:00:00.000Z"},
        {"time": "2026-02-13T17:30:00.000Z"},
        {"time": "2026-02-13T18:00:00.000Z"}
      ],
      "2026-02-14": [
        {"time": "2026-02-14T14:00:00.000Z"}
      ]
    }
  }
}

Reserve Slot

POST /cal-com/v2/slots/reserve
Content-Type: application/json

{
  "eventTypeId": 4716831,
  "slotUtcStartDate": "2026-02-20T14:00:00Z",
  "slotUtcEndDate": "2026-02-20T14:30:00Z"
}

Response:

{
  "status": "success",
  "data": "968ed924-83fb-4da7-969e-eaa621643535"
}

Calendars

List Connected Calendars

GET /cal-com/v2/calendars

Response:

{
  "status": "success",
  "data": {
    "connectedCalendars": [
      {
        "integration": {
          "name": "Google Calendar",
          "type": "google_calendar"
        },
        "calendars": [...]
      }
    ]
  }
}

Conferencing

List Conferencing Apps

GET /cal-com/v2/conferencing

Response:

{
  "status": "success",
  "data": [
    {
      "id": 1769268,
      "type": "google_video",
      "appId": "google-meet"
    }
  ]
}

Get Default Conferencing App

GET /cal-com/v2/conferencing/default

Webhooks (User-level)

List Webhooks

GET /cal-com/v2/webhooks

Create Webhook

POST /cal-com/v2/webhooks
Content-Type: application/json

{
  "subscriberUrl": "https://example.com/webhook",
  "triggers": ["BOOKING_CREATED"],
  "active": true
}

Get Webhook

GET /cal-com/v2/webhooks/{webhookId}

Update Webhook

PATCH /cal-com/v2/webhooks/{webhookId}
Content-Type: application/json

{
  "active": false
}

Delete Webhook

DELETE /cal-com/v2/webhooks/{webhookId}

Teams

List Teams

GET /cal-com/v2/teams

Verified Resources

List Verified Emails

GET /cal-com/v2/verified-resources/emails

Pagination

Bookings use cursor-based pagination with take and nextCursor:

GET /cal-com/v2/bookings?take=10

Response includes pagination info:

{
  "data": {
    "bookings": [...],
    "totalCount": 25,
    "nextCursor": "abc123"
  }
}

For next page:

GET /cal-com/v2/bookings?take=10&cursor=abc123

Code Examples

JavaScript

const response = await fetch(
  'https://api.maton.ai/cal-com/v2/event-types',
  {
    headers: {
      'Authorization': `Bearer ${process.env.MATON_API_KEY}`
    }
  }
);
const data = await response.json();

Python

import os
import requests

response = requests.get(
    'https://api.maton.ai/cal-com/v2/event-types',
    headers={'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}'}
)
data = response.json()

Notes

  • All times are in UTC unless a timezone is specified
  • length field in event types is in minutes
  • Booking creation requires an available slot - check /v2/slots/available first
  • Schedule working hours use minutes from midnight (540 = 9:00 AM, 1020 = 5:00 PM)
  • Days in schedules: 0 = Sunday, 1 = Monday, ... 6 = Saturday
  • The GET /v2/schedules endpoint may return 500 errors; use GET /v2/schedules/{id} instead
  • IMPORTANT: When using curl commands, use curl -g when URLs contain brackets to disable glob parsing
  • IMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments

Error Handling

Status Meaning
400 Missing Cal.com connection or invalid request
401 Invalid or missing Maton API key
404 Resource not found
409 Conflict (duplicate resource)
429 Rate limited
500 Cal.com API error

Troubleshooting: API Key Issues

  1. Check that the MATON_API_KEY environment variable is set:
echo $MATON_API_KEY
  1. Verify the API key is valid by listing connections:
python3 <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

Troubleshooting: Invalid App Name

  1. Ensure your URL path starts with cal-com. For example:
  • Correct: https://api.maton.ai/cal-com/v2/me
  • Incorrect: https://api.maton.ai/v2/me

Troubleshooting: Booking Creation Fails

  1. Check available slots before creating a booking:
GET /cal-com/v2/slots/available?eventTypeId={id}&startTime=...&endTime=...
  1. Ensure all required fields are provided:
    • eventTypeId
    • start (must match an available slot)
    • timeZone
    • language
    • responses.name
    • responses.email

Resources

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

其他来源收录

同一技能在不同目录的原始页面:

标签

calendarschedulingoauthbookingapi-gatewaywebhookproductivitycal.commaton

同类 Skill