{"openapi":"3.1.0","info":{"title":"GET /api/v1/attention/summary","version":"1.0.0","description":"Attention summary counts"},"servers":[{"url":"https://api.ondayzero.com","description":"Production"}],"paths":{"/api/v1/attention/summary":{"get":{"tags":["attention"],"summary":"Attention summary counts","description":"Counts used by the bell badge and the Action Items card. Combines unread inbox messages with live alert counts.","operationId":"get_attention_summary_api_v1_attention_summary_get","parameters":[{"name":"client_view","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Client View"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttentionSummary"}}}},"401":{"description":"Unauthorized - Authentication required","content":{"application/json":{"example":{"detail":"Not authenticated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AttentionSummary":{"properties":{"total":{"type":"integer","title":"Total","description":"All unread/undismissed items."},"action_required":{"type":"integer","title":"Action Required","description":"Items requiring user action (drives the action items card)."},"urgent":{"type":"integer","title":"Urgent","description":"Urgent priority items."},"high":{"type":"integer","title":"High","description":"High priority items."},"inbox_unread":{"type":"integer","title":"Inbox Unread","description":"Persistent inbox unread count (separate from live alerts)."},"live_alerts":{"type":"integer","title":"Live Alerts","description":"Active live alerts (overdue bills, low balance, ...)."}},"type":"object","required":["total","action_required","urgent","high","inbox_unread","live_alerts"],"title":"AttentionSummary","description":"Counts used by the bell badge and dashboards."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Token","description":"API token authentication. Format: `Bearer dz_...`"}}},"security":[{"BearerAuth":[]}]}