agents

Preview Agent

Dry-run a trigger over the last N days: how many emails would this agent have sent? Doubles as query validation — a broken query returns ok=False with the HogQL error rather than a count.

post/api/v1/agents/preview

Headers

authorizationstring nullable

Bearer <token>

Bearer <token>

Request body

event_namestring nullable
trigger_match'any' | 'all'
condition_window_daysinteger
window_daysinteger
daily_capinteger nullable

Response

Successful Response

Changes

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