Return every active rule attached to the organisation's rule stack, ordered by priority ascending. The stack applies to every assistant in the organisation automatically — the assistant tier composes on top of it.

At most one attachment may be flagged `is_entity_default=true`.

## Path parameters

**`org_id`** string required

Organisation ID (prefixed with `org_`).

## Returns

Returns the organisation's rule stack with priority ordering and default flags.

Request

```bash
curl https://api.aitronos.com/v1/organizations/org_abc123/rules-stack \
  -H "X-API-Key: $FREDDY_API_KEY"
```


```python Python SDK
from aitronos import Aitronos

client = Aitronos(api_key="your-api-key")

result = client.org_rule_stack.list(org_id="org_abc123")
for item in result.items:
    print(f"{item.priority}: {item.name}")
```


```python
import os
import requests

api_key = os.environ["FREDDY_API_KEY"]
response = requests.get(
    "https://api.aitronos.com/v1/organizations/org_abc123/rules-stack",
    headers={"X-API-Key": api_key},
)
print(response.json())
```


```javascript
const apiKey = process.env.FREDDY_API_KEY;

const response = await fetch(
  "https://api.aitronos.com/v1/organizations/org_abc123/rules-stack",
  {
    headers: { "X-API-Key": apiKey }
  }
);

const data = await response.json();
console.log(data);
```

Response

```json
{
  "items": [
    {
      "attachment_id": "att_001",
      "rule_id": "rule_xyz",
      "name": "Professional Tone",
      "description": "Enforce professional language across all assistants",
      "scope": "organization",
      "priority": 0,
      "is_active": true,
      "is_entity_default": true,
      "organization_id": "org_abc123"
    }
  ],
  "total": 1
}
```

Error

```json
{
  "success": false,
  "error": {
    "code": "ORGANIZATION_ACCESS_DENIED",
    "message": "You do not have access to this organisation.",
    "type": "client_error",
    "status": 403,
    "details": {
      "organization_id": "org_abc123"
    },
    "trace_id": "abc123",
    "timestamp": "2025-01-15T10:00:00Z",
    "system_message": "Technical error detail for diagnostics"
  }
}
```

## Related Resources

- [Replace organisation rule stack](/docs/api-reference/rules/org-stack-replace)
- [Add rule to organisation stack](/docs/api-reference/rules/org-stack-add)
- [Remove rule from organisation stack](/docs/api-reference/rules/org-stack-remove)