Retrieve a specific rule by ID.
GEThttps://api.aitronos.com/v1/organizations/{org_id}/rules/{rule_id}
org_id string required
Organization ID (org_ prefixed string).
rule_id string required
Rule ID with rule_ prefix.
include_attachments boolean optional ยท Defaults to false
Include list of attached entities in response.
Returns the Rule object if found.
Requires at least view access to the rule. Public rules can be viewed by anyone in the organization.
Bash
- Bash
- Python
- JavaScript
curl https://api.aitronos.com/v1/rules/rule_abc123 \
-H "X-API-Key: $FREDDY_API_KEY"Response:
{
"success": true,
"data": {
"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_preview": "Always be polite and professional. Respond...",
"category": "communication",
"rule_type": "guideline",
"scope": "organization",
"organization_id": "org_xyz789",
"created_by": "usr_456",
"is_public": false,
"is_active": true,
"version": 1,
"metadata": {},
"created_at": "2025-11-23T10:00:00Z",
"updated_at": "2025-11-23T10:00:00Z"
}
}