● Pay-per-use add-on (paid plans)

Post to X (Twitter) via API: the X API v2, handled for you (2026)

Yes: PostWire publishes to X as a pay-per-use add-on of the paid plans. X charges for every post through its API, so posting to X uses X credits: 1 X credit = 1 X post; a post with a link uses 10 (X charges about 13 times more for links); each image or video adds 1. PostWire handles the OAuth 2.0 sign-in, token refresh and posting, so you publish to X with one REST call or one MCP tool — same shape as every other network.

How X (Twitter) posting works

X (formerly Twitter) exposes the X API v2. Posting needs OAuth 2.0 with the tweet.write scope (and media.write for images and video), and X bills every call: about $0.015 a post, $0.20 for a post that contains a link. You authenticate each account, then create posts (text, up to 4 images or one video).

PostWire manages the OAuth, token refresh, media upload and posting, counts the 280 characters the way X does (a link counts 23, an emoji 2), and its AI writes an X-native draft from the same idea as your other networks.

A thread, and the link in a reply. Send per_platform.x.thread (up to 25 posts after the first) and PostWire posts each one as a reply to the one before; options.x.reply adds one post under the last, the usual place for a link, since X shows posts with a link to fewer people. Every post of the chain is an X post (same credits, counts toward the daily cap), the whole chain is reserved before the first post goes out, and if X refuses a later post the first ones stay up and the rest is retried on its own, from the last post that went out — the first post is never sent twice.

Honest status

X is live on PostWire as a pay-per-use add-on of the paid plans — not on Free and not during the trial. Each paid plan includes X credits every month (Starter 30, Pro 150, Agency 600, Scale 2,000; they renew on the 1st and do not roll over) and a daily cap of X posts (5, 20, 60, 150). Top-up credits are 80 for $5 or 340 for $20, used after the plan's credits, and do not expire. A post without enough credits is not sent to X and the response says how to get more. Details: X credits in the API docs.

1. Connect an X (Twitter) account (OAuth)

X (Twitter) uses OAuth, not a password. Your user connects in the dashboard, or you generate the authorization URL via the API:

curl -X POST https://postwire.io/api/oauth/x/url \
  -H "Authorization: Bearer $POSTWIRE_API_KEY"
# -> { "url": "https://.../oauth/authorize?..." }
# The user opens the URL, approves, and PostWire stores the token (and refreshes it for you).

2. Publish with one REST call

Once connected, posting is a single request. Add more networks by putting more strings in platforms.

curl -X POST https://postwire.io/api/post \
  -H "Authorization: Bearer $POSTWIRE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"platforms":["x"],"text":"Shipping PostWire today"}'

3. Or let an AI agent post it (MCP)

PostWire ships an MCP server — hosted, or local via npx postwire-mcp, authenticated with your API key. Add it to any MCP client:

{
  "mcpServers": {
    "postwire": {
      "command": "npx",
      "args": ["-y", "postwire-mcp"],
      "env": { "POSTWIRE_API_KEY": "pw_live_xxx" }
    }
  }
}

Then the agent just calls the tool:

{
  "name": "post_to_social",
  "arguments": { "platforms": ["x"], "text": "Shipping PostWire today" }
}

X (Twitter) via API: build it yourself vs PostWire

 Direct integrationPostWire
Platform audit / reviewYou apply & maintain itHandled for you
OAuth + token refreshYou build itManaged
AI agent supportBuild your own toolMCP tool out of the box
Other networksOne integration each9 networks, one API

Pricing: per brand (one business, all its networks)

PlanPriceBrands
Free$01 brand · 10 posts/mo · 2 networks per post
Starter$193 brands · 300/mo
Pro$2910 brands · 2,000/mo
Agency$9950 brands
Scale$299200 brands

14-day refund on paid plans. Ten businesses on Ayrshare's Launch plan cost $299/month (pricing page, Sept 26, 2026); on PostWire, $29. See PostWire vs Ayrshare.

X is on the paid plans. Starter ($19/month) includes 30 X credits a month — 30 plain X posts, or 3 with a link — and every other network on PostWire. Start on the free plan with your other networks, no card. If it does what you need, Starter is $19/month for three brands and 1,000 posts.
Start free — no card →

FAQ

Does X (Twitter) have an API?
Yes, the X API v2 — but as of 2026 posting sits on a paid tier and the free tier is read-limited. Price the plan before you build against it.
Can I post to X (Twitter) via API?
Yes. X exposes the X API v2 with OAuth 2.0 and the tweet.write scope. On PostWire it is one REST call or one MCP tool, the same shape as every other network, as a pay-per-use add-on of the paid plans.
Does the X API cost money?
Yes. X bills API posting per call: about $0.015 for a post and $0.20 for a post that contains a link (X developer console, Oct 2026). On PostWire you pay in X credits instead: 1 credit for a plain post, 10 for a post with a link, +1 per image or video.
Is X live on PostWire yet?
Yes, since October 2026, as a pay-per-use add-on of the paid plans (Starter, Pro, Agency and Scale). It is not available on Free or during the trial.
How does an AI agent post to X?
Through PostWire's MCP server: the agent calls post_to_social with platforms set to x and the text. get_x_credits says how many X credits are left and how many a post will use.
Can PostWire post an X thread, or put the link in a reply?
Yes. per_platform.x.thread takes up to 25 posts after the first, each published as a reply to the one before, and options.x.reply adds one post under the last (the link). Each post uses X credits like any X post — a 4-post thread with a link only in the reply uses 13 — and the whole thread is reserved before anything is sent. If X refuses a later post, PostWire retries the rest on its own without re-posting the first.
How much does posting to X cost on PostWire?
X credits: 1 X credit = 1 X post; a post with a link uses 10; each image or video adds 1. Included every month: Starter ($19) 30, Pro ($29) 150, Agency ($99) 600, Scale ($299) 2,000. Top-ups: 80 credits for $5 or 340 for $20.