The activity stream
The envelope every happening arrives in, the registry of types, and how to filter and page through them
Every state change in the engine writes an activity, in the same transaction as the change. Create an event, adjust a cart, let a hold run out — each one leaves a record, whether or not anybody was listening.
curl "https://tickets.lissen.com/api/v1/activities?limit=50" \
-H "Authorization: Bearer tk_test_..." \
-H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7"You see exactly your own organizer's activities and nothing else — not other tenants', and not the engine's own global records.
The envelope
Here is one, with data.object cut down to a few fields so the envelope around
it stays readable — a real snapshot carries everything the resource's own
endpoint returns:
{
"id": "act_0199c4e6-3a5b-7c88-9d02-6e4a1f7b3c50",
"type": "checkout_session.updated",
"created": "2026-11-02T14:07:43Z",
"organizer_id": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7",
"actor": { "kind": "api_key", "id": "key_0199c4e2-2b41-7f09-8a3d-7c1b4e6a9f22" },
"request_id": "d2b7f0c4-9a51-4a2f-9c1e-6c4b0a7e12f3",
"livemode": false,
"data": {
"object": {
"id": "cs_0199c4e6-3a55-7d0e-9f21-4a7c8b2d6e33",
"status": "open",
"total_minor": 3120,
"line_items": [
{
"item_id": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10",
"quantity": 3,
"unit_list_price_minor": 1000
}
]
},
"previous_attributes": {
"total_minor": 2080,
"line_items": [
{
"item_id": "itm_0199c4e3-77a2-7e19-b0c5-9d3f2a4e6b10",
"quantity": 2,
"unit_list_price_minor": 1000
}
]
}
}
}| Field | What it is |
|---|---|
id | act_ plus a time-ordered UUID. This is your deduplication key. |
type | A dotted, past-tense fact — <resource>.<happening>. |
created | When the activity was recorded, RFC 3339 UTC. |
organizer_id | Always yours on an activity you can read. |
actor | Who did it — {"kind": …, "id": …}. Kinds are api_key, door_pass, member (an owner signed in to the dashboard, by email), staff, system and psp_webhook. |
request_id | The API request that caused it, or null when nothing you called did — a session timing out on its own has no request behind it. When present it is the same value as that response's Request-Id header, which is how you tie a line in your logs to a fact in the feed. |
livemode | false for a test organizer, true for a live one. |
data.object | The resource's full wire representation as of the happening — the same shape the resource's own endpoint returns. |
data.previous_attributes | On *.updated types only. A shallow diff of the values that changed, with null for a key that did not exist before. |
Two things follow from full snapshots. You rarely need to call back to fetch the resource — the activity already carries it. And ordering matters less than you would expect: the newest snapshot you have is the truth, whatever order two activities arrived in.
A missing snapshot is still an envelope
If the engine cannot serve a stored snapshot in full, you get the envelope with
data.object reduced to its id and a data.redacted: true marker. Never raw
unvalidated JSON, and never a 500.
This happens when the snapshot stored for that activity does not pass the
current schema for its type, for example a snapshot of a type this API
version does not know, or one written before a field became required. The
engine withholds it rather than send you something it cannot vouch for.
Redaction is about the stored copy only: it does not mean the resource was
erased, and it does not mean a ticket, order or membership was lost. Read the
resource itself for its current state: fetch it by the id left in
data.object and reconcile from that. A snapshot that failed the schema stays
redacted, so do not wait for re-fetching the activity to change it.
{
"id": "act_0199c4e7-1d02-7a63-8b91-2f5c7e0a4d18",
"type": "position.created",
"created": "2026-11-02T14:09:02Z",
"organizer_id": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7",
"actor": { "kind": "api_key", "id": "key_0199c4e2-2b41-7f09-8a3d-7c1b4e6a9f22" },
"request_id": null,
"livemode": false,
"data": { "object": { "id": "pos_0199c4e7-0a12-7e55-9c30-4b81d2f6a903" }, "redacted": true }
}Never apply a redacted activity as if it were the fact. The envelope is true; the snapshot is missing. Record it as pending, move your cursor past it, and re-fetch that one activity by id until it comes back without the marker. Completing it from a redacted payload writes a resource whose fields you never actually saw. The reconciliation sweep has the handling in full.
Retrieve one
GET/v1/activities/{id}curl https://tickets.lissen.com/api/v1/activities/{id} \
-H "Authorization: Bearer tk_test_..." \
-H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7"An activity you cannot see is a 404 not_found, the same answer as one that
does not exist.
The type registry
The vocabulary is closed and additive: names are added, never removed and never repurposed, and a semantic change uses a new name rather than a new meaning for an old one. The type registry lists the current activity types and their feed scope.
The type registry lists every current type, what fact it records, and whether it is delivered to your feed.
Tolerate a type you do not recognise. The additive registry can gain a type without a new API version. Branch on the types you handle and ignore the rest; do not throw on the default case.
Filtering
GET/v1/activities| Parameter | Matches |
|---|---|
type | An exact type (order.paid), a resource wildcard (order.*), or * for everything. |
resource | The id of the resource in data.object — one object's whole history. |
actor | The actor id in the envelope. |
created[gte] | An inclusive lower bound on created. See the reconciliation sweep. |
Wildcards are prefix-only and always at the resource boundary: order.* is
valid, * is valid, order.pa* is not. An unrecognised filter is a 400
rather than a silent empty page.
curl "https://tickets.lissen.com/api/v1/activities?type=checkout_session.*&limit=100" \
-H "Authorization: Bearer tk_test_..." \
-H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7"Everything that ever happened to one cart, newest first — as every list is:
curl "https://tickets.lissen.com/api/v1/activities?resource=cs_0199c4e6-3a55-7d0e-9f21-4a7c8b2d6e33" \
-H "Authorization: Bearer tk_test_..." \
-H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7"Everything one buyer's browser did in their checkout — the actor id for a buyer
is checkout_session: followed by the session id:
curl "https://tickets.lissen.com/api/v1/activities?actor=checkout_session:cs_0199c4e6-3a55-7d0e-9f21-4a7c8b2d6e33" \
-H "Authorization: Bearer tk_test_..." \
-H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7"Paging
The same keyset pagination as every other list: limit (20 by default, 100
maximum), starting_after for the next page, ending_before for the previous
one. The order is reverse-chronological and the ids are time-ordered, so the
id is the cursor — store the last one you processed and resume from it later
without holding a token of ours.
curl "https://tickets.lissen.com/api/v1/activities?limit=100&starting_after=act_0199c4e6-3a5b-7c88-9d02-6e4a1f7b3c50" \
-H "Authorization: Bearer tk_test_..." \
-H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7"{
"data": [{ "id": "act_0199c4e6-3a4f-71c2-8e07-9b3d5a2f6c11", "type": "hold.created" }],
"has_more": true
}An id cursor alone is not a complete consumer. Ids are minted before their transaction commits, so an activity can commit after one with a higher id has already been read past — and a cursor that only moves forward will never see it. The fix is one extra read per pass, and it is the whole subject of the reconciliation sweep. Read that page before you ship a consumer.
Errors
Reads fail the way every other read does: 404 not_found for an activity you
cannot see, 400 invalid_pagination for sending both starting_after and
ending_before, 400 invalid_request for a filter the engine cannot parse.
What emits
Everything that changes state, and nothing that does not:
- Reads emit nothing, with one exception. Polling a session, listing events
and previewing a quote all leave the feed alone. Fetching a session's
payment credentials is a
GETthat changes state — it can prepare or re-sync a payment — so it can write acheckout_session.updated. - Refused writes emit nothing, because they changed nothing. A cart growth that did not fit leaves no trace.
- An idempotent replay emits nothing. It does no work; your retry loop cannot produce a duplicate here.
Gotchas
- Deduplicate on
act_id. Delivery is at-least-once by design. - Do not treat id order as commit order. See the callout above.
- Do not branch on
data.objectbeing complete. Checkdata.redacted. previous_attributesis a shallow diff. A nested change reports the whole top-level value that contained it, not a path into it.request_idis your correlation key, notid— one request can produce several activities, and they will share it.