Skip to content
Connect an agent

Platforms

List platforms and their limits

What each platform accepts, so a post can be checked before it is sent.

GET/v1/platforms

TL;DR

QuestionAnswer
What does it do?List platforms and their limits.
What does it need?An API key, an OAuth access token, or a connect token (this is one of the calls a connect token may make).
What does it take?Nothing.
What does it return?Status 200 with a body of type PlatformList.
In the SDK?flung.platforms.list()
As an MCP tool?list_platforms
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.

Example

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

A successful answer looks like this:

json
{  "data": [    {      "platform": "x",      "connectable": true,      "maxTextLength": 1,      "requiresMedia": true,      "maxImages": 1,      "video": true,      "maxImageBytes": 1,      "maxVideoBytes": 1,      "postsPerHour": 1,      "tokensExpire": true,      "destinations": true    }  ]}

Responses

StatusMeaningBody
200Every platform.PlatformList
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 PlatformList.

FieldTypeRequiredDescription
dataPlatformInfo[]yes
data[].platformPlatformyes
data[].connectablebooleanyesWhether this Flung has the platform's app credentials, so accounts can be connected.
data[].maxTextLengthintegeryes
data[].requiresMediabooleanyesRefuses text-only posts.
data[].maxImagesintegeryesImages in one post; 0 when images are not accepted.
data[].videobooleanyesTakes one video per post.
data[].maxImageBytesintegeryes
data[].maxVideoBytesintegeryes
data[].postsPerHourintegeryesHow fast Flung publishes to one account, to stay inside the platform's limits.
data[].tokensExpirebooleanyesWhether connections expire; Flung renews them before they do where the platform allows.
data[].destinationsbooleanyesPosts go to a destination chosen per post (Pinterest boards).

See also

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