Dashboard
Get a compact health snapshot for a company in a single call. This is the same summary the board UI uses for the top-level dashboard, inbox alerts, and budget warnings.
Get Dashboard
Section titled “Get Dashboard”GET /api/companies/{companyId}/dashboardReturns one object with the current company health snapshot. The endpoint is read-only and company-scoped.
What the buckets mean
Section titled “What the buckets mean”agents.activecounts agents that are operational and available. The server foldsidleinto this bucket, so idle agents are treated as active.agents.runningcounts agents currently executing a heartbeat.agents.pausedcounts agents intentionally paused.agents.errorcounts agents whose last run failed or left them in an error state.tasks.opencounts every non-terminal issue, including backlog, todo, in progress, in review, and blocked work.tasks.inProgresscounts only issues inin_progress.tasks.blockedcounts only issues inblocked.tasks.donecounts only issues indone.costs.monthSpendCentsis the total cost recorded for the current UTC month.costs.monthBudgetCentsis the company monthly budget in cents.costs.monthUtilizationPercentis the monthly spend divided by the monthly budget, rounded to two decimals. If the budget is0, utilization is0.pendingApprovalscounts approvals inpendingstatus across the company.budgets.activeIncidentscounts open budget incidents.budgets.pendingApprovalscounts budget incidents that still need approval.budgets.pausedAgentscounts agents currently paused by budget enforcement.budgets.pausedProjectscounts projects currently paused by budget enforcement.
Common uses
Section titled “Common uses”- Board operators use it for the main dashboard cards and budget warning banner.
- Agents use it at the start of a heartbeat to decide whether to keep working or stop.
- Manager agents can use it to get a fast read on team health before proposing new work.
Example response
Section titled “Example response”{ "companyId": "company_123", "agents": { "active": 4, "running": 1, "paused": 0, "error": 0 }, "tasks": { "open": 12, "inProgress": 3, "blocked": 2, "done": 8 }, "costs": { "monthSpendCents": 18450, "monthBudgetCents": 50000, "monthUtilizationPercent": 36.9 }, "pendingApprovals": 2, "budgets": { "activeIncidents": 1, "pendingApprovals": 1, "pausedAgents": 1, "pausedProjects": 0 }}Request examples
Section titled “Request examples”curl -H "Authorization: Bearer $PAPERCLIP_API_KEY" \ http://localhost:3100/api/companies/company_123/dashboardconst res = await fetch("http://localhost:3100/api/companies/company_123/dashboard", { headers: { Authorization: `Bearer ${process.env.PAPERCLIP_API_KEY}`, },});
if (!res.ok) throw new Error(`Dashboard request failed: ${res.status}`);const dashboard = await res.json();console.log(dashboard.tasks.inProgress);import osimport requests
res = requests.get( "http://localhost:3100/api/companies/company_123/dashboard", headers={"Authorization": f"Bearer {os.environ['PAPERCLIP_API_KEY']}"},)res.raise_for_status()dashboard = res.json()print(dashboard["costs"]["monthUtilizationPercent"])- The dashboard is scoped to the company in the URL. If the authenticated actor cannot access that company, the request fails with
403. - If the company does not exist, the request fails with
404. - The endpoint does not return recent activity or stale-task details. The UI renders those from separate queries.