Inbox
List the inbox
Get a workspace’s comments, mentions and Google reviews in one list, the ones that need a reply first.
GET
cURL
Needs
comments:read. Your role in the workspace must also let you see public comments; a Client’s does. See Permissions.workspace_id as one list: comments on your posts, posts and comments on the networks that mention your accounts, and Google reviews of your locations. Newest activity comes first, 25 a page. You don’t walk posts: one call covers every account.
Open items come by default: the ones that need a reply. An item is open while the newest message in it is someone else’s and nobody on the team has answered, marked it done, hidden or deleted it. It becomes done when the team replies, from PostSyncer or on the network, and a new message from them opens it again. With status=open and no other filter, meta.total is the number the app’s sidebar shows (the sidebar shows 99+ past 99).
Each item carries what it takes to answer it: the words with each link whole, the post a mention quotes (quoted) and its link card (link_preview), the messages under it (thread), your post or the post that mentions you and who wrote it (about), the account a reply goes out from, the person and their contact card, tags, the draft waiting, what you may do (can), why no app can answer it when that is so (cant_reply_reason), and the network’s reply length (reply_limit). Get an inbox item describes every field.
Filters
ready takes the words true and false.
Only what’s new, page by page
Note the time just before each call, and send it assince on your next one. since goes by when PostSyncer read an item’s newest message, not when it was written on the network, so a review or a mention that PostSyncer reads late still comes, even when its last_activity_at is older than since. An item read at exactly that time comes again, so skip the ids you have. The order and cursor stay on last_activity_at. To read on past the first page, send meta.next_cursor back as cursor with the same filters. next_cursor is null on the last page. meta.total counts the matching items up to 1,000.
meta.counts gives the workspace’s open items whatever the filters: open in all, ready with a draft waiting, and mine given to the key’s user. It comes with the first page only: on a page read with cursor, it is null.
Each count in meta.counts and in the summary (open, ready, mine, by_kind, by_platform, by_account) is counted up to 100: 100 means 100 or more, as the sidebar shows 99+. meta.total is counted up to 1,000.
It reads what PostSyncer has saved and changes nothing. Comments come in as Answer comments says; mentions and reviews as Work through the Inbox says. Works on every plan.
Errors
Related
- Get the inbox summary: the counts, before you list.
- Update an inbox item: mark it done, give it to a teammate, or leave a draft.
- Work through the Inbox: the whole routine for an agent.
Authorizations
Query Parameters
Only items PostSyncer read at or after this time (ISO 8601): a new message, from them or from you, or the newest one going away. Send the time of your last call, taken just before you made it. It goes by when PostSyncer read the message, not when it was written, so a review or a mention read late still comes, and an item can come whose last_activity_at is older than since. An item read at exactly that time comes again, so skip the ids you have.
Example:
"2030-03-15T09:00:00Z"