Evaluate Rules
Evaluate Rules
Evaluates all active rules against the provided input fields and returns matching rule IDs, linked entities, and optionally their full data.
POST
Evaluate Rules
Documentation Index
Fetch the complete documentation index at: https://docs.openlit.io/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Filter results to entities of this type.
Available options:
context, prompt, dataset, meta_config Example:
"context"
Key-value map of input values to evaluate against rule conditions.
Example:
{
"model": "gpt-4",
"user_tier": "premium",
"token_count": 1500
}When true, fetches full entity records and includes them in entity_data.
Example:
true
Extra inputs specific to the entity type. Used for prompts to control compilation.
Response
Successfully evaluated rules.
Example:
["a1b2c3d4-1234-5678-abcd-ef0123456789"]Example:
{
"context:b2c3d4e5-2345-6789-bcde-f01234567890": {
"id": "b2c3d4e5-2345-6789-bcde-f01234567890",
"name": "Premium System Prompt",
"content": "You are a helpful AI assistant for premium users...",
"status": "ACTIVE"
}
}
