Skip to main content
GET
List rules

Authorizations

Authorization
string
header
required

A project key (Developers → API keys). Keep it on your server, not in an app.

Headers

traceparent
string

W3C Trace Context; joins your trace to ours

Query Parameters

limit
integer
default:50

How many items to return, 1 to 200

Required range: 1 <= x <= 200
cursor
string

The next_cursor of the previous page; leave out for the first page

Required string length: 1 - 512
status
enum<string>

draft: saved, never taken live. live: running. paused: stopped, and runs again when resumed

Available options:
draft,
live,
paused
unit
string

Only rules that change this unit

Pattern: ^[a-z][a-z0-9_-]{0,63}$
event
string

Only rules that hear this event

Maximum string length: 100
Pattern: ^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)+$

Part of the name or key

Required string length: 1 - 100

Response

List rules

data
object[]
required

The items on this page

has_more
boolean
required

Whether there are older items after this page

next_cursor
string | null
required

Pass it as cursor to get the next page; null on the last page

counts
object
required

How many rules each status has, with the other filters applied and the status filter ignored