List Stale Followups
Customers
List Stale Followups
Customers owned by the caller with no recent activity and no open task.
Used by the tasks.html “Suggested follow-ups” panel. Filters to:
- customers.owner_id == caller (the caller only sees their own)
- last_activity_at older than
daysdays (or NULL → also stale) - NO open customer_tasks row (status pending/in_progress) assigned to caller
Returns stalest first. Empty result returns [] with status 200.
GET
List Stale Followups