Skip to content
Last updated

Retrieve a rule by ID without requiring organization context.

GEThttps://api.aitronos.com/v1/rules/{rule_id}

Path Parameters

rule_id string required

Rule ID with rule_ prefix.

Query Parameters

include_attachments boolean optional ยท Defaults to false

Include list of attached entities in response.

Returns

Returns the Rule object if found.

Access Control

User must have view access to the rule or be a member of the rule's organization.

Bash
curl https://api.aitronos.com/v1/rules/rule_abc123 \
  -H "X-API-Key: $FREDDY_API_KEY"

Response:

{
  "id": "rule_abc123",
  "name": "Customer Support Guidelines",
  "description": "Rules for handling customer support interactions",
  "content": "Always be polite and professional. Respond within 24 hours to customer inquiries. Verify customer identity before discussing account details.",
  "content_length": 150,
  "category": "professional",
  "rule_type": "behavior",
  "scope": "organization",
  "apply_mode": "always",
  "organization_id": "org_xyz789",
  "created_by": "usr_456",
  "is_public": false,
  "is_active": true,
  "version": 1,
  "usage_count": 3,
  "can_edit": true,
  "created_at": "2025-11-23T10:00:00Z",
  "updated_at": "2025-11-23T10:00:00Z",
  "attached_entities": [
    {
      "id": "ratt_xyz789",
      "entity_type": "assistant",
      "entity_id": "asst_abc123",
      "priority": 80,
      "character_limit": 500,
      "is_active": true
    }
  ]
}