get_live_user_activity returns over MCP.
π The endpoint
Auth β
Authorization: Bearer YOUR_MCP_KEY (the mcp_key from your Quickstart product registration).
- 401 β token missing or invalid.
- 403 β the token is valid but its
external_iddoesnβt match the{product_id}in the URL (a key for product A canβt read product B).
π¦ The response
The envelope, withactions ordered oldest β newest:
type, title, description, timestamp_start, timestamp_end, raw_url, canonical_url, and index. The user_id lives on the envelope, not inside each action.
π« What this endpoint does not give you
Activity is the only surface with a REST fallback. Everything else is MCP-only:
If you need any of those, connect over MCP.
β³ Before activity appears
This endpoint returns something only once Autoplay has recorded activity for that user β your activity source must be wired up and the user must have generated events. With PostHog (the source used in the Quickstart): complete Quickstart Steps 1β3 β the snippet,posthog.identify(...), product registration, and the ingest webhook. Other sources (e.g. Amplitude) follow the same idea through their own ingestion path.
Retention β this is short-lived βliveβ memory, not an archive:
- 4-hour TTL (
ACTIVITY_TTL_S=14400) β older activity expires. - 50 actions max per user (
ACTIVITY_MAX_EVENTS=50) β older ones are trimmed.