Social media API: one key to post to 14 networks
One Antwork API key posts to X (Twitter), LinkedIn, Facebook, Threads, Instagram, YouTube, TikTok, Pinterest, Bluesky, Discord, Mastodon, Telegram, Google Business Profile, and Slack, from the REST API or Antwork's MCP endpoint. On TikTok the user chooses each post's audience and settings, which your code or AI asks them. Free for 2 accounts and 10 posts a month; Pro is $19 a month for 5 accounts.
- 01One key, two surfaces.
An Antwork API key works on the REST API and on the MCP endpoint, and both reach all 14 networks. A TikTok post publishes with the user's own choices for it, which the API and MCP tools ask for, as TikTok requires.
- 02No platform app of yours.
Antwork runs the Meta, LinkedIn, X, Pinterest, TikTok, Google, Bluesky, Mastodon, Discord and Telegram integrations. You connect each social account once in Antwork, then post to it by account id.
- 03Same plans as the app.
Free covers 2 accounts and 10 posts a month; Pro is $19 a month for 5 accounts with unlimited posts; Business is $29 a month for 10; Scale is $39 a month for 30; Agency is $89 a month for 100. New accounts start with 7 days of Pro. The API has no separate fee and no per-call meter.
Antwork, Ayrshare, Blotato and Buffer API compared
Competitor figures were read on each vendor's own pricing page and API docs on 22 October 2026, and each cell links to its source. Ayrshare's pricing page gives different account counts per plan in its cards and its comparison table, so the table quotes profiles, the unit it bills by. Antwork's row is computed from the code: the networks from the platform rules file, the price from the billing constants, the limit from the API's rate limiter.
Antwork is a social media API with one key for X (Twitter), LinkedIn, Facebook, Threads, Instagram, YouTube, TikTok, Pinterest, Bluesky, Discord, Mastodon, Telegram, Google Business Profile, and Slack. Your code calls the REST API to publish or schedule on any of them, and the same key works for an agent on Antwork's MCP endpoint. You never build a platform app or pass an app review: you connect each account once in Antwork and post to it by id.
Endpoints
Everything lives under https://antwork.io/api/v1 and takes the same key. The whole API is described as OpenAPI 3.1 at /openapi.json, and each endpoint has its own page in the API reference.
Posts
POST /postscreates one post per target account: up to 25 accounts per request, with per-account copy intexts, or one entry per post inposts, each with its own hashtags, tags, goal, media and settings. Name an account twice for two versions on it; more than one target makes a campaign. It answers202with a result per target, because a target fails alone: X refusing a long body does not cancel the LinkedIn post beside it. Each result carriesreadiness(characters, missing media or settings) and aneditUrlinto the Antwork composer.GET /posts/{id}returns one post, its status and itsreadiness. Publishing runs in the background, so this is how you see it go out.GET /postslists your posts, filtered by workspace, account, campaign, status or a date range, and paged with a cursor, up to 100 a page.PATCH /posts/{id}edits a draft, scheduled or failed post: text, hashtags, goal, account, settings, or its time.PUT /posts/{id}/mediasets its media, in order, andPOST /posts/{id}/media/fitcrops or pads its images to the platform's aspect ratio.POST /posts/{id}/publishsends a stored post now (a failed one is retried),POST /posts/{id}/scheduleschedules or moves it, andPOST /posts/{id}/unscheduletakes it back to draft.POST /campaigns/{id}/publishandPOST /campaigns/{id}/schedulesend every post of a campaign, up to 10, each on its own.DELETE /posts/{id}removes a post from Antwork. WithdeleteFromPlatform=trueit also queues deletion of the live post, and says which networks do not support that.GET /posts/{id}/commentsreads the comments on a published post live from the network, andPOST /posts/{id}/commentsreplies to one, or to the post, as the account. X, Mastodon, Bluesky and LinkedIn company pages read and reply; YouTube follows once Google verifies the permission both reading and replying need, and Instagram, Facebook and Threads once Meta approves their comment permissions; until then they answercomments_unsupported, and afterwards an account connected earlier answersreconnect_for_commentsuntil it is reconnected. On X a read returns at most 50 replies from the last 7 days (an older post saysolderThanSearchWindow) and is cached for 10 minutes.
Media
POST /mediaadds a file to the workspace's media library, and can attach it to posts in the same call. Two sources:{url}, a public link Antwork fetches (images up to 10 MB, other files up to 100 MB; 20 links per key per 10 minutes), or{upload}, which answers a one-time address youPUTthe bytes to (images up to 10 MB, video and PDF up to 1 GB). Either way the file gets a media id.- A post's
mediatakes those media ids, or Antwork library URLs. A link from anywhere else is refused withmedia_not_hostedbefore anything is created, rather than failing at publish time. GET /medialists the library andDELETE /media/{id}removes a file, unless a post still uses it.POST /webhooksregisters an https URL that Antwork POSTs a signed event to when a post is scheduled, published or fails, or an account needs reconnecting, instead of you polling.GET /webhooks,GET,PATCHandDELETE /webhooks/{id}manage them,POST /webhooks/{id}/testsends a ping,GET /webhooks/{id}/deliveriesshows the last attempts andPOST /webhooks/{id}/rotate-secretreplaces the signing secret. See webhooks.PUT /posts/{id}/recurrencemakes a scheduled or published post repeat on a rhythm (repeat: every so many days or weeks, until a date or for a number of times), or puts it in its account's evergreen queue (evergreen: true), which Antwork re-sends into the account's empty posting slots, the least recently sent first. Alternatevariantsrotate per post. Each post it makes is a normal post with every scheduling check, so one the plan, the account's cap or X's duplicate rule refuses is skipped with its reason.GETandDELETE /posts/{id}/recurrenceread and stop it,GET /recurrenceslists a workspace's, andPATCH /recurrences/{id}pauses or resumes one. Paid plans; not on TikTok.
Accounts, workspaces and analytics
GET /accountslists the accounts you connected, with their ids and token health.GET /accounts/{id}adds the settings a post to it takes, Pinterest boards, and its daily cap with what is left;include=recentPostsadds the account's recent posts, its voice, andinclude=bestTimesthe composer's suggested times.POST /accounts/{id}/platform-posts:fetchreads the account's recent posts back from the platform, with metrics and links. Each call spends the account's quota on that platform, so a key may make 10 platform reads per 10 minutes.GET /workspaces,POST /workspacesandPATCH /workspaces/{id}list, create and update workspaces (name, website, logo).GET /workspaces/{id}/connect-urlsreturns links that connect a new account; the OAuth itself happens in the browser.GET /platformsreturns each network's rules: character limit, media, daily caps and post settings.GET /analytics/performancereports lifetime metrics per published post and per platform;GET /analytics/dailyreports engagement per day, per platform, and followers per account, or one post's history.GET /usagereturns your plan and quota position.
Send an Idempotency-Key header on POST /posts, the publish and schedule endpoints, PATCH /posts/{id}, POST /media with a link and POST /workspaces, and a retried request returns the first answer instead of acting twice. Fields and every error code are in the API reference.
Your first post in two requests
Create a key in Settings → Developer, then:
# 1 · list the accounts you connected
curl https://antwork.io/api/v1/accounts \
-H "Authorization: Bearer $ANTWORK_API_KEY"
# 2 · create and schedule a post
curl https://antwork.io/api/v1/posts \
-H "Authorization: Bearer $ANTWORK_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: launch-post-1" \
-d '{"accounts":["<accountId>"],"text":"Shipped v2 today.","scheduledFor":"2026-11-03T09:00:00Z"}'
Leave out scheduledFor to publish now, or send "draft": true to save it for review. A draft needs the write scope; a post that goes out needs publish. To add an image or video, upload it with POST /media first (the media scope) and pass its id in media.
TikTok, and the same key for agents
The REST API takes X (Twitter), LinkedIn, Facebook, Threads, Instagram, YouTube, TikTok, Pinterest, Bluesky, Discord, Mastodon, Telegram, Google Business Profile, and Slack. TikTok is the one network where a person stays in the loop: TikTok requires the user to choose each post's audience, interactions and commercial content disclosure, with no defaults, and to agree to TikTok's music usage declaration. Send a TikTok post with POST /posts/{id}/publish or /schedule and, without the user's answers, it is refused with tiktok_choices_needed: tiktokChoices carries the creator's nickname, the privacy options TikTok offers them right now, which interactions they disabled, the disclosure labels, the longest video allowed and the declaration with TikTok's links. Ask the user, then send their answers as tiktokSettings with userConsented: true; they are checked against TikTok's live options and apply to that post only. A posts[] entry that publishes or is scheduled takes them in its options. The MCP tools work the same way, so your AI asks you in the chat.
For an agent, send the same key to Antwork's MCP endpoint, which any MCP client or agent SDK can call with a static header:
claude mcp add --transport http antwork https://api.antwork.io/mcp \
--header "Authorization: Bearer $ANTWORK_API_KEY"
The scopes behave the same on both surfaces. Setup for Codex and the Claude Agent SDK in TypeScript and Python is in the MCP reference. Instagram only connects Creator or Business accounts; switching is free and needs no Facebook Page.
What each network requires
Every post is checked against these rules on both surfaces: a draft is flagged, and a post that breaks one is refused before it publishes. The table is generated from the same rules file the publishers validate against, so it cannot disagree with what the API enforces. A Pinterest pin also goes to a board, picked from the account's boards. File sizes, formats and duration ceilings are in platform specifications.
| Platform | Text limit | Required media | Media per post | Through the REST API |
|---|---|---|---|---|
| X (Twitter) | 280 characters | None | 4 | Yes |
| 3,000 characters | None | 9 | Yes | |
| 63,206 characters | None | 10 | Yes | |
| Threads | 500 characters | None | 20 | Yes |
| 2,200 characters | Image or video | 10 | Yes | |
| YouTube | 5,000 characters | Video | 1 | Yes |
| TikTok | 2,200 characters | Video | 1 | Yes, with the user's own choices for each post, asked from TikTok's live options |
| 800 characters | Image or video | 1 | Yes | |
| Bluesky | 300 characters | None | 4 | Yes |
| Discord | 2,000 characters | None | 10 | Yes |
| Mastodon | 500 characters | None | 4 | Yes |
| Telegram | 4,096 characters | None | 10 | Yes |
| Google Business Profile | 1,500 characters | None | 1 | Yes |
| Slack | 4,000 characters | None | 10 | Yes |
Pricing
The API is priced like the app. Free covers 2 connected accounts and 10 posts a month; Pro is $19 a month for 5 accounts with unlimited posts; Business is $29 a month for 10; Scale is $39 a month for 30; Agency is $89 a month for 100. New accounts start with 7 days of Pro, and the API has no separate fee. Each key has a ceiling of 10,000 calls a day and 120 a minute, to stop runaway loops rather than ration normal use. See pricing.
When another API fits better
If you need Reddit, Snapchat or WhatsApp, Ayrshare lists them and Antwork does not. If you already schedule with Buffer, its GraphQL API reaches the channels you have there. Antwork fits when you post for one brand, want to start free, and want your agent and your code on the same accounts.