Saltar al contenido

Get the home summary

Módulo Home

GET/home/summaryhome.get

Returns the caller's org dashboard: open and blocked work, projects at risk at their next gate, unread alerts and committed spend as a NULL-aware total. A rule that refuses the request returns 422 with `refusal` and `reason`.

  • Requiere la capacidad home.dashboard.read.
  • Alcances de OAuth: home.
  • Estados de error: 400, 401, 422, 429. Los errores son detalles de problema RFC 9457.

Respuesta 200: HomeSummary

home.get: HomeSummary
CampoTipoObligatorioDescripción
open_work_countintegerSíRecords assigned to the caller that are not Complete or Canceled.Restricciones: range 0 to any
blocked_work_countintegerSíAssigned records that are Blocked.Restricciones: range 0 to any
projects_at_risk_countintegerSíProjects with an unsatisfied blocking criterion at the next gate.Restricciones: range 0 to any
alert_countintegerSíUnread alerts.Restricciones: range 0 to any
committed_spendMoneyTotalSíA money aggregate that never coerces unpriced inputs to zero.
{
  "open_work_count": 7,
  "blocked_work_count": 1,
  "projects_at_risk_count": 2,
  "alert_count": 3,
  "committed_spend": {
    "total_minor": 1250000,
    "currency": "USD",
    "unpriced_count": 2
  }
}

Ejemplos de código

curl -X GET "$XOS_BASE_URL/home/summary" \
  -H "Authorization: Bearer $XOS_API_KEY"
const { data, etag } = await xos.home.get();
response = xos.home.get()
xos home get