技能标识:monday
|
通过托管OAuth认证访问Monday.com API。使用GraphQL管理看板、项目、列、分组、用户和工作区。
bash
https://gateway.maton.ai/monday/v2
所有请求均使用POST方法发送到GraphQL端点。网关将请求代理到api.monday.com并自动注入您的OAuth令牌。
所有请求都需要在Authorization头中包含Maton API密钥:
Authorization: Bearer $MATONAPIKEY
环境变量: 将您的API密钥设置为MATONAPIKEY:
bash
export MATONAPIKEY=YOURAPIKEY
在https://ctrl.maton.ai管理您的Monday.com OAuth连接。
bash
python <
req = urllib.request.Request(https://ctrl.maton.ai/connections?app=monday&status=ACTIVE)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
bash
python <
data = json.dumps({app: monday}).encode()
req = urllib.request.Request(https://ctrl.maton.ai/connections, data=data, method=POST)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
req.add_header(Content-Type, application/json)
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
bash
python <
req = urllib.request.Request(https://ctrl.maton.ai/connections/{connection_id})
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
响应:
json
{
connection: {
connection_id: ca93f2c5-5126-4360-b293-4f05f7bb6c8c,
status: ACTIVE,
creation_time: 2026-02-05T20:10:47.585047Z,
lastupdatedtime: 2026-02-05T20:11:12.357011Z,
url: https://connect.maton.ai/?session_token=...,
app: monday,
metadata: {}
}
}
在浏览器中打开返回的url以完成OAuth授权。
bash
python <
req = urllib.request.Request(https://ctrl.maton.ai/connections/{connection_id}, method=DELETE)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
如果您有多个Monday.com连接,请使用Maton-Connection头指定要使用的连接:
bash
python <
data = json.dumps({query: { me { id name } }}).encode()
req = urllib.request.Request(https://gateway.maton.ai/monday/v2, data=data, method=POST)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_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
如果省略,网关将使用默认(最早)的活动连接。
Monday.com使用GraphQL API。所有操作都作为POST请求发送,请求体为包含query字段的JSON。
bash
POST /monday/v2
Content-Type: application/json
{query: { me { id name email } }}
响应:
json
{
data: {
me: {
id: 72989582,
name: Chris,
email: chris.kim.2332@gmail.com
}
}
}
bash
POST /monday/v2
Content-Type: application/json
{query: { users(limit: 20) { id name email } }}
bash
POST /monday/v2
Content-Type: application/json
{query: { workspaces(limit: 10) { id name kind } }}
响应:
json
{
data: {
workspaces: [
{ id: 10136488, name: Main workspace, kind: open }
]
}
}
bash
POST /monday/v2
Content-Type: application/json
{query: { boards(limit: 10) { id name state board_kind workspace { id name } } }}
响应:
json
{
data: {
boards: [
{
id: 8614733398,
name: Welcome to your developer account,
state: active,
board_kind: public,
workspace: { id: 10136488, name: Main workspace }
}
]
}
}
bash
POST /monday/v2
Content-Type: application/json
{query: { boards(ids: [BOARDID]) { id name columns { id title type } groups { id title } itemspage(limit: 20) { cursor items { id name state } } } }}
bash
POST /monday/v2
Content-Type: application/json
{query: mutation { createboard(boardname: \New Board\, board_kind: public) { id name } }}
响应:
json
{
data: {
create_board: {
id: 18398921201,
name: New Board
}
}
}
bash
POST /monday/v2
Content-Type: application/json
{query: mutation { updateboard(boardid: BOARDID, boardattribute: description, new_value: \Board description\) }}
bash
POST /monday/v2
Content-Type: application/json
{query: mutation { deleteboard(boardid: BOARD_ID) { id } }}
bash
POST /monday/v2
Content-Type: application/json
{query: { items(ids: [ITEMID]) { id name createdat updatedat state board { id name } group { id title } columnvalues { id text value } } }}
响应:
json
{
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 }
}
]
}
}
bash
POST /monday/v2
Content-Type: application/json
{query: mutation { createitem(boardid: BOARDID, groupid: \GROUPID\, itemname: \New item\) { id name } }}
bash
POST /monday/v2
Content-Type: application/json
{query:
以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:
帮我安装 SkillHub 和 monday-1776272422 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 monday-1776272422 技能
skillhub install monday-1776272422
文件大小: 4.96 KB | 发布时间: 2026-4-16 15:45