Predicates

Compile Predicate Endpoint

Compile a predicate from natural language, or re-describe + validate an edited JSONLogic predicate (FR-A4). Returns {logic, description, errors}; stateless (no metric needed, so it works while authoring).

post/core/predicates/compile

Request

  • Base URL
    https://api.anyreach.ai (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Headers

x-anyreach-orgstring nullable

Organization ID for user PATs (pat_ prefix tokens)

Request body

mode'gating' | 'deterministic'
instructionstring nullable
logicobject nullable
criteriastring[]
metricsobject[]

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.