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

FieldTypeReqDefaultDescription
statusstring (pending | approved | rejected | expired)Npending
limitintegerN20

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
  }
}

Try it out

Sign in to use your API key
Request Body
Response
Click Execute to test