Skip to content
Last updated
GEThttps://api.aitronos.com/v1/rules/{rule_id}/attachments

List all entities attached to a rule, ordered by priority.

rule_id string required

The rule ID

Query parameters

entity_type string optional

Filter by entity type: assistant, user, model, vector_store, organization

is_active boolean optional

Filter by active status

Returns

Returns a list of attachment objects ordered by priority (highest first).

Bash
curl "https://api.aitronos.com/v1/rules/rule_a1b2c3d4/attachments?entity_type=assistant" \
  -H "X-API-Key: $FREDDY_API_KEY"

Response 200 OK

{
  "success": true,
  "data": [
    {
      "rule_id": "rule_a1b2c3d4",
      "entity_type": "assistant",
      "entity_id": "asst_abc123",
      "priority": 80,
      "character_limit": 1000,
      "is_active": true,
      "created_at": "2025-01-17T12:00:00Z",
      "updated_at": "2025-01-17T12:00:00Z"
    },
    {
      "rule_id": "rule_a1b2c3d4",
      "entity_type": "assistant",
      "entity_id": "asst_def456",
      "priority": 60,
      "character_limit": 2000,
      "is_active": true,
      "created_at": "2025-01-16T10:00:00Z",
      "updated_at": "2025-01-16T10:00:00Z"
    }
  ]
}