Skip to main content
GET
Get participant state history
Returns a chronological audit trail of changes to a participant’s tags, counters, attributes, and tiers.
  • Attribution and operations: Changes triggered by rules carry event_id, rule_id, and rule_name (the rule’s current name); changes made via PATCH /v1/participants/{participant_id} omit them. operation: "AUTO_RESET" marks an expired counter reset window, and calendar counters include counter_period.
  • Filtering: Use state_type=TIER with program_id to isolate tier transitions. created_after / created_before filter on changed_at, while occurred_after / occurred_before filter on the originating event’s event_timestamp (falling back to changed_at when there is no event). Both timestamp pairs can be combined.
For usage patterns and examples, see State history in the State management guide.

Authorizations

Authorization
string
header
default:sk_...
required

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

Path Parameters

participant_id
string
required

The participant's id, or ext: followed by the participant's external_id.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}|ext:.{1,255})$

Query Parameters

state_type
enum<string>

Return only changes to this kind of state

Available options:
TAG,
COUNTER,
ATTRIBUTE,
TIER
key
string

Filter by key

program_id
string<uuid>

Filter by program ID (for tier entries)

operation
enum<string>

Return only changes of this kind

Available options:
SET,
DELETE,
AUTO_RESET
created_after
string<date-time>

Return only entries recorded after this time, RFC 3339.

created_before
string<date-time>

Return only entries recorded before this time, RFC 3339.

occurred_after
string<date-time>

Return only records whose event occurred after this time, RFC 3339.

occurred_before
string<date-time>

Return only records whose event occurred before this time, RFC 3339.

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.

Response

State history entries

One page of state changes, with the pagination details for the next page.

data
object[]

The state changes on this page.

pagination
object

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