customers

Customer Activity Strip

One customer's last two weeks, split into the workspace's activity modes.

The same strip the "most engaged" card draws, for whichever customer you opened. The profile already had a 14-day activity chart, but it plots a single undifferentiated count, and volume is the half of the picture that barely distinguishes anyone: measured on Parrot the top users are active 16 to 30 days out of 30, so height alone is nearly flat across all of them. What separates them is what they did, which is what the modes colour in.

Reads customer_events, filled by the event-extract job, so this costs one indexed range scan and no PostHog call. A workspace with no configured modes still gets the strip as a single unnamed series, which keeps the trend and the gaps.

When the trailing fortnight is empty the window slides back to end on the customer's last active day (window_mode: "historical"). Fourteen blank columns are honest but throw away the case most worth reading: someone who churned has a story in the run-up to going quiet, and a strictly trailing window can never show it. A customer with no events at all has no such fortnight and keeps the empty state, because "churned long ago" and "never started" are different facts and must not render the same.

get/api/v1/customers/{customer_id}/activity-strip

Path parameters

customer_idstring uuid required

Headers

authorizationstring nullable

Bearer <token>

Bearer <token>

Response

Successful Response

{"stackTrail":"paths:/api/v1/customers/{customer_id}/activity-strip:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 6 revisions of this API.