Skip to main content
GET
List events
Returns a paginated list of events, sorted by created_at descending by default (sort_by=event_timestamp sorts by occurrence time instead). Each event carries a reversal summary (NONE, PARTIAL, or FULL); see Get an event.
  • Time filters: created_after / created_before filter on ingestion time (created_at), and occurred_after / occurred_before filter on occurrence time (event_timestamp). Both pairs can be combined. Filtering by idempotency_key also requires program_id.
  • Failure-cause drill-down: first_error_code matches the initial error_code an event failed with (preserved across retries). Combine it with program_id, period_start, and period_end (inclusive) to fetch the events counted under one row of List failure causes.
  • Expansion: expand[]=participant attaches each event’s participant (omitted when none exists) without invalidating existing pagination cursors.
For usage patterns and examples, see the Event processing guide.

Authorizations

Authorization
string
header
default:sk_...
required

Send your API key as Authorization: Bearer <key>.

Query Parameters

limit
integer
default:50

Return at most this many records, from 1 to 200, default 50.

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

The next_cursor from the previous response, valid only with the same endpoint and filters.

program_id
string<uuid>

Filter by program ID

status
enum<string>

Filter by event status

Available options:
PENDING,
PROCESSING,
COMPLETED,
FAILED
event_type
string

Return only events with this event_type, the name sent with the event, such as purchase.

source
enum<string>

Return only events from this source: sent by you (EXTERNAL) or generated by Scrip (SYSTEM).

Available options:
EXTERNAL,
SYSTEM
participant_id
string<uuid>

Filter by participant ID

idempotency_key
string

Look up the event ingested with this idempotency key (requires program_id).

external_id
string

Filter by external ID

created_after
string<date-time>

Return only records created after this time, RFC 3339.

created_before
string<date-time>

Return only records created before this time, RFC 3339.

occurred_after
string<date-time>

Return only events with an event_timestamp after this time, RFC 3339.

occurred_before
string<date-time>

Return only events with an event_timestamp before this time, RFC 3339.

sort_by
enum<string>

Sort field

Available options:
created_at,
event_timestamp,
status
rule_id
string<uuid>

Filter by rule ID (events where rule matched)

first_error_code
string

Filter to events that first failed with this error_code.

Maximum string length: 100
period_start
string<date-time>

Filter to events that first failed at or after this timestamp (RFC 3339, requires period_end).

period_end
string<date-time>

Filter to events that first failed at or before this timestamp (RFC 3339, requires period_start).

expand[]
enum<string>[]

Include additional sections on each event (participant).

Available options:
participant
sort_dir
enum<string>

Sort direction: asc or desc (default)

Available options:
asc,
desc
tier_key
string

Return only the events Scrip created for this tier, such as its scheduled level checks (tier_evaluation) and the checks when a level's end date arrives (tier_expiration).

Maximum string length: 100

Response

List of events with payloads

One page of events, with the pagination details for the next page.

data
object[]

The events on this page.

pagination
object

Whether another page follows, and the cursor that fetches it.