Skip to main content
GET
Get program activity
Returns a page of program scorecards with activity counts, issued and redeemed amounts by asset, and current liability. Pass folder_id (mutually exclusive with program_id) to scope to a folder and its nested subfolders.
  • Time windows: period_start and period_end scope event counts, active_participants, and by_asset totals, and populate the preceding comparison window. Program status, unique_participants, journal_count, owed, and owed_value always reflect current state.
  • Redemptions: by_asset[].redeemed covers redemptions through this program regardless of issuer, net of reversals all-time and gross within a period. Pending redemptions count in the period they complete (captured_at), not when held. Redemptions are not events and do not enroll participants, so a program that only redeems can show 0 for event_count and unique_participants.
  • Active participants: active_participants counts distinct participants with an earn or completed redemption through this program in the period (null without a period; excludes group activity, received transfers, and expirations). Pending redemptions count in the period they complete (captured_at).

Sorting and paging

All matching programs are ranked before paging. Keep the same filters and sort when following pagination.next_cursor (400 invalid_cursor otherwise).
  • name sorts ascending by default; all other sorts default to descending unless sort_dir overrides them. Ties break by last activity, then program ID.
  • sort_by=event_count_change and sort_by=active_participants require both period bounds; sort_by=owed requires asset_id (400 validation_error).
  • sort_by=total_redeemed sums by_asset[].redeemed across assets, which mixes units when assets differ.

Money values and asset filters

  • owed holds current liability per asset (matching the liability report, so a shared asset can be negative for one program). owed_value sums valued assets in one currency; pass currency when assets use multiple currencies, or owed_value is null and sort_by=owed_value returns 400 validation_error.
  • asset_id and issuance_policy filter both the returned programs and the assets counted in by_asset, owed, and owed_value, including linked assets with zero issuance.
For worked examples comparing programs, see Program activity.

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>

Narrow the report to a single program (one row)

folder_id
string<uuid>

Filter to programs in this folder and its nested subfolders. Mutually exclusive with program_id.

asset_id
string<uuid>

Return only the programs linked to this asset. by_asset, owed and owed_value cover this asset only. Required for sort_by=owed.

issuance_policy
enum<string>

Return only the programs linked to an asset with this issuance policy. by_asset, owed and owed_value cover the assets with this policy only.

Available options:
PREFUNDED,
UNLIMITED
active_after
string<date-time>

Filter to programs with activity after this timestamp (RFC 3339).

period_start
string<date-time>

Start of the reporting period, inclusive (RFC 3339, requires period_end).

period_end
string<date-time>

End of the reporting period, inclusive (RFC 3339, requires period_start).

Return only programs whose name or description contains this text (partial match, ignoring case; % and _ match themselves)

status
enum<string>

Return only programs with this status

Available options:
ACTIVE,
SUSPENDED,
ARCHIVED
include_archived
boolean
default:true

Send false to leave out ARCHIVED programs. The default, true, lists them.

sort_by
enum<string>

Field to sort programs by (defaults to name; owed requires asset_id; event_count_change and active_participants require a period).

Available options:
name,
event_count,
unique_participants,
total_redeemed,
event_count_change,
owed_value,
owed,
active_participants
sort_dir
enum<string>

Sort direction. Defaults to asc for name and desc for every metric. Ties use last activity in the same direction.

Available options:
asc,
desc
currency
string

ISO 4217 currency for owed_value (defaults to the single currency across valued assets; required for sort_by=owed_value when multiple currencies exist).

Response

Program activity metrics

Program activity results

data
object[]

Per-program activity metrics, in the requested order

pagination
object

Pagination metadata for list responses