Skip to main content
POST
Evaluate Rules

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
entity_type
enum<string>
required

Filter results to entities of this type.

Available options:
context,
prompt,
evaluation
Example:

"context"

fields
object
required

Key-value map of input values to evaluate against rule conditions.

Example:
include_entity_data
boolean

When true, fetches full entity records and includes them in entity_data.

Example:

true

entity_inputs
object

Extra inputs specific to the entity type. Used for prompts to control compilation.

Response

Successfully evaluated rules.

matchingRuleIds
string<uuid>[]
Example:
entities
object[]
entity_data
object

Full entity records, keyed as "entity_type:entity_id". Only populated for context and prompt entity types today - evaluation entities never populate entity_data.

Example: