PubNio publishing API for X (Twitter)

PubNio's X Publishing API delivers single text posts and multi-part threads with strict preflight character validation, weekly queues, and isolated per-target retries. Connect unlimited X accounts for $0 per account; direct X API create charges are passed through at X's exact rate with $0 markup and shown at preflight.

PubNio is a third-party service. Availability depends on platform approval and account permissions.

Capabilities & requirements.

Defined by PubNio's publishing contract for X (Twitter).

X (Twitter) Publishing API capabilities and requirements
CapabilityDetails
Supported placementsText posts and multi-item threads
Account prerequisiteX account authorized via OAuth 2.0
SchedulingExplicit ISO 8601 timestamp or per-account weekly queue
X API pass-through$0.015/post or $0.200/post with URL at exact X cost ($0 PubNio markup)
Account fees$0 per connected X account across all plans

OAuth & account connection

  • X accounts authorize via OAuth 2.0 in the PubNio workspace.
  • Direct X API create fees are billed from prepaid balance at exact provider cost and surfaced at preflight before publishing.

Preflight validation before delivery

  • Validates character counts per post/thread item (caption_too_long) before calling X.
  • Discloses X API pass-through fees during preflight so autonomous agents stay inside workspace budgets.
  • Isolates X token expiry so sibling targets (like LinkedIn or Facebook) still publish cleanly.

Publish to X (Twitter) via SDK or CLI.

Draft once, validate before sending, and confirm live delivery with an idempotency key.

const draft = await workspace.posts.create({
  isDraft: true,
  text: "PubNio now ships $0 connected accounts across every tier.",
  targets: [{ accountId: xAccountId, placement: "feed" }],
});
await workspace.posts.validate(draft.postId);
const job = await workspace.posts.publish(draft.postId, {
  idempotencyKey: "x-pricing-launch",
});
publish-x.ts · @pubnio/sdkX error codes

Frequently asked questions.

How are X (Twitter) API fees billed on PubNio?

X charges per API request ($0.015 per standard post and $0.200 per post containing a URL). PubNio passes those charges through at X's exact cost with $0 markup and shows the fee in preflight.

Does PubNio support X threads?

Yes. PubNio supports both single text posts and multi-post threads on X.

Publish to X (Twitter) with 100 free deliveries.

Connect unlimited X (Twitter) accounts for $0 and confirm live delivery over REST API, SDK, CLI, or hosted MCP.