Every comment and message, in one queue you can code against
FoPost pulls comments and direct messages from each connected account into one inbox. List them, count what is unread, mark items handled, and reply, all through the same API your dashboard uses.
curl "https://api.fopost.com/v1/inbox?workspaceId=9b2f6c1e-...&state=unread" \
-H "X-API-Key: $API_KEY"
{
"data": [
{ "id": "inb_01j8...", "type": "comment", "platform": "instagram", "accountId": "4a71d80b-...", "author": "@customer", "text": "Does this ship to Canada?", "postId": "post_01j8...", "receivedAt": "2026-08-29T14:02:11Z" },
{ "id": "inb_01j9...", "type": "message", "platform": "facebook", "accountId": "c30e9f12-...", "author": "Jordan P.", "text": "Hi, I need help with an order.", "receivedAt": "2026-08-29T13:48:30Z" }
]
}One list
Comments and messages from every account, newest first, with the same fields.
Unread count
A single call for the badge number, per workspace or per account.
Reply from code
Answer a comment or message and the reply goes back to the network.
Route incoming conversations to the right place
Poll the inbox on a schedule or on demand, filter by type, account, or status, and forward each item to your helpdesk, your chat channel, or a human. Every item links back to the post it belongs to, when there is one.
Read the inbox referencecurl "https://api.fopost.com/v1/inbox/unread-count?workspaceId=9b2f6c1e-..." \
-H "X-API-Key: $API_KEY"
{ "total": 14, "byAccount": { "4a71d80b-...": 9, "c30e9f12-...": 5 } }Filter
By type, account, platform, or read state, with cursor pagination.
Linked to the post
Comments carry the postId, so you can join them to analytics.
Inbox accounts
GET /v1/inbox/accounts lists which connected accounts feed the inbox.
Answer where the customer asked
POST a reply to an inbox item and it is posted as a comment reply or a direct message on the originating network, from the connected account. Mark items read, resolved, or snoozed with PATCH so two systems never handle the same one.
See the reply endpointcurl -X POST https://api.fopost.com/v1/inbox/inb_01j8.../reply \
-H "X-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{ "text": "Yes, we ship to Canada. Delivery takes 3 to 5 days." }'
curl -X PATCH https://api.fopost.com/v1/inbox/inb_01j8... \
-H "X-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{ "state": "read" }'Native reply
Comment replies and DMs go out through the network’s own API.
Status updates
read, archived, or flagged, so handled items drop out of the queue.
Explicit sends
Nothing replies on its own. Every outbound message is a request you make.
Fresh when you need it, quiet when you do not
The inbox syncs on a schedule for every connected account. When you need the latest right now, hit the refresh endpoint for one account and read again. Workspace scoping means an agency key only ever sees its own client’s conversations.
Start building
On-demand refresh
POST /v1/inbox/refresh pulls the latest for an account immediately.
Scheduled sync
Background sync keeps the list current without any call from you.
Workspace isolated
Author identity and message text never leave the workspace they belong to.
Comments & Inbox API questions, answered
Which networks feed the inbox?
Can I reply to direct messages?
How quickly do new comments appear?
Can the API reply automatically?
Do I get the author’s profile?
Is there a rate limit?
Build on the Comments & Inbox API today
Starting is free and the full API is included. Create a key and make your first call in minutes.
Get your API key