APIWings API documentation
APIWings is one API to publish on Instagram, Facebook Pages, Threads, LinkedIn, TikTok, YouTube, Bluesky and X. You send one request with a list of networks and per-network options; APIWings connects your users' accounts through hosted consent pages, stores their tokens encrypted, publishes, and tells you the real result on each network.
The API is in private beta. API keys are given to beta teams; you can ask for access on the home page. The current API runs at https://api-staging.apiwings.com, and its strict OpenAPI 3.1 spec is at https://api-staging.apiwings.com/v1/openapi.json.
Start here
- Quickstart: API key, profile, connect an account, media, your first post and webhooks.
- One page per network, below: account types, how connecting works, supported content,
options, limits,visibilityand errors.
Networks
| Network | Status |
|---|---|
| Bluesky | Live |
| Coming soon | |
| Coming soon | |
| Coming soon | |
| Threads | Coming soon |
| TikTok | Coming soon |
| YouTube | Coming soon |
| X | Planned (at cost) |
Each network has its own page even before it opens, so you can plan your integration. A network marked "coming soon" opens to beta teams when that network approves the APIWings integration.
Concepts
| Concept | What it is |
|---|---|
| Profile | One end customer of your product. Accounts and posts belong to a profile; API keys can be scoped to a single profile. |
| Account | A social account connected to a profile (a Bluesky handle, a Facebook Page, a YouTube channel…). status is active, expired or disconnected. |
| Post | One request to publish the same content on several accounts. Each network gets its own target in platforms, with its own status, url, visibility and error. |
| Media | Images and videos, uploaded once (or passed as public URLs) and reused across networks. |
| Webhooks | Signed notifications: post.published, post.failed, account.disconnected, account.expiring. |
The request shape
Every post, on every network, is one POST /v1/posts:
{
"profile_id": "1f0c…",
"content": "Our spring collection is live",
"media_urls": ["https://cdn.example.com/spring.jpg"],
"platforms": [
{ "platform": "bluesky", "options": { "alt": "Three jackets on a rail" } },
{ "platform": "linkedin" }
],
"scheduled_at": "2026-12-01T10:00:00Z",
"idempotency_key": "spring-launch-001"
}
| Field | Type | Notes |
|---|---|---|
profile_id |
string (uuid) | Required. |
content |
string | Required, up to 10,000 characters. Each network applies its own, usually lower, limit. |
media |
array of media ids | From POST /v1/media, in display order. |
media_urls |
array of URLs | Public https URLs; they go after media. Up to 10 media in total. |
platforms |
array (1–8) | platform, optional account_id (needed only when the profile has more than one active account of that network) and optional options, validated by that network. |
scheduled_at |
ISO 8601 date-time | Optional. Omitted or in the past = publish now. |
idempotency_key |
string (8–128) | Required. The same key returns the same post and never publishes twice. |
Limits that apply to every network
content: up to 10,000 characters per request.- Media: up to 10 files per post (
mediaandmedia_urlstogether), each JPEG, PNG, WebP, GIF, MP4 or MOV and up to 1 GB. Some networks accept fewer formats or smaller files: see each network's page. - Uploaded media expires after 7 days. APIWings does not transcode video.
- Before a post is accepted, every network in
platformschecks it locally (text length, number and type of media, options). If any check fails, the whole request is refused with422and nothing is created. Checks that need the network itself (image dimensions, video duration, account permissions) happen when publishing, and show up in that target'serror.
Errors
Every error is JSON {code, error, platform_message?} and every response carries an X-Request-Id header. platform_message is the network's original message, when there is one.
| Code | HTTP status | Meaning |
|---|---|---|
validation_failed |
422 | The request or an option is not valid for a network. Fix and send again. |
media_invalid |
422 | A file does not meet a network's format, size or processing rules. |
auth_expired |
401 | The account's token expired or was revoked: the user must reconnect it. |
rate_limited |
429 | A network limit was reached (retried automatically when it makes sense), or your API key went over 600 requests per minute (see the Retry-After header). |
platform_rejected |
422 | The network refused the post. |
platform_down |
502 | The network is unavailable or still processing. Retried automatically unless the post could be duplicated. |
Errors that happen while publishing are stored in the target (platforms[].error) and sent with the post.failed webhook. Temporary errors are retried automatically, up to 3 attempts with exponential backoff.
Usage
GET /v1/usage?month=YYYY-MM (optional profile_id) returns what your account used in a calendar month (UTC): publications, counted as one post to one network, published and failed per network, how many included video, the networks' pass-through costs (X) and your spending cap, and the accounts connected right now. Published posts count in the month they were published.
Visibility
Each published target has a visibility: public, private, unlisted, self_only or draft. It is what the network applied, not what was requested. For example, TikTok publishes as self_only until TikTok audits the APIWings integration. Each network page explains where its value comes from.
SDKs, CLI and MCP
A TypeScript SDK, a Python SDK, a command-line tool and an MCP server for AI agents are available to beta teams and will be published before the public launch. See the quickstart.
