---
title: "Company Activity Stream"
method: GET
path: "/companies/{company_id}/activity/stream"
tags: ["sessions"]
---

# Company Activity Stream

`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)
- URL: `https://api.nanocorp.so/companies/{company_id}/activity/stream`
- Auth: HTTP bearer

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.

## Path parameters

- `company_id` string, uuid, required

## Query parameters

- `cursor` string, nullable

## Headers

- `X-Posthog-Session-Id` string, nullable
- `X-Client-Mobile` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-11** `1afb36798219`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/nanocorp/apis/nanocorp-api/changes/companies/:company_id/activity/stream/get.md)

---

[API](https://skmtc.dev/nanocorp/apis/nanocorp-api.md) - [All operations](https://skmtc.dev/nanocorp/apis/nanocorp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nanocorp/apis/nanocorp-api/revisions/9ae15755356c?raw)
