needsAttention
query · in the family Your own session
What it does
Your own worklist in this organization — overdue tasks first, then upcoming, then the rest, ranked for you.
Render verbatim. Requires authentication (user sessions — an api key has no worklist).
Before you call
A signed-in user’s session — the call refuses an API key (AUTHZ/FORBIDDEN).
Capability area: Your own session — What every signed-in person may do for themselves — their session, their profile and their own work.
Roles that may call it:
- Owner
- System Administrator
- Manager
- Associate Manager
- Warehouse Associate
- Sales Associate
- Cashier
What happens
Read-only and personal: it shows your work, never anyone else’s.
Returns
NeedsAttentionEntry [NeedsAttentionEntry!]! — One needs-attention entry: something needing the caller's attention in the session org, from a registered bounded source. Render verbatim — the server already ranked (overdue first; no client filtering by construction).
Example request
query ExampleNeedsAttention {
needsAttention {
kind
targetType
targetId
caption
reason
at
}
}Example response
{
"data": {
"needsAttention": [
{
"kind": "<kind>",
"targetType": "<target type>",
"targetId": "01900000-0000-7000-8000-8b67f1680000",
"caption": "Blue jeans",
"reason": "Correcting a miscount.",
"at": "<at>"
}
]
},
"extensions": {
"at": {
"callId": "01EXAMPLE-CALL-ID",
"version": {
"requested": null,
"serviced": {
"name": "genesis",
"number": 0
}
}
}
}
}Errors this call can answer
VALIDATION/INVALID— Something in the request is not valid. Retry: no. (VALIDATION)AUTHN/REQUIRED— Sign in to do this. Retry: no. (AUTHN)AUTHZ/FORBIDDEN— Your role does not allow this action. Retry: no. (AUTHZ)RATE_LIMIT/THROTTLED— Too many requests in a short time. Retry: yes. (RATE_LIMIT)