List all public rules available across organizations. Public rules can be discovered and used by any authenticated user. ## Query parameters **`skip`** integer optional Number of rules to skip (default: 0) **`limit`** integer optional Maximum number of rules to return (1-100, default: 100) **`category`** string optional Filter by category: `safety`, `professional`, `creative`, `technical`, `custom` **`rule_type`** string optional Filter by type: `behavior`, `guardrails`, `formatting`, `context`, `content_policy`, `constraint` **`scope`** string optional Filter by scope: `global`, `organization`, `model`, `assistant`, `user`, `vector_store` ## Returns Returns paginated list of public rules with 200-char content preview, usage counts, and edit permissions. Request ```bash curl https://api.aitronos.com/v1/rules/public?category=professional&limit=20 \ -H "X-API-Key: $FREDDY_API_KEY" ``` ```python import os import requests api_key = os.environ["FREDDY_API_KEY"] response = requests.get( "https://api.aitronos.com/v1/rules/public", headers={"X-API-Key": api_key}, params={ "category": "professional", "limit": 20 } ) print(response.json()) ``` ```javascript const apiKey = process.env.FREDDY_API_KEY; const response = await fetch( "https://api.aitronos.com/v1/rules/public?category=professional&limit=20", { headers: { "X-API-Key": apiKey } } ); const data = await response.json(); console.log(data); ``` Response ```json { "rules": [ { "id": "rule_public1", "name": "Professional Tone", "description": "Standard professional communication rule", "content_preview": "Maintain professional communication standards in all interactions. Use formal language, avoid slang, and ensure clarity. Always be respectful and courteous when addressing users or...", "content_length": 1250, "category": "professional", "rule_type": "behavior", "scope": "organization", "apply_mode": "always", "organization_id": "org_community", "created_by": "usr_admin123", "is_public": true, "is_active": true, "version": 3, "usage_count": 12, "can_edit": false, "created_at": "2025-01-10T10:00:00Z", "updated_at": "2025-01-15T14:30:00Z" }, { "id": "rule_public2", "name": "Code Review Standards", "description": "Guidelines for reviewing code submissions", "content_preview": "When reviewing code, focus on: 1) Code quality and readability, 2) Performance implications, 3) Security considerations, 4) Test coverage. Provide constructive feedback with specific...", "content_length": 2100, "category": "technical", "rule_type": "behavior", "scope": "organization", "apply_mode": "always", "organization_id": "org_devteam", "created_by": "usr_lead456", "is_public": true, "is_active": true, "version": 1, "usage_count": 8, "can_edit": false, "created_at": "2025-01-12T14:20:00Z", "updated_at": "2025-01-12T14:20:00Z" } ], "total": 45, "skip": 0, "limit": 20, "filters": { "category": "professional" } } ```