The Messages list, tabs, filters and counts (#2587 p5-A)
Changed onOne page of threads of the caller's clients (a human super-admin: every client), for wireframe page 5. tab is needs_reply (the client wrote last), waiting_on_client (we or Penny's thread wrote last) or resolved (by status); a thread with no message yet waits on us when the client started it (client_change, package) and on the client otherwise. Without tab the page lists the three groups in that order: the first two longest-waiting first, resolved newest first. owner is the client's primary accountant (never a service account): me is the caller, all (default) no filter, or an accountant id. counts follow clientId, kind and owner but not tab; each of byClient, byKind and byOwner follows every filter but its own. kind is threads.kind (migration 656): ask, thread, client_change or package; a thread no code has named is a thread. Ages are business days (UTC). An ask is due ASK_DUE_BUSINESS_DAYS (2) business days after its first message (dueOn) and is overdue the day after, while it waits on the client. unread is true when the client wrote after the caller last opened the thread. pennyDraft is true while an Inbox draft linked to the thread is unsent. blocksCloseStep comes from the Inbox item the thread was sent for. preview is the last message, one line, at most 140 characters; a firm-only note is never in any field. The list is built over the caller's 2,000 most recently active threads. A signed-in person only: every API key is refused (404); a client user is 403.
Request
- Base URLhttps://api.medianfi.com/api/v1
- AuthHTTP bearer
Query parameters
A client the caller is not assigned to is 403.
me, all or an accountant id
Response
A page of threads, the tab counts and the facets
Changes
- info
added the optional property
data/threads/items/followUpto the response with the status
- info
- info
endpoint added
- info