Skip to content
Connect an agent

Posts

List posts

Newest first.

GET/v1/posts

TL;DR

QuestionAnswer
What does it do?List posts.
What does it need?An API key or an OAuth access token.
What does it take?limit, startingAfter, status, platform, accountId in the query string.
What does it return?Status 200 with a body of type PostList.
In the SDK?flung.posts.list()
As an MCP tool?list_posts
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

Newest first. Pass the last id of a page as startingAfter to get the next one.

Example

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

A successful answer looks like this:

json
{  "data": [    {      "id": "post_aaaaaaaaaaaaaaaaaaaaaaaa",      "status": "scheduled",      "content": "string",      "mediaIds": [        "string"      ],      "platformOverrides": {},      "publishAt": "2026-11-01T09:00:00.000Z",      "createdAt": "2026-11-01T09:00:00.000Z",      "updatedAt": "2026-11-01T09:00:00.000Z"    }  ],  "hasMore": true}

Query parameters

FieldTypeRequiredDescription
limitintegerno
startingAfterstringnoThe id of the last post of the previous page.
status"scheduled" | "publishing" | "published" | "partially_published" | "failed" | "cancelled"no
platformanynoOnly posts with a target on this platform.
accountIdstringnoOnly posts with a target on this account.

Responses

StatusMeaningBody
200A page of posts.PostList
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 PostList.

FieldTypeRequiredDescription
dataPostSummary[]yes
data[].idstringyes
data[].status"scheduled" | "publishing" | "published" | "partially_published" | "failed" | "cancelled"yes
data[].contentstringyes
data[].mediaIdsstring[]yes
data[].platformOverridesobjectyes
data[].platformOverrides.xobjectno
data[].platformOverrides.instagramobjectno
data[].platformOverrides.facebookobjectno
data[].platformOverrides.threadsobjectno
data[].platformOverrides.linkedinobjectno
data[].platformOverrides.tiktokobjectno
data[].platformOverrides.youtubeobjectno
data[].platformOverrides.pinterestobjectno
data[].platformOverrides.blueskyobjectno
data[].platformOverrides.mastodonobjectno
data[].platformOverrides.discordobjectno
data[].platformOverrides.farcasterobjectno
data[].publishAtstringyes
data[].createdAtstringyes
data[].updatedAtstringyes
hasMorebooleanyes

See also

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