A reader crossed a boundary in the newsletter's engagement ladder:
reader to superfan, or engaged to dormant. This is the topic
that makes Insights actionable. The scores themselves are a number a
dashboard draws; a crossing is the moment a CRM or a re-engagement
automation has something to do.
Fired by a scheduled scoring pass that recomputes the insight record of
every scored reader. One event per reader whose status actually
differs from the one already stored, so a pass that changes only the
scores is silent.
Because the pass is scheduled, occurred_at is when the crossing was
computed and not when the reader acted. data.last_action_at is the
reader's own clock and sits earlier than it by up to a full scoring
interval. A consumer that wants to react while the moment is still warm
should read that field rather than occurred_at.
Status is a rank inside this newsletter, not an absolute score, so a reader can be moved by other readers. Someone who did nothing at all can still be demoted because the audience around them got busier. Two events that look like opposite movements can therefore arrive from one pass without either reader having changed their behaviour.
Only readers with a Commune account are scored, since engagement is attributed to an account, so a subscriber the newsletter knows only as an address never produces this event.
Not the same thing as subscriber.unsubscribed. That reports the
subscription itself ending. This reports how engaged someone is while
they are still subscribed, and dormant is a reader who went quiet, not
a reader who left.
Delivered as a single HTTPS POST to the consumer's registered endpoint, with the message as the JSON request body. Respond 2xx to acknowledge. Anything else, or a timeout, is retried with backoff, so acknowledge fast and do the work afterwards.
Headers
-
API version the payload conforms to. Same value as
api_versionin the envelope. -
Same value as
idin the envelope. The dedupe key. -
Same value as
typein the envelope. The topic name. -
HMAC over the raw request body. Verify before parsing.
-
Unix seconds the signature was produced at. Reject anything outside your tolerance window.
-
1 on the first attempt, incremented on each retry. Informational only. A consumer must be idempotent regardless of its value.
Minimum value is
1.
Body
Required
A reader crossed a boundary in the newsletter's engagement ladder.
-
Unique id for this event. Stable across redeliveries, so it is the dedupe key. It is the primary key of the row the publisher wrote, which means it is assigned when the state change is recorded, not when the message is dispatched.
-
The topic name, identical to the channel address. Route on this.
Value is
subscriber.status_changed. -
The
Commune-Versionvalue this payload conforms to. Present on the message itself, not only on the request header, so an event persisted to a consumer's own store stays self-describing. -
RFC 3339 timestamp of the state change, not of the delivery attempt. Use it to order events, since delivery order is not guaranteed.
-
Who caused the change. ALWAYS
nulltoday and consumers must treat it that way: the public API is currently read-only, so nothing that reaches this catalog was triggered through it, and Commune does not backfill an actor for changes made in the product UI or by a cron. The field exists now so that populating it, once writes exist, is an additive change rather than a new envelope version.Additional properties are NOT allowed.
-
ALWAYS
nulltoday. Once the public API accepts writes this carries theIdempotency-Keyheader of the write that caused the change, so a consumer can tie an event back to its own request and collapse the duplicates a retried write would otherwise produce. Null stays a legitimate value even then: a change made in the product UI or by a cron has no originating request to key on.Maximum length is
255. -
Event-specific body. Narrowed by each concrete event schema below.
Responses
-
The consumer accepted the delivery. Any 2xx acknowledges the message and it is not sent again.
-
The consumer rejected the delivery. Handled exactly like a 5xx: the message is retried with backoff, because a rejection cannot be told apart from a consumer that is briefly misconfigured.
-
The consumer failed to handle the delivery. Retried with backoff. A timeout is the same case and is retried too.
{
"id": "018f2a91-dddd-7000-8000-00000000000d",
"type": "subscriber.status_changed",
"api_version": "2026-08-26",
"occurred_at": "2026-08-27T03:15:00Z",
"newsletter_id": "7d3f1c02-58a1-4a4e-9a0b-2f6d1c9e4411",
"actor": null,
"idempotency_key": null,
"data": {
"subscriber_id": "33445566-7788-4990-a1b2-c3d4e5f60718",
"user_id": "usr_2Nf8Kq1pWc",
"email": "reader@example.com",
"previous_status": "reader",
"status": "superfan",
"direction": "promoted",
"total_score": 412,
"velocity": "rising",
"last_action_at": "2026-08-26T21:04:11Z"
}
}
{
"id": "018f2a91-eeee-7000-8000-00000000000e",
"type": "subscriber.status_changed",
"api_version": "2026-08-26",
"occurred_at": "2026-08-27T03:15:00Z",
"newsletter_id": "7d3f1c02-58a1-4a4e-9a0b-2f6d1c9e4411",
"actor": null,
"idempotency_key": null,
"data": {
"subscriber_id": "44556677-8899-4aa1-b2c3-d4e5f6071829",
"user_id": "usr_7Zx3Lm9qRt",
"email": "quiet@example.com",
"previous_status": "engaged",
"status": "dormant",
"direction": "demoted",
"total_score": 88,
"velocity": "cooling",
"last_action_at": "2026-07-02T09:12:40Z"
}
}