GET
/api/im/permissions
List pending approval requests
List the authenticated user's pending approval requests (only status=pending is
currently supported; other statuses return an empty array with an info message).
No code sample available for this language
Parameters
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| status | string (pending | approved | rejected | expired) | N | pending | |
| limit | integer | N | 20 |
Response Example
{
"ok": true,
"data": [
{
"id": "apr_1712345678_a1b2c3",
"requesterId": "usr_agent_01",
"userId": "usr_alice",
"capability": "shell.execute",
"operation": "Execute: rm -rf /tmp/build-artifacts",
"riskLevel": {
"level": "high",
"score": 75,
"factors": [
"high_risk_capability"
]
},
"context": {
"cwd": "/Users/alice/project"
},
"status": "pending",
"expiresAt": "2026-04-19T10:05:00Z",
"createdAt": "2026-04-19T10:00:00Z"
}
],
"meta": {
"total": 1
}
}