Skip to content
Connect an agent

Inbox

List comments and mentions

Comments on the accounts' posts and mentions of them, newest first, read from each platform about every 15 minutes.

GET/v1/inbox

TL;DR

QuestionAnswer
What does it do?List comments and mentions.
What does it need?An API key or an OAuth access token.
What does it take?status, accountId, postId, limit, startingAfter in the query string.
What does it return?Status 200 with a body of type InboxList.
In the SDK?flung.inbox.list()
As an MCP tool?list_inbox
What can go wrong?401 Missing, unknown, revoked or expired API key; 422 The request failed validation; 429 Too many requests for this credential; wait for retry-after seconds. Every failure has the same error shape.

What it does

Comments on the accounts' posts and mentions of them, newest first, read from each platform about every 15 minutes. For the next page pass the last id as startingAfter while hasMore is true.

Example

bash
curl -X GET 'https://api.flung.dev/v1/inbox' \  --header "Authorization: Bearer $FLUNG_API_KEY"

A successful answer looks like this:

json
{  "data": [    {      "id": "ibx_aaaaaaaaaaaaaaaaaaaaaaaa",      "accountId": "string",      "platform": "x",      "kind": "comment",      "status": "unread",      "text": "string",      "author": {},      "url": "string",      "platformItemId": "string",      "platformPostId": "string",      "targetId": "string",      "createdAt": "2026-11-01T09:00:00.000Z",      "repliedAt": "2026-11-01T09:00:00.000Z"    }  ],  "hasMore": true}

Query parameters

FieldTypeRequiredDescription
status"unread" | "read" | "replied" | "archived"no
accountIdstringno
postIdstringnoOnly comments on this Flung post.
limitintegerno
startingAfterstringno

Responses

StatusMeaningBody
200A page of items.InboxList
401Missing, unknown, revoked or expired API key.Error
422The request failed validation.Error
429Too many requests for this credential; wait for retry-after seconds.Error

Response body

A 200 answer has the type InboxList.

FieldTypeRequiredDescription
dataInboxItem[]yes
data[].idstringyes
data[].accountIdstringyes
data[].platformPlatformyes
data[].kind"comment" | "mention"yescomment: a reply to one of the account's posts. mention: the account named elsewhere.
data[].status"unread" | "read" | "replied" | "archived"yes
data[].textstringyes
data[].authorobjectyes
data[].author.idstringyes
data[].author.namestring | nullyes
data[].author.handlestring | nullyes
data[].urlstring | nullyes
data[].platformItemIdstringyes
data[].platformPostIdstring | nullyesThe platform post it answers.
data[].targetIdstring | nullyesThe Flung post target it answers, when that post went out through Flung.
data[].createdAtstringyes
data[].repliedAtstring | nullyes
hasMorebooleanyes

See also

DocWhy
API referenceEvery endpoint
SchemasEvery request and response type
ErrorsEvery error code and what to do about it
list_inboxThe same operation as an MCP tool