---
title: "X"
description: "What PubNio supports on X: publishing, analytics, inbox, and ads."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# X

X charges its own API fee per post, which PubNio passes through at cost from prepaid credit: $0.015 per post, or $0.200 when it contains a link.

Send a poll on a text-only root post. Put these fields in the target's
`settings`.

```json
{
  "poll": { "options": ["Morning", "Afternoon"], "durationMinutes": 1440 },
  "replySettings": "mentionedUsers"
}
```

Omit `replySettings` to use the X default. To tag people in JPEG, PNG, or WebP
photos, send their X user IDs as strings, for example
`"mediaTaggedUserIds": ["123456789"]`. Use the numeric user ID from an X user
lookup. To attach a place, send the opaque `geo.place_id` from an X post
lookup as `settings.placeId`. X checks tag eligibility, places, and
account-specific reply controls during publishing.

Use these options on feed posts. X article drafts reject feed options.
Native quotes require an X Enterprise app. With PubNio's current app, omit
`quotePostId` and include the X post URL in the post text.

The X inbox arrives through X Activity webhooks; PubNio never polls it, and it
needs a paid plan. When delivery cannot work, the account reports an
unavailable reason and the action that fixes it, such as reconnecting X,
waiting for repair, upgrading the plan, adding credit, or raising the spend
cap. X keeps direct messages for 30 days and encrypted X Chat is not supported.
Missed deliveries can be replayed within X's 24-hour window; an outage or a
period without a subscription that cannot be replayed appears as a delivery gap
to review on X.

|               |                |
| ------------- | -------------- |
| Publishing    | Live           |
| Analytics     | Yes            |
| Inbox         | Yes            |
| Ads           | —              |
| Account kinds | social account |
| Connection    | `tweet.write`  |

## Placements

| Placement | Default | Media types      | Max per target | Caption limit |
| --------- | ------- | ---------------- | -------------- | ------------- |
| `feed`    | Yes     | `image`, `video` | 4              | 280           |

## Related

- [Error codes](https://pubnio.com/docs/errors/x/)
- [Every network compared](https://pubnio.com/docs/networks/)
- [Platform capabilities](https://pubnio.com/docs/capabilities/)

Source: https://pubnio.com/docs/networks/x/index.mdx
