List MCP grants
curl --request GET \
--url https://api.usepatchwork.co/v1/mcp/grants \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.usepatchwork.co/v1/mcp/grants', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.usepatchwork.co/v1/mcp/grants"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"status": "success",
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subject_ref": "<string>",
"scopes": [
"read"
],
"agent": {
"public_id": "<string>",
"name": "<string>"
},
"client": {
"name": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"last_authorized_at": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"has_more": true,
"limit": 123,
"next_cursor": "<string>"
}
}{
"status": "error",
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}MCP
List MCP grants
Active grants in your workspace, newest first. A grant is one user’s standing authorization for one MCP client on one published agent. Not gated on credits.
GET
/
v1
/
mcp
/
grants
List MCP grants
curl --request GET \
--url https://api.usepatchwork.co/v1/mcp/grants \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.usepatchwork.co/v1/mcp/grants', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.usepatchwork.co/v1/mcp/grants"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"status": "success",
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subject_ref": "<string>",
"scopes": [
"read"
],
"agent": {
"public_id": "<string>",
"name": "<string>"
},
"client": {
"name": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"last_authorized_at": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"has_more": true,
"limit": 123,
"next_cursor": "<string>"
}
}{
"status": "error",
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}Authorizations
Identify accepts a workspace API key (sk_…). Loom accepts either a short-lived session token (direct) or a workspace API key (relay).
Query Parameters
Narrow to one subject, exactly as your login bridge asserted it.
Opaque pagination cursor. Pass back the next_cursor from the previous page verbatim; do not construct one.
Page size. Clamped to 100.
Required range:
1 <= x <= 100