Get Rule Public Api

Get a rule by ID.

Returns the latest version when version is omitted; pass a version number to
fetch a specific revision. The rule must belong to your session organization.

query_for_latest_trigger=true adds meta.latest_trigger — the same payload
POST /rules/most-recent-trigger returns, for this rule alone. The lookup fails open:
if the engine is unavailable the rule still comes back and meta.latest_trigger
reports the failure itself (empty data, null meta, reason in
meta.latest_trigger.error).

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
Query Params

If provided return the version, otherwise returns the latest

boolean
Defaults to false

Populate RulePublic.execution_sql with render-ready SQL. Escaped for the engine's query % params render, so consume it verbatim. Null for rule types with no SQL and for rules whose stored content failed validation.

boolean
Defaults to false

Look up when this rule last produced a signal and report it under meta.latest_trigger. Uses the default 14-day window; call POST /rules/most-recent-trigger directly for a longer one.

Headers
string
required

Your API Key ID

string

Your API Key Secret

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json