Event feed and consumer groups
The event feed is the durable record behind realtime and webhooks: the same events,
with the same eventId, kept for 7 days. Poll it with a cursor; nothing is lost while you are away.
Read the feed
GET /partner/v1/events answers a page of events after a cursor.
How to read it
- Save a cursor after you handle an event, not before. Every item carries its own
cursor, so you can checkpoint mid-page;nextCursoris always present and safe to resume from once the whole page is handled. hasMore: truewith fewer thanlimititems is normal. One call examines a bounded number of rows; ask again.- Deduplicate on
eventId. Delivery is at least once; a crash between handling and saving re-delivers. - The order is deterministic. Reading again from the same cursor, replaying from the start or resuming a consumer group after a takeover returns the same events in the same order. Within a creator the order never changes; across creators no order is promised.
- Never order by
occurredAt. It is informational, not the delivery order, and two events can share an instant. - Cursors are opaque. A cursor is encrypted and works only for your application, in its agency and environment. It
shows neither its position nor whether it moved, and two cursors for the same position differ, so never compare
them. Events carry no
sequence. - Visibility is decided when you read. Each event is shown only if your grants, the creator’s consent and your token cover its type’s scopes at that moment. An event hidden when its page is read is still passed by the cursor: granting access later does not replay history into the feed — use the REST reads for history.
When a cursor stops working
Consumer groups
When several instances of your application read the feed, a consumer group splits the work and keeps one shared
position. Events are spread over 16 partitions by creator, so each creator’s events stay in order inside one
partition. A group is identified by your application and a name you choose (consumer).
Lease partitions
GET /partner/v1/events/checkpoints with consumer and, optionally,
partitions (all 16 when omitted). You get a lease — cursor, fencingToken, leaseExpiresAt, partitions —
when no other member holds a live lease on any of them; otherwise 409 LEASE_HELD with Retry-After.
Read with the lease's cursor
Pass the lease’s cursor as after. It covers exactly your partitions. A partition never committed starts at
the oldest retained event.
Commit and renew
POST /partner/v1/events/checkpoints with consumer, the cursor you
reached and your fencingToken. That records the position and renews the lease. To renew without committing,
call the GET again with your fencingToken.
Checkpoints hold positions only, never event data.
The PHP SDK’s ServerCheckpointStore uses consumer groups directly, so several PHP workers can share one position.
In the other SDKs, a CheckpointStore on your own database does the same job.
