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

零运维 Monday.com 智能集成

monday · vv1.0.3
办公 安全 A 级 作者 byungkyu 公开目录收录
下载 2.8k 安装 797 收藏 10.1k 浏览 27.1k
原始页面

简介

Maton 提供的 Monday.com 托管 OAuth 集成方案,通过 GraphQL 代理网关实现看板、任务、工作流的全生命周期管理,降低自建 OAuth 门槛但引入第三方数据中转风险。

原始描述

Monday.com API integration with managed OAuth. Manage boards, items, columns, groups, and workspaces using GraphQL. Use this skill when users want to create, update, or query Monday.com boards and items, manage tasks, or automate workflows. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Requires network access and valid Maton API key.

中文使用说明 来自收录源

核心用法

本 Skill 是 Monday.com 的第三方 API 集成方案,通过 Maton 托管网关代理所有 GraphQL 请求。用户需先在 maton.ai 获取 API 密钥,通过 gateway.maton.ai/monday/v2 端点发起请求,Maton 自动注入 OAuth 令牌完成认证。支持完整的 CRUD 操作:创建/更新/删除看板(Board)、项目(Item)、列(Column)、组(Group),以及工作区(Workspace)和用户管理。多连接场景下可通过 Maton-Connection 头指定特定 OAuth 连接。

显著优点

  1. 零 OAuth 运维成本:无需自建令牌刷新、授权回调服务器,Maton 托管式 OAuth 大幅降低集成门槛
  2. GraphQL 原生支持:完整保留 Monday.com GraphQL 的灵活查询能力,支持字段级数据获取
  3. 多语言示例完备:提供 Python、JavaScript 等主流语言的现成代码片段,即插即用
  4. 连接可视化管理:通过 ctrl.maton.ai 可查看、创建、删除 OAuth 连接,权限可控
  5. 分页与错误处理规范:内置 cursor 分页说明和完整 HTTP 状态码对照表,降低调试成本

潜在缺点与局限性

  1. 供应商锁定严重:所有请求强制经过 Maton 网关,无法直连 Monday.com API,服务中断即不可用
  2. 数据隐私黑箱:用户数据(看板内容、任务详情)全程流经 Maton 服务器,无端到端加密承诺
  3. 无只读安全模式:默认申请完整读写权限,无法限制为仅查询,误操作风险高
  4. 功能受限于代理层:Monday.com 新增 API 或字段需等待 Maton 网关更新,存在滞后性
  5. 国内访问延迟:网关域名 maton.ai 无 CDN 节点,跨境请求可能影响实时性

适合的目标群体

  • 快速原型团队:需在 1-2 天内完成 Monday.com 集成的敏捷开发团队
  • 无后端资源的小团队:缺乏 OAuth 服务器运维能力的初创公司或个人开发者
  • 低敏感数据场景:用于公开项目看板、内部任务分配等非机密业务流
  • Maton 生态现有用户:已使用其他 Maton 网关服务(如 Slack、Notion 集成)的统一管理需求

使用风险

  • 服务可用性风险:Maton 网关单点故障将导致业务中断,无 SLA 保障
  • 密钥泄露风险:MATON_API_KEY 泄露可导致攻击者操作用户全部 Monday.com 数据
  • 权限过度授权:OAuth 范围未细化,授权后 Maton 理论上可访问账户内所有工作区
  • 数据残留风险:删除连接后,Maton 服务端是否彻底清除令牌无明确说明
  • 速率限制叠加:Monday.com 官方限流 + Maton 网关限流双重约束,高并发场景易触发 42

技能正文


name: monday description: | Monday.com API integration with managed OAuth. Manage boards, items, columns, groups, and workspaces using GraphQL. Use this skill when users want to create, update, or query Monday.com boards and items, manage tasks, or automate workflows. 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: 🧠 requires: env: - MATON_API_KEY

Monday.com

Access the Monday.com API with managed OAuth authentication. Manage boards, items, columns, groups, users, and workspaces using GraphQL.

Quick Start

# Get current user
python <<'EOF'
import urllib.request, os, json
data = json.dumps({'query': '{ me { id name email } }'}).encode()
req = urllib.request.Request('https://gateway.maton.ai/monday/v2', 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

Base URL

https://gateway.maton.ai/monday/v2

All requests use POST to the GraphQL endpoint. The gateway proxies requests to api.monday.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 Monday.com OAuth connections at https://ctrl.maton.ai.

List Connections

python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections?app=monday&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': 'monday'}).encode()
req = urllib.request.Request('https://ctrl.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://ctrl.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": "ca93f2c5-5126-4360-b293-4f05f7bb6c8c",
    "status": "ACTIVE",
    "creation_time": "2026-02-05T20:10:47.585047Z",
    "last_updated_time": "2026-02-05T20:11:12.357011Z",
    "url": "https://connect.maton.ai/?session_token=...",
    "app": "monday",
    "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://ctrl.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 Monday.com connections, specify which one to use with the Maton-Connection header:

python <<'EOF'
import urllib.request, os, json
data = json.dumps({'query': '{ me { id name } }'}).encode()
req = urllib.request.Request('https://gateway.maton.ai/monday/v2', data=data, method='POST')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Content-Type', 'application/json')
req.add_header('Maton-Connection', 'ca93f2c5-5126-4360-b293-4f05f7bb6c8c')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

If omitted, the gateway uses the default (oldest) active connection.

API Reference

Monday.com uses a GraphQL API. All operations are sent as POST requests with a JSON body containing the query field.

Current User (me)

POST /monday/v2
Content-Type: application/json

{"query": "{ me { id name email } }"}

Response:

{
  "data": {
    "me": {
      "id": "72989582",
      "name": "Chris",
      "email": "chris.kim.2332@gmail.com"
    }
  }
}

Users

POST /monday/v2
Content-Type: application/json

{"query": "{ users(limit: 20) { id name email } }"}

Workspaces

POST /monday/v2
Content-Type: application/json

{"query": "{ workspaces(limit: 10) { id name kind } }"}

Response:

{
  "data": {
    "workspaces": [
      { "id": "10136488", "name": "Main workspace", "kind": "open" }
    ]
  }
}

Boards

List Boards

POST /monday/v2
Content-Type: application/json

{"query": "{ boards(limit: 10) { id name state board_kind workspace { id name } } }"}

Response:

{
  "data": {
    "boards": [
      {
        "id": "8614733398",
        "name": "Welcome to your developer account",
        "state": "active",
        "board_kind": "public",
        "workspace": { "id": "10136488", "name": "Main workspace" }
      }
    ]
  }
}

Get Board with Columns, Groups, and Items

POST /monday/v2
Content-Type: application/json

{"query": "{ boards(ids: [BOARD_ID]) { id name columns { id title type } groups { id title } items_page(limit: 20) { cursor items { id name state } } } }"}

Create Board

POST /monday/v2
Content-Type: application/json

{"query": "mutation { create_board(board_name: \"New Board\", board_kind: public) { id name } }"}

Response:

{
  "data": {
    "create_board": {
      "id": "18398921201",
      "name": "New Board"
    }
  }
}

Update Board

POST /monday/v2
Content-Type: application/json

{"query": "mutation { update_board(board_id: BOARD_ID, board_attribute: description, new_value: \"Board description\") }"}

Delete Board

POST /monday/v2
Content-Type: application/json

{"query": "mutation { delete_board(board_id: BOARD_ID) { id } }"}

Items

Get Items by ID

POST /monday/v2
Content-Type: application/json

{"query": "{ items(ids: [ITEM_ID]) { id name created_at updated_at state board { id name } group { id title } column_values { id text value } } }"}

Response:

{
  "data": {
    "items": [
      {
        "id": "11200791874",
        "name": "Test item",
        "created_at": "2026-02-05T20:12:42Z",
        "updated_at": "2026-02-05T20:12:42Z",
        "state": "active",
        "board": { "id": "8614733398", "name": "Welcome to your developer account" },
        "group": { "id": "topics", "title": "Group Title" }
      }
    ]
  }
}

Create Item

POST /monday/v2
Content-Type: application/json

{"query": "mutation { create_item(board_id: BOARD_ID, group_id: \"GROUP_ID\", item_name: \"New item\") { id name } }"}

Create Item with Column Values

POST /monday/v2
Content-Type: application/json

{"query": "mutation { create_item(board_id: BOARD_ID, group_id: \"GROUP_ID\", item_name: \"New task\", column_values: \"{\\\"status\\\": {\\\"label\\\": \\\"Working on it\\\"}}\") { id name column_values { id text } } }"}

Update Item Name

POST /monday/v2
Content-Type: application/json

{"query": "mutation { change_simple_column_value(board_id: BOARD_ID, item_id: ITEM_ID, column_id: \"name\", value: \"Updated name\") { id name } }"}

Update Column Value

POST /monday/v2
Content-Type: application/json

{"query": "mutation { change_column_value(board_id: BOARD_ID, item_id: ITEM_ID, column_id: \"status\", value: \"{\\\"label\\\": \\\"Done\\\"}\") { id name } }"}

Delete Item

POST /monday/v2
Content-Type: application/json

{"query": "mutation { delete_item(item_id: ITEM_ID) { id } }"}

Columns

Create Column

POST /monday/v2
Content-Type: application/json

{"query": "mutation { create_column(board_id: BOARD_ID, title: \"Status\", column_type: status) { id title type } }"}

Response:

{
  "data": {
    "create_column": {
      "id": "color_mm09e48w",
      "title": "Status",
      "type": "status"
    }
  }
}

Column Types

Common column types: status, text, numbers, date, people, dropdown, checkbox, email, phone, link, timeline, tags, rating

Groups

Create Group

POST /monday/v2
Content-Type: application/json

{"query": "mutation { create_group(board_id: BOARD_ID, group_name: \"New Group\") { id title } }"}

Response:

{
  "data": {
    "create_group": {
      "id": "group_mm0939df",
      "title": "New Group"
    }
  }
}

Pagination

Monday.com uses cursor-based pagination for items with items_page and next_items_page.

# First page
POST /monday/v2
{"query": "{ boards(ids: [BOARD_ID]) { items_page(limit: 50) { cursor items { id name } } } }"}

# Next page using cursor
POST /monday/v2
{"query": "{ next_items_page(cursor: \"CURSOR_VALUE\", limit: 50) { cursor items { id name } } }"}

Response includes cursor when more items exist (null when no more pages):

{
  "data": {
    "boards": [{
      "items_page": {
        "cursor": "MSw5NzI4...",
        "items": [...]
      }
    }]
  }
}

Code Examples

JavaScript

const response = await fetch('https://gateway.maton.ai/monday/v2', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${process.env.MATON_API_KEY}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    query: `{ boards(limit: 10) { id name items_page(limit: 20) { items { id name } } } }`
  })
});
const data = await response.json();

Python

import os
import requests

response = requests.post(
    'https://gateway.maton.ai/monday/v2',
    headers={
        'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}',
        'Content-Type': 'application/json'
    },
    json={
        'query': '{ boards(limit: 10) { id name items_page(limit: 20) { items { id name } } } }'
    }
)
data = response.json()

Notes

  • Monday.com uses GraphQL exclusively (no REST API)
  • Board IDs, item IDs, and user IDs are numeric strings
  • Column IDs are alphanumeric strings (e.g., color_mm09e48w)
  • Group IDs are alphanumeric strings (e.g., group_mm0939df, topics)
  • Column values must be passed as JSON strings when creating/updating items
  • The account query may require additional OAuth scopes. If you receive a scope error, contact Maton support at support@maton.ai with the specific operations/APIs you need and your use-case
  • Board kinds: public, private, share
  • Board states: active, archived, deleted, all
  • Each cursor is valid for 60 minutes after the initial request
  • Default limit is 25, maximum is 100 for most queries

Error Handling

Status Meaning
400 Missing Monday.com connection or GraphQL validation error
401 Invalid or missing Maton API key
403 Insufficient OAuth scope for the operation
429 Rate limited
4xx/5xx Passthrough error from Monday.com API

GraphQL errors are returned in the errors array:

{
  "data": {},
  "errors": [
    {
      "message": "Unauthorized field or type",
      "path": ["account"],
      "extensions": { "code": "UNAUTHORIZED_FIELD_OR_TYPE" }
    }
  ]
}

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:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.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 monday. For example:
  • Correct: https://gateway.maton.ai/monday/v2
  • Incorrect: https://gateway.maton.ai/v2

Resources

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

标签

project-program-managementproductivityapiautomationbackend

同类 Skill