Platforms
List platforms and their limits
What each platform accepts, so a post can be checked before it is sent.
GET
/v1/platformsTL;DR
| Question | Answer |
|---|---|
| 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"ts
import { Flung } from '@flung.dev/sdk'
const flung = new Flung({ apiKey: process.env.FLUNG_API_KEY! })const result = await flung.platforms.list()js
const response = await fetch('https://api.flung.dev/v1/platforms', { method: 'GET', headers: { 'Authorization': `Bearer ${process.env.FLUNG_API_KEY}`, },})if (!response.ok) throw new Error((await response.json()).error.message)const result = await response.json()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
| Status | Meaning | Body |
|---|---|---|
| 200 | Every platform. | PlatformList |
| 401 | Missing, unknown, revoked or expired API key. | Error |
| 422 | The request failed validation. | Error |
| 429 | Too many requests for this credential; wait for retry-after seconds. | Error |
Response body
A 200 answer has the type PlatformList.
| Field | Type | Required | Description |
|---|---|---|---|
data | PlatformInfo[] | yes | |
data[].platform | Platform | yes | |
data[].connectable | boolean | yes | Whether this Flung has the platform's app credentials, so accounts can be connected. |
data[].maxTextLength | integer | yes | |
data[].requiresMedia | boolean | yes | Refuses text-only posts. |
data[].maxImages | integer | yes | Images in one post; 0 when images are not accepted. |
data[].video | boolean | yes | Takes one video per post. |
data[].maxImageBytes | integer | yes | |
data[].maxVideoBytes | integer | yes | |
data[].postsPerHour | integer | yes | How fast Flung publishes to one account, to stay inside the platform's limits. |
data[].tokensExpire | boolean | yes | Whether connections expire; Flung renews them before they do where the platform allows. |
data[].destinations | boolean | yes | Posts go to a destination chosen per post (Pinterest boards). |
See also
| Doc | Why |
|---|---|
| API reference | Every endpoint |
| Schemas | Every request and response type |
| Errors | Every error code and what to do about it |
list_platforms | The same operation as an MCP tool |