List all active access grants for a rule. Requires view access to the rule.

## Path parameters

**`rule_id`** string required

Rule ID (prefixed with `rule_`).

## Returns

Returns a list of access grants. Each grant has an `id`, `target_type`, `target_id`, `access_level`, `granted_by`, and `granted_at`.

Request

```bash cURL
curl "https://api.aitronos.com/v1/rules/rule_abc123/permissions" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
```


```python Python SDK
# A first-class SDK method for this endpoint is coming soon.
# In the meantime, call the endpoint directly with the SDK's HTTP client:
from aitronos import Aitronos

client = Aitronos(api_key="your-api-key")
response = client._client_wrapper.httpx_client.request(
    "rules/rule_abc123/permissions",
    method="GET",
)
print(response.json())
```


```python Python
import os, requests

response = requests.get(
    "https://api.aitronos.com/v1/rules/rule_abc123/permissions",
    headers={"Authorization": f"Bearer {os.environ['ACCESS_TOKEN']}"},
)
print(response.json())
```


```javascript JavaScript
const response = await fetch("https://api.aitronos.com/v1/rules/rule_abc123/permissions", {
  headers: { Authorization: `Bearer ${process.env.ACCESS_TOKEN}` },
});
console.log(await response.json());
```

Response

```json 200 OK
{
  "grants": [
    {
      "id": "grant_abc123",
      "target_type": "user",
      "target_id": "usr_abc",
      "access_level": "modify",
      "granted_by": "usr_owner",
      "granted_at": "2026-04-15T10:00:00Z"
    }
  ]
}
```


```json 403 Forbidden
{
  "success": false,
  "error": {
    "code": "INSUFFICIENT_PERMISSIONS",
    "message": "You do not have permission to perform this action.",
    "system_message": "Insufficient permissions for this operation",
    "type": "authorization_error",
    "status": 403,
    "details": { "rule_id": "rule_abc123" },
    "trace_id": "req_abc123xyz",
    "timestamp": "2026-04-15T10:00:00Z"
  }
}
```

## Related Resources

- [Replace rule permissions](/docs/api-reference/rules/permissions-replace)
- [Grant rule permission](/docs/api-reference/rules/permissions-grant)
- [Revoke rule permission](/docs/api-reference/rules/permissions-revoke)