Skip to main content
The Hub powers Home and Inbox. It materializes actionable work from approvals, runtime decisions, notifications, suggestions, stale work, and workflow events into one company-scoped item stream. All routes are under /api and require company access. Results are RBAC-scoped to the caller.

Preferences

Stores the current user’s hub grouping/display preferences.

List Hub Items

Common query parameters: The route reconciles open approval, runtime-decision, and stale-work sources before returning rows. The response shape is:
Item rows are passthrough records because each semantic type carries source-specific fields. Boolean query params accept true/false and 1/0. Use item version as an optimistic concurrency guard when acting on a hub item.

Counts and Badges

Counts are scoped to the current user and company. Sidebar badges are the compact counts used by the primary navigation.

Item Detail and Actions

Actions are source-aware. Runtime decisions, approvals, suggestions, and notifications each validate the source row before closing or updating the hub item. Shared lifecycle actions use /action; personal visibility state uses /state; bulk operations use /bulk-action. Runtime decision answers require the backing source revision and nonce so stale browser tabs cannot answer old prompts.

Autopilot

Autopilot policy controls which hub actions can be suggested or taken automatically. The Hub Home surface displays recent autopilot actions and policy status.

Notifications

Notifications are lower-level records used by the Hub and Settings/notification surfaces. Prefer Hub routes for operator Inbox behavior.