Skip to content

HQ nerve center

GET
/api/v1/dashboard/hq

Aggregated dashboard with runway, metrics, briefing, approvals, activity, and celebrations.

Authorizations

Responses

200

Successful Response

Response for GET /api/v1/dashboard/hq.

object
data
required

Full HQ nerve center payload.

Attributes: runway: Condensed runway health snapshot. metrics: Key business metrics at a glance. brief: Today’s CEO briefing items. None while the welcome-mode tenant has not yet had its first morning-brief cadence run — distinct from [] (cadence ran but produced zero items). v49.0 LBF-02 fix: schema previously rejected None and /api/v1/dashboard/hq 5xx’d on day-0 fresh tenants. approvals: Actions awaiting human approval. activity: Recent agent activity feed. celebrations: Celebration-worthy events. welcome_mode: Welcome-state payload for fresh tenants. None once the tenant ages past the welcome window OR emits a CONNECTOR_AUTHORIZED event (per Plan 209-01 D-01/D-04).

object
activity
Array<object>

A single recent activity entry.

Attributes: agent_role: Which agent performed the activity. action: Short description of what was done. timestamp: When this activity occurred.

object
action
required
string
agent_role
required
string
timestamp
Any of:
string format: date-time
approvals
Array<object>

An action awaiting human approval.

Attributes: id: Queue item identifier. agent_role: Which agent is requesting approval. action_type: Category of the action. description: Plain-language summary of the request. urgency: How time-sensitive this approval is. created_at: When the request was created.

object
action_type
required
string
agent_role
required
string
created_at
Any of:
string format: date-time
description
required
string
id
required
string
urgency
string
default: normal
brief
Any of:
Array<object>

A single item in the daily CEO briefing.

Attributes: title: Short headline. body: Summary text. category: Topic category (revenue, operations, etc.). urgency: Importance level (info/action/critical).

object
body
required
string
category
string
default: general
title
required
string
urgency
string
default: info
celebrations
Array<object>

A celebration-worthy event to surface on the dashboard.

Attributes: type: Category (milestone/streak/improvement/team). title: Short headline. message: Full celebration message. importance: Significance level (high/medium/low).

object
importance
string
default: medium
message
required
string
title
required
string
type
required
string
metrics
Array<object>

A single top-level business metric.

Attributes: label: Human-readable metric name. value: Current metric value. change_pct: Percentage change from prior period. period: Comparison period (e.g. ‘7d’, ‘30d’).

object
change_pct
number
label
required
string
period
string
default: 7d
value
required
Any of:
number
runway

Condensed runway info for the HQ dashboard.

Attributes: runway_days: Estimated days of cash remaining. status: Color-coded health level (green/yellow/orange/red). trend: Direction of runway change (improving/stable/declining).

object
runway_days
integer
status
string
default: green
trend
string
default: stable
welcome_mode
Any of:

Welcome-state payload for fresh tenants (D-01, D-04).

Returned inside :class:HQDashboardData when the tenant is in the 7-day welcome window AND has emitted no CONNECTOR_AUTHORIZED event. None (i.e. omitted) once either gate flips, after which the operational HQ composition renders.

Attributes: is_first_day: True iff tenant.created_at >= now() - 24h. Used by the UI to decide between the “Day-1” celebration voice and the “still inside the 7-day window” voice. tenant_age_hours: Whole-hour age of the tenant since tenant.created_at. Floors at 0 to keep the field non-negative even under clock skew. featured_checklist_item_id: The single checklist item id that the welcome HQ visually emphasises (UI-SPEC §1.4 — the “next-undone” item with gold tint + chevron). Constant "setup_first_integration" per Phase 209 funnel target. next_steps: Exactly three :class:NextStepCard instances with verbatim UI-SPEC §5.3 copy.

object
featured_checklist_item_id
required
string
is_first_day
required
boolean
next_steps
required
Array<object>

One of the three “What happens next” cards on the welcome HQ.

Surfaced in :class:WelcomeModePayload only when the tenant qualifies for welcome mode (see UI-SPEC §5.3 for the verbatim copy strings).

Attributes: id: Stable card identifier (used by the frontend for keys/analytics). title: Card heading (text-sm font-semibold per UI-SPEC §5.3). body: Card body copy (text-xs text-muted-foreground). icon: Lucide icon hint — the frontend maps this to a concrete icon component (UI-SPEC §1.4 reserves three: plug/eye/check).

object
body
required
string
icon
required
string
Allowed values: plug eye check
id
required
string
title
required
string
tenant_age_hours
required
integer
meta

Standard metadata included in every API response.

Attributes: request_id: Unique identifier for request tracing. timestamp: UTC timestamp of the response.

object
request_id

Unique identifier for request tracing

string
timestamp

UTC timestamp of the response

string format: date-time