List the access grants reaching an organization (admin)
Every grant that reaches orgId: the CLI sessions of its current members, and the MCP client grants bound to its MCP endpoint or to one of its spaces' endpoints. Each row names its holder. A CLI session acts in every organization of its owner, so revocable is false for one whose owner also belongs to another organization. Requires access-grants:read (owner/admin).
GET
/api/orgs/{orgId}/access-grantsbetter-auth.session_token<token>
Cookie session from Better Auth. Requires X-Org-Id header for org-scoped routes.
In: cookie
Path Parameters
orgId*string
curl -X GET "https://your-instance/api/orgs/string/access-grants"{
"object": "list",
"data": [
{
"id": "string",
"kind": "cli",
"client_name": "string",
"client_origin": "string",
"client_registration": "metadata_document",
"device_name": "string",
"user_agent": "string",
"last_used_ip": "string",
"target": null,
"session_count": 0,
"lastUsedAt": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"user": {
"id": "string",
"name": "string",
"email": "string"
},
"revocable": true
}
],
"hasMore": true
}{
"type": "https://docs.appstrate.dev/errors/unauthorized",
"title": "Unauthorized",
"status": 401,
"detail": "Invalid or missing session",
"code": "unauthorized",
"request_id": "req_abc123"
}{
"type": "https://docs.appstrate.dev/errors/forbidden",
"title": "Forbidden",
"status": 403,
"detail": "Insufficient permissions",
"code": "forbidden",
"request_id": "req_abc123"
}{
"type": "https://docs.appstrate.dev/errors/rate-limited",
"title": "Rate Limited",
"status": 429,
"detail": "Too many requests. Please try again shortly.",
"code": "rate_limited",
"request_id": "req_abc123",
"retry_after": 30
}