sessions

Company Activity Stream

Changed on

SSE tail of the company's activity. Frames:

  • event: turn: a run's state, for every run in view on connect and on each change after (ActivityTurnFrame). Sent before the messages of the same poll, so a new session's source arrives first.
  • event: message: one event (ActivityMessageFrame), id: the stream cursor to resume from.
  • event: cursor: the scan moved past rows Activity does not show.
  • event: business: a business event (ActivityBusinessFrame), with no id:: it leaves the seq resume position where it was.
  • event: ready: the replay from the cursor caught up (once).
  • event: reset: the replay cannot be complete (the cursor's window holds more runs than one scan reads); the client reloads its history.
  • : ping keep-alives.

Rows can commit after a later seq: a bounded time overlap is re-read separately from the forward scan and deduplicated by seq here (the client also dedupes by event key), so a late row is still delivered. A resumed stream's first overlap reaches back to its cursor's time, so a row committed while the reader was away is delivered too.

get/companies/{company_id}/activity/stream

Request

  • Base URL
    https://api.nanocorp.so (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Path parameters

company_idstring uuid required

Query parameters

cursorstring nullable

Headers

X-Posthog-Session-Idstring nullable
X-Client-Mobilestring nullable

Response

Successful Response

unknown required

Changes