# PubNio publishing API for X (Twitter)

Human page: https://pubnio.com/platforms/x
MCP guide: https://pubnio.com/x-mcp.md

## Summary

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 & limits

| Capability | Details |
| --- | --- |
| Supported placements | Text posts and multi-item threads |
| Account prerequisite | X account authorized via OAuth 2.0 |
| Scheduling | Explicit 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 & prerequisites

- 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

- 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.

## TypeScript SDK example

```ts
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",
});
```

## CLI example

```sh
pnio posts create --draft --workspace $WORKSPACE_ID \
  --account $X_ACCOUNT_ID --placement feed \
  --text "PubNio now ships $0 connected accounts." --publish
```

## FAQs

### 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.
