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

# Post to X

> What an X account takes through the API: threads, polls, quotes, Communities, X Articles, media limits, first comments, deletes, comments and analytics.

An X account has `platform` `twitter`. It posts single posts and threads, and through `settings` it can add a poll, quote or reply to a post, post in a Community, or publish an X Article.

## What you can post

* A post with text, up to 4 photos, one video or one GIF. Media is optional.
* A thread: each item of `content` is one post, sent as a reply to the one before.
* A poll, a quote, a reply to another post, or a post in an X Community.
* An X Article: a long post with a title. Only X Premium and Premium+ accounts can publish one. `can_publish_articles` on [Get an account](https://docs.postsyncer.com/api-reference/accounts/get.md) says whether the account can.

## Settings

Every key is optional. [Create a post](https://docs.postsyncer.com/api-reference/posts/create.md#platform-specific-settings) has the full list.

| Key | What it does |
| - | - |
| `text` | X's own text for the first post, instead of the first item's text. |
| `reply_settings` | Who can reply: `everyone` (the default), `following`, `mentionedUsers` or `subscribers`. |
| `for_super_followers_only` | Only Super Followers see the post. |
| `quote_tweet_id` | The id of a post to quote. |
| `reply.in_reply_to_tweet_id` | The id of a post to reply to. |
| `community_id` | The id of an X Community to post in. `share_with_followers` (default `true`) also shows it to your followers. |
| `poll` | `enabled`, `options` (2 to 4 choices, up to 25 characters each), `duration_minutes` (5 to 10080) and `reply_settings`. |
| `article` | `enabled`, `title` (needed when it's on) and `cover` (a media library picture id). |
| `media` | This account's own media library ids, in place of the first item's media. |

* A poll can't share its post with media. The request answers `422`: `X does not allow a poll and media in the same post. Remove the media or turn the poll off.`
* A poll with fewer than 2 or more than 4 choices, or a choice over 25 characters, answers `422`. Blank choices are dropped, and a `duration_minutes` outside 5 to 10080 is moved to the nearest end.

## Text

* X takes 280 characters by its own count: an emoji counts 2 and every link counts 23. An account with X Premium takes 25,000.
* Each post of the thread is checked on its own when you schedule or publish. A longer one answers `422` with its count. A draft isn't checked.

```json 422 theme={null}
{
  "message": "Post 2 of the thread for @haldencoffee is 291 characters by X's count (emoji count 2, every link 23). Without X Premium, X takes 280. Shorten it, give X its own shorter text in accounts[].settings.text, or split it into a thread.",
  "errors": {
    "content.1.text": ["Post 2 of the thread for @haldencoffee is 291 characters by X's count (emoji count 2, every link 23). Without X Premium, X takes 280. Shorten it, give X its own shorter text in accounts[].settings.text, or split it into a thread."]
  }
}
```

## Media

| | Limit |
| - | - |
| Photos | Up to 4, 5 MB each |
| GIF | 1, on its own, up to 15 MB |
| Video | 1, up to 512 MB |
| Picture types | JPG, PNG, GIF, WebP |
| Video types | MP4, MOV, WebM |

* Photos and a video can't go in the same post. In a thread, each post has its own media under these rules.
* A WebM video, or one larger than 1920 × 1200, faster than 60 frames a second, or not H.264 with AAC sound, is re-encoded to MP4 before it goes to X. A very long or very large video goes as it is.

## Threads and first comments

* Each item after the first is posted as a reply to the one before. Each item has its own text and media.
* A first comment (`is_first_comment: true`) is a reply at the end of the thread. With `first_comment_delay` `0` it goes out with the thread. With a delay (1 minute when you leave it out), it's posted that many minutes later, under the thread's last post.
* An X Article sends X only the Article, and the first comment as a reply. If the post has more than one item, give the Article its own `text`: the items then go to your other networks.

## Delete a post

Deleting the post in PostSyncer asks X to delete the first post. The rest of the thread and the first comment stay up on X. [Test safely](https://docs.postsyncer.com/test-safely.md#what-cant-be-undone) says what happens when X refuses.

## Comments

* PostSyncer reads X replies 2 hours after the post goes out, then once a day until the post is 2 days old, and whenever you ask with [Sync comments](https://docs.postsyncer.com/api-reference/comments/sync.md). A post whose read was started in the last 5 minutes, even one that failed, or is running now, isn't read again.
* On the Free plan, X comments come from a daily allowance. See [Plan limits](https://docs.postsyncer.com/plan-limits.md#x-comments-on-free).
* Replies go out from the account, with media under the same rules as a post.
* Hide works. Show again doesn't: `"hidden": false` answers `422` with `This network can't unhide comments.`
* Delete removes a reply from X only when the account wrote it on X. Any other comment is hidden on X instead, a reply sent from PostSyncer included.
* A delete answers `200`, also when X refuses. [Get comment](https://docs.postsyncer.com/api-reference/comments/get.md) shows what happened: `is_deleted_on_platform` or `is_hidden_on_platform` is `true`.

## Analytics

X gives `impressions`, `likes`, `comments`, `shares` (reposts), `quotes` and `saves`. `clicks` and `profile_visits` are `null`. A private X account has no numbers: its `analytics_unavailable.reason` is `x_private`. X is read less often than other networks once a post is 7 days old. See [Read analytics](https://docs.postsyncer.com/guides/analytics.md).

## Example

A draft thread with a first comment, where only people the account follows can reply:

```json theme={null}
{
  "workspace_id": 4815,
  "schedule_type": "draft",
  "content": [
    { "text": "Three things we changed in our espresso this spring." },
    { "text": "1. A lighter roast from the same farm." },
    { "text": "Taste it at Halden Coffee this week.", "is_first_comment": true }
  ],
  "accounts": [
    { "id": 16234, "settings": { "reply_settings": "following" } }
  ]
}
```

## Related

> [card] [X Articles](https://docs.postsyncer.com/api-reference/posts/create.md#x-articles)
>
> The Article's text, pictures and cover.

> [card] [Compare the 12 networks](https://docs.postsyncer.com/platforms/overview.md)
>
> How X differs from the other networks.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.