Skip to main content
GET
Get group state history
Returns a chronological audit trail of changes to a group’s tags, counters, attributes, and tiers. Changes triggered by rules carry event_id, rule_id, and rule_name (the rule’s current name); changes made via PATCH /v1/groups/{group_id} omit them. operation: "AUTO_RESET" marks an expired counter reset window, and calendar counters include counter_period. Pass state_type=TIER with program_id to isolate tier transitions.
For usage patterns and examples, see State history and the Groups guide.

Authorizations

Authorization
string
header
default:sk_...
required

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

Path Parameters

group_id
string<uuid>
required

The group's id.

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.

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.