简介
通过 Maton 代理安全接入 ClickUp API,支持 OAuth 托管与完整项目管理能力,适合自动化工作流集成。
原始描述
ClickUp API integration with managed OAuth. Access tasks, lists, folders, spaces, workspaces, users, and manage webhooks. Use this skill when users want to m...
通过你的 Agent 添加
安装目录:clickup/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
ClickUp Skill 是一种纯文档型 API 集成方案,通过 Maton 代理服务(api.maton.ai)间接调用 ClickUp 官方 API。用户需设置 MATON_API_KEY 环境变量进行认证,通过标准 HTTP 请求管理 ClickUp 的完整层级结构:Workspace(Team)→ Space → Folder → List → Task。
认证流程:
- 在 maton.ai 注册账号并获取 API Key
- 设置环境变量
MATON_API_KEY - 创建 ClickUp 连接并完成 OAuth 授权
- 使用
Authorization: Bearer $MATON_API_KEY调用 API
主要功能模块:
- 工作空间管理:获取团队信息、成员列表
- 空间与文件夹:创建/更新/删除 Spaces 和 Folders
- 任务全生命周期:创建、查询、筛选、更新、删除任务,支持自定义字段、优先级、标签、指派
- Webhook 管理:配置实时事件监听(任务创建/更新/删除、状态变更等 20+ 事件类型)
- 用户管理:获取当前用户信息
技术特性:
- 基于页码的分页机制(每页 100 条)
- Unix 毫秒时间戳
- 支持多级筛选(状态、指派、截止日期等)
- 自动 OAuth 令牌注入
显著优点
-
零代码风险:纯 Markdown 文档型 Skill,无可执行文件,所有代码仅为标准 HTTP 请求示例,彻底杜绝本地代码执行风险。
-
简化 OAuth 流程:通过 Maton 托管 OAuth,用户无需自行处理 ClickUp 的 OAuth 2.0 复杂流程,降低集成门槛。
-
完整功能覆盖:涵盖 ClickUp API 的核心能力,从基础 CRUD 到高级 Webhook 配置,满足项目管理自动化需求。
-
多语言示例:提供 Python、JavaScript、Bash 等语言的完整代码示例,降低接入成本。
-
明确安全声明:文档明确标注"所有写操作需用户显式批准",建立清晰的责任边界。
-
合规性良好:通过 GDPR 数据最小化、用户同意机制、传输加密等六项合规检测。
潜在缺点与局限性
-
依赖第三方代理:所有请求必须经过 Maton 服务(api.maton.ai),存在单点依赖风险。若 Maton 服务不可用,Skill 功能完全失效。
-
功能受限:仅支持文档中列出的 API 端点,ClickUp 的部分高级功能(如 Goals、Docs、Time Tracking 详细报表)覆盖不完整。
-
无实时调试能力:作为纯文档型 Skill,无内置的错误重试、日志查看或请求调试工具,需用户自行实现。
-
速率限制透明性不足:文档提及 ClickUp 存在速率限制,但未明确说明 Maton 代理层的具体限制策略。
-
连接管理复杂度:多账号场景下需手动指定 Maton-Connection 头部,增加使用复杂度。
适合人群
- 中小型团队开发者:需要快速集成 ClickUp 到内部工具或自动化工作流
- DevOps/运维工程师:构建 CI/CD 与项目管理联动的自动化脚本
- 项目管理工具集成者:需要将 ClickUp 数据同步到其他系统的场景
- 安全敏感型用户:偏好无可执行代码、纯 API 文档的透明集成方案
常规风险
风险类型
说明
缓解措施
代理服务可用性
Maton 服务中断导致功能失效
实现本地缓存和错误降级机制
API 密钥泄露
MATON_API_KEY 泄露可能导致未授权访问
使用密钥管理服务,避免硬编码
数据泄露风险
通过代理传输的 ClickUp 数据可能被 Maton 访问
审查 Maton 隐私政策,敏感数据脱敏
误操作风险
写操作(删除任务/空间等)不可逆
严格执行文档要求的显式确认流程
OAuth 会话过期
长期运行脚本可能因令牌过期失败
实现连接状态检查和刷新机制
速率限制触发
高频调用可能导致 IP 被封禁
实现指数退避重试策略
零代码风险:纯 Markdown 文档型 Skill,无可执行文件,所有代码仅为标准 HTTP 请求示例,彻底杜绝本地代码执行风险。
简化 OAuth 流程:通过 Maton 托管 OAuth,用户无需自行处理 ClickUp 的 OAuth 2.0 复杂流程,降低集成门槛。
完整功能覆盖:涵盖 ClickUp API 的核心能力,从基础 CRUD 到高级 Webhook 配置,满足项目管理自动化需求。
多语言示例:提供 Python、JavaScript、Bash 等语言的完整代码示例,降低接入成本。
明确安全声明:文档明确标注"所有写操作需用户显式批准",建立清晰的责任边界。
合规性良好:通过 GDPR 数据最小化、用户同意机制、传输加密等六项合规检测。
-
依赖第三方代理:所有请求必须经过 Maton 服务(api.maton.ai),存在单点依赖风险。若 Maton 服务不可用,Skill 功能完全失效。
-
功能受限:仅支持文档中列出的 API 端点,ClickUp 的部分高级功能(如 Goals、Docs、Time Tracking 详细报表)覆盖不完整。
-
无实时调试能力:作为纯文档型 Skill,无内置的错误重试、日志查看或请求调试工具,需用户自行实现。
-
速率限制透明性不足:文档提及 ClickUp 存在速率限制,但未明确说明 Maton 代理层的具体限制策略。
-
连接管理复杂度:多账号场景下需手动指定
Maton-Connection头部,增加使用复杂度。
适合人群
- 中小型团队开发者:需要快速集成 ClickUp 到内部工具或自动化工作流
- DevOps/运维工程师:构建 CI/CD 与项目管理联动的自动化脚本
- 项目管理工具集成者:需要将 ClickUp 数据同步到其他系统的场景
- 安全敏感型用户:偏好无可执行代码、纯 API 文档的透明集成方案
常规风险
风险类型
说明
缓解措施
代理服务可用性
Maton 服务中断导致功能失效
实现本地缓存和错误降级机制
API 密钥泄露
MATON_API_KEY 泄露可能导致未授权访问
使用密钥管理服务,避免硬编码
数据泄露风险
通过代理传输的 ClickUp 数据可能被 Maton 访问
审查 Maton 隐私政策,敏感数据脱敏
误操作风险
写操作(删除任务/空间等)不可逆
严格执行文档要求的显式确认流程
OAuth 会话过期
长期运行脚本可能因令牌过期失败
实现连接状态检查和刷新机制
速率限制触发
高频调用可能导致 IP 被封禁
实现指数退避重试策略
| 风险类型 | 说明 | 缓解措施 |
|---|---|---|
| 代理服务可用性 | Maton 服务中断导致功能失效 | 实现本地缓存和错误降级机制 |
| API 密钥泄露 | MATON_API_KEY 泄露可能导致未授权访问 |
使用密钥管理服务,避免硬编码 |
| 数据泄露风险 | 通过代理传输的 ClickUp 数据可能被 Maton 访问 | 审查 Maton 隐私政策,敏感数据脱敏 |
| 误操作风险 | 写操作(删除任务/空间等)不可逆 | 严格执行文档要求的显式确认流程 |
| OAuth 会话过期 | 长期运行脚本可能因令牌过期失败 | 实现连接状态检查和刷新机制 |
| 速率限制触发 | 高频调用可能导致 IP 被封禁 | 实现指数退避重试策略 |
技能正文
name: clickup
description: |
ClickUp API integration with managed OAuth. Access tasks, lists, folders, spaces, workspaces, users, and manage webhooks. Use this skill when users want to manage work items, track projects, or integrate with ClickUp workflows. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).
compatibility: Requires network access and valid Maton API key
metadata:
author: maton
version: "1.0"
clawdbot:
emoji: 🧠
requires:
env:
- MATON_API_KEY
ClickUp
Access the ClickUp API with managed OAuth authentication. Manage tasks, lists, folders, spaces, workspaces, users, and webhooks for work management.
Quick Start
# List workspaces (teams)
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/clickup/api/v2/team')
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/clickup/{native-api-path}
# List workspaces (teams)
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/clickup/api/v2/team')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
https://api.maton.ai/clickup/{native-api-path}
Maton proxies requests to api.clickup.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
- Sign in or create an account at maton.ai
- Go to maton.ai/settings
- Copy your API key
Connection Management
Manage your ClickUp OAuth connections at https://api.maton.ai.
List Connections
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections?app=clickup&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
python <<'EOF'
import urllib.request, os, json
data = json.dumps({'app': 'clickup'}).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
python <<'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
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections?app=clickup&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
python <<'EOF'
import urllib.request, os, json
data = json.dumps({'app': 'clickup'}).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
python <<'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
python <<'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": "2025-12-08T07:20:53.488460Z",
"last_updated_time": "2026-01-31T20:03:32.593153Z",
"url": "https://connect.maton.ai/?session_token=...",
"app": "clickup",
"metadata": {}
}
}
Open the returned url in a browser to complete OAuth authorization.
Delete Connection
python <<'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
python <<'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
If you have multiple ClickUp connections, specify which one to use with the Maton-Connection header:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/clickup/api/v2/team')
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.
ClickUp Hierarchy
ClickUp organizes data in a hierarchy:
- Workspace (team) → Space → Folder → List → Task
Note: In the API, Workspaces are referred to as "teams".
Security & Permissions
- Access is scoped to tasks, lists, folders, spaces, workspaces, users, and manage webhooks within the connected ClickUp 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
Workspaces (Teams)
Get Authorized Workspaces
GET /clickup/api/v2/team
Workspaces (Teams)
GET /clickup/api/v2/team
Example:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/clickup/api/v2/team')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Response:
{
"teams": [
{
"id": "1234567",
"name": "Acme Corp",
"color": "#7B68EE",
"avatar": null,
"members": [
{
"user": {
"id": 123,
"username": "Alice Johnson",
"email": "alice@acme.com"
}
}
]
}
]
}
Spaces
Get Spaces
GET /clickup/api/v2/team/{team_id}/space
Query parameters:
archived- Include archived spaces (true/false)
Example:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/clickup/api/v2/team/1234567/space')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Response:
{
"spaces": [
{
"id": "90120001",
"name": "Engineering",
"private": false,
"statuses": [
{"status": "to do", "type": "open"},
{"status": "in progress", "type": "custom"},
{"status": "done", "type": "closed"}
]
}
]
}
Get a Space
GET /clickup/api/v2/space/{space_id}
Create a Space
POST /clickup/api/v2/team/{team_id}/space
GET /clickup/api/v2/space/{space_id}
POST /clickup/api/v2/team/{team_id}/space
Example:
python <<'EOF'
import urllib.request, os, json
data = json.dumps({'name': 'New Space', 'multiple_assignees': True, 'features': {'due_dates': {'enabled': True}, 'time_tracking': {'enabled': True}}}).encode()
req = urllib.request.Request('https://api.maton.ai/clickup/api/v2/team/1234567/space', 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
Update a Space
PUT /clickup/api/v2/space/{space_id}
Delete a Space
DELETE /clickup/api/v2/space/{space_id}
Folders
Get Folders
GET /clickup/api/v2/space/{space_id}/folder
PUT /clickup/api/v2/space/{space_id}
DELETE /clickup/api/v2/space/{space_id}
Folders
Get Folders
GET /clickup/api/v2/space/{space_id}/folder
Query parameters:
archived- Include archived folders (true/false)
Example:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/clickup/api/v2/space/90120001/folder')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Response:
{
"folders": [
{
"id": "456789",
"name": "Sprint 1",
"orderindex": 0,
"hidden": false,
"space": {"id": "90120001", "name": "Engineering"},
"task_count": "12",
"lists": []
}
]
}
Get a Folder
GET /clickup/api/v2/folder/{folder_id}
Create a Folder
POST /clickup/api/v2/space/{space_id}/folder
GET /clickup/api/v2/folder/{folder_id}
POST /clickup/api/v2/space/{space_id}/folder
Example:
python <<'EOF'
import urllib.request, os, json
data = json.dumps({'name': 'New Folder'}).encode()
req = urllib.request.Request('https://api.maton.ai/clickup/api/v2/space/90120001/folder', 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
Update a Folder
PUT /clickup/api/v2/folder/{folder_id}
Delete a Folder
DELETE /clickup/api/v2/folder/{folder_id}
Lists
Get Lists
GET /clickup/api/v2/folder/{folder_id}/list
PUT /clickup/api/v2/folder/{folder_id}
DELETE /clickup/api/v2/folder/{folder_id}
Lists
Get Lists
GET /clickup/api/v2/folder/{folder_id}/list
Query parameters:
archived- Include archived lists (true/false)
Example:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/clickup/api/v2/folder/456789/list')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Response:
{
"lists": [
{
"id": "901234",
"name": "Backlog",
"orderindex": 0,
"status": {"status": "active", "color": "#87909e"},
"task_count": 25,
"folder": {"id": "456789", "name": "Sprint 1"}
}
]
}
Get Folderless Lists
GET /clickup/api/v2/space/{space_id}/list
Get a List
GET /clickup/api/v2/list/{list_id}
Create a List
POST /clickup/api/v2/folder/{folder_id}/list
GET /clickup/api/v2/space/{space_id}/list
GET /clickup/api/v2/list/{list_id}
Create a List
POST /clickup/api/v2/folder/{folder_id}/list
POST /clickup/api/v2/folder/{folder_id}/list
Example:
python <<'EOF'
import urllib.request, os, json
data = json.dumps({'name': 'New List'}).encode()
req = urllib.request.Request('https://api.maton.ai/clickup/api/v2/folder/456789/list', 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
Create Folderless List
POST /clickup/api/v2/space/{space_id}/list
Update a List
PUT /clickup/api/v2/list/{list_id}
Delete a List
DELETE /clickup/api/v2/list/{list_id}
Tasks
Get Tasks
GET /clickup/api/v2/list/{list_id}/task
POST /clickup/api/v2/space/{space_id}/list
PUT /clickup/api/v2/list/{list_id}
Delete a List
DELETE /clickup/api/v2/list/{list_id}
Tasks
Get Tasks
GET /clickup/api/v2/list/{list_id}/task
DELETE /clickup/api/v2/list/{list_id}
Get Tasks
GET /clickup/api/v2/list/{list_id}/task
Query parameters:
archived- Include archived tasks (true/false)page- Page number (0-indexed)order_by- Sort by field (created, updated, due_date)reverse- Reverse sort order (true/false)subtasks- Include subtasks (true/false)statuses[]- Filter by statusinclude_closed- Include closed tasks (true/false)assignees[]- Filter by assignee IDsdue_date_gt- Due date greater than (Unix ms)due_date_lt- Due date less than (Unix ms)
Example:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/clickup/api/v2/list/901234/task?include_closed=true')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Response:
{
"tasks": [
{
"id": "abc123",
"name": "Implement login feature",
"status": {"status": "in progress", "type": "custom", "color": "#4194f6"},
"priority": {"id": "2", "priority": "high", "color": "#f9d900"},
"due_date": "1709251200000",
"assignees": [{"id": 123, "username": "Alice Johnson", "email": "alice@acme.com"}],
"description": "Add OAuth login flow",
"date_created": "1707436800000",
"date_updated": "1708646400000"
}
]
}
Get a Task
GET /clickup/api/v2/task/{task_id}
GET /clickup/api/v2/task/{task_id}
Query parameters:
custom_task_ids- Use custom task IDs (true/false)team_id- Required when using custom_task_idsinclude_subtasks- Include subtasks (true/false)
Example:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/clickup/api/v2/task/abc123')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Create a Task
POST /clickup/api/v2/list/{list_id}/task
Content-Type: application/json
{
"name": "Task name",
"description": "Task description",
"assignees": [123],
"status": "to do",
"priority": 2,
"due_date": 1709251200000,
"tags": ["api", "backend"],
"parent": null
}
POST /clickup/api/v2/list/{list_id}/task
Content-Type: application/json
{
"name": "Task name",
"description": "Task description",
"assignees": [123],
"status": "to do",
"priority": 2,
"due_date": 1709251200000,
"tags": ["api", "backend"],
"parent": null
}
Fields:
name(required) - Task titledescription- Task description (supports markdown)assignees- Array of user IDsstatus- Status name (must match a status in the list)priority- Priority level (1=urgent, 2=high, 3=normal, 4=low, null=none)due_date- Unix timestamp in millisecondsdue_date_time- Include time in due date (true/false)start_date- Unix timestamp in millisecondstime_estimate- Time estimate in millisecondstags- Array of tag namesparent- Parent task ID (for subtasks)custom_fields- Array of custom field objects
Example:
python <<'EOF'
import urllib.request, os, json
data = json.dumps({'name': 'Complete API integration', 'description': 'Integrate with the new payment API', 'priority': 2, 'due_date': 1709251200000, 'assignees': [123]}).encode()
req = urllib.request.Request('https://api.maton.ai/clickup/api/v2/list/901234/task', 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
Update a Task
PUT /clickup/api/v2/task/{task_id}
PUT /clickup/api/v2/task/{task_id}
Example:
python <<'EOF'
import urllib.request, os, json
data = json.dumps({'status': 'complete', 'priority': None}).encode()
req = urllib.request.Request('https://api.maton.ai/clickup/api/v2/task/abc123', data=data, method='PUT')
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
Delete a Task
DELETE /clickup/api/v2/task/{task_id}
Get Filtered Team Tasks
GET /clickup/api/v2/team/{team_id}/task
DELETE /clickup/api/v2/task/{task_id}
GET /clickup/api/v2/team/{team_id}/task
Query parameters:
page- Page number (0-indexed)order_by- Sort fieldstatuses[]- Filter by statusesassignees[]- Filter by assigneeslist_ids[]- Filter by list IDsspace_ids[]- Filter by space IDsfolder_ids[]- Filter by folder IDs
Users
Get Current User
GET /clickup/api/v2/user
Example:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/clickup/api/v2/user')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Response:
{
"user": {
"id": 123,
"username": "Alice Johnson",
"email": "alice@acme.com",
"color": "#7B68EE",
"profilePicture": "https://...",
"initials": "AJ",
"week_start_day": 0,
"timezone": "America/New_York"
}
}
Webhooks
Get Webhooks
GET /clickup/api/v2/team/{team_id}/webhook
Example:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/clickup/api/v2/team/1234567/webhook')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Create Webhook
POST /clickup/api/v2/team/{team_id}/webhook
Content-Type: application/json
{
"endpoint": "https://example.com/webhook",
"events": ["taskCreated", "taskUpdated", "taskDeleted"],
"space_id": "90120001",
"folder_id": "456789",
"list_id": "901234",
"task_id": "abc123"
}
POST /clickup/api/v2/team/{team_id}/webhook
Content-Type: application/json
{
"endpoint": "https://example.com/webhook",
"events": ["taskCreated", "taskUpdated", "taskDeleted"],
"space_id": "90120001",
"folder_id": "456789",
"list_id": "901234",
"task_id": "abc123"
}
Events:
taskCreated,taskUpdated,taskDeletedtaskPriorityUpdated,taskStatusUpdatedtaskAssigneeUpdated,taskDueDateUpdatedtaskTagUpdated,taskMovedtaskCommentPosted,taskCommentUpdatedtaskTimeEstimateUpdated,taskTimeTrackedUpdatedlistCreated,listUpdated,listDeletedfolderCreated,folderUpdated,folderDeletedspaceCreated,spaceUpdated,spaceDeletedgoalCreated,goalUpdated,goalDeletedkeyResultCreated,keyResultUpdated,keyResultDeleted
Example:
python <<'EOF'
import urllib.request, os, json
data = json.dumps({'endpoint': 'https://example.com/webhook', 'events': ['taskCreated', 'taskUpdated']}).encode()
req = urllib.request.Request('https://api.maton.ai/clickup/api/v2/team/1234567/webhook', 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
Response:
{
"id": "webhook123",
"webhook": {
"id": "webhook123",
"userid": 123,
"team_id": "1234567",
"endpoint": "https://example.com/webhook",
"client_id": "...",
"events": ["taskCreated", "taskUpdated"],
"health": {"status": "active", "fail_count": 0},
"secret": "..."
}
}
Update a Webhook
PUT /clickup/api/v2/webhook/{webhook_id}
Delete a Webhook
DELETE /clickup/api/v2/webhook/{webhook_id}
Pagination
PUT /clickup/api/v2/webhook/{webhook_id}
DELETE /clickup/api/v2/webhook/{webhook_id}
Pagination
ClickUp uses page-based pagination. Use the page parameter (0-indexed):
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/clickup/api/v2/list/901234/task?page=0')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Responses are limited to 100 tasks per page. The response includes a last_page boolean field. Continue incrementing the page number until last_page is true.
Code Examples
JavaScript
const response = await fetch(
'https://api.maton.ai/clickup/api/v2/list/901234/task',
{
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/clickup/api/v2/list/901234/task',
headers={'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}'}
)
data = response.json()
Notes
- Task IDs are strings
- Timestamps are Unix milliseconds
- Priority values: 1=urgent, 2=high, 3=normal, 4=low, null=none
- Workspaces are called "teams" in the API
- Status values must match the exact status names configured in the list
- Responses are limited to 100 items per page
- IMPORTANT: When using curl commands, use
curl -g when URLs contain brackets (statuses[], assignees[], list_ids[]) 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. You may get "Invalid API key" errors when piping.
Error Handling
Status
Meaning
400
Bad request or missing ClickUp connection
401
Invalid or missing Maton API key
403
Forbidden - insufficient permissions
404
Resource not found
429
Rate limited
4xx/5xx
Passthrough error from ClickUp API
Troubleshooting: API Key Issues
- Check that the
MATON_API_KEY environment variable is set:
echo $MATON_API_KEY
- Verify the API key is valid by listing connections:
python <<'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
- Ensure your URL path starts with
clickup. For example:
- Correct:
https://api.maton.ai/clickup/api/v2/team
- Incorrect:
https://api.maton.ai/api/v2/team
Resources
import os
import requests
response = requests.get(
'https://api.maton.ai/clickup/api/v2/list/901234/task',
headers={'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}'}
)
data = response.json()
- Task IDs are strings
- Timestamps are Unix milliseconds
- Priority values: 1=urgent, 2=high, 3=normal, 4=low, null=none
- Workspaces are called "teams" in the API
- Status values must match the exact status names configured in the list
- Responses are limited to 100 items per page
- IMPORTANT: When using curl commands, use
curl -gwhen URLs contain brackets (statuses[],assignees[],list_ids[]) to disable glob parsing - IMPORTANT: When piping curl output to
jqor other commands, environment variables like$MATON_API_KEYmay not expand correctly in some shell environments. You may get "Invalid API key" errors when piping.
Error Handling
Status
Meaning
400
Bad request or missing ClickUp connection
401
Invalid or missing Maton API key
403
Forbidden - insufficient permissions
404
Resource not found
429
Rate limited
4xx/5xx
Passthrough error from ClickUp API
Troubleshooting: API Key Issues
| Status | Meaning |
|---|---|
| 400 | Bad request or missing ClickUp connection |
| 401 | Invalid or missing Maton API key |
| 403 | Forbidden - insufficient permissions |
| 404 | Resource not found |
| 429 | Rate limited |
| 4xx/5xx | Passthrough error from ClickUp API |
- Check that the
MATON_API_KEYenvironment variable is set:
echo $MATON_API_KEY
- Verify the API key is valid by listing connections:
python <<'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
clickup. For example:https://api.maton.ai/clickup/api/v2/teamhttps://api.maton.ai/api/v2/team正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。