New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Feishu Calendar API skill for creating, querying, updating, and deleting events, attendees, and rooms.

skills.sh installs
1.2K
GitHub stars
64
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers event CRUD, attendee management, calendar and ACL administration, and meeting room booking on the Feishu Calendar v4 API
  • Includes endpoint tables, JSON request body examples, and curl tests, with token retrieval via ./scripts/get_feishu_token.sh and a --force-refresh retry path
  • Requires FEISHU_APP_ID and FEISHU_APP_SECRET, caches tokens locally, and retries a request once after a 401 or expired token
  • Designed for Feishu users who schedule meetings and reserve rooms, with resource attendees checked against room free/busy before booking

Install

$ npx -y skills add alextangson/feishu_skills --skill feishu-calendar -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

飞书日历

通过 Calendar API 管理日程。

Base URL: https://open.feishu.cn/open-apis/calendar/v4

认证与 Token 获取

从 feishu_skills 根目录执行共享脚本:

TOKEN="$(./scripts/get_feishu_token.sh)"

请求头统一使用 Authorization: Bearer ${TOKEN}。

如果业务接口返回 token 无效、过期或 401,强制刷新后仅重试一次原请求:

TOKEN="$(./scripts/get_feishu_token.sh --force-refresh)"

环境变量:

  • FEISHU_APP_ID
  • FEISHU_APP_SECRET

本地缓存: ./.feishu_token_cache.json(未过期直接复用,默认提前 5 分钟刷新)


日程操作

API端点方法请求体示例说明
创建日程/calendars/{calendar_id}/eventsPOST{"summary":"会议标题","start_time":{"timestamp":"1770508800"},"end_time":{"timestamp":"1770512400"}}创建新日程
获取日程/calendars/{calendar_id}/events/{event_id}GET-查询日程详情
更新日程/calendars/{calendar_id}/events/{event_id}PATCH{"summary":"新标题"}修改日程
删除日程/calendars/{calendar_id}/events/{event_id}DELETE-删除日程
搜索日程/calendars/{calendar_id}/events/searchPOST{"query":"关键词","start_time":{"timestamp":"1770508800"}}条件搜索
获取日程列表/calendars/{calendar_id}/eventsGET-查询日历下所有日程

Details

Repository
github.com/alextangson/feishu_skills
Categories
Productivity & Notes, Workflow Automation, Email & Messaging

More from alextangson/feishu_skills

All 3

Similar to Feishu Calendar

More Productivity & Notes