Skip to main content
Rules

Preview a rule

Which recent items a saved rule's conditions match, without running any of its actions: how many items in the window match, how many the rule already acted on, and a sample. Works for review, prediction, host review, voice call and guest message rules.

GET
/rules/{id}/preview
Authorizationstringheaderrequired

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

idstringrequired

The rule id.

fromstringquery

Window start (UTC). Defaults to 30 days ago.

tostringquery

Window end (UTC). Defaults to now.

Response

application/json

Success

dataany
metaobject