X (Twitter)
X (formerly Twitter) is supported via the X API v2. OmniSocials posts to the account that completed the OAuth flow. Both standard and premium accounts are supported, and the character limit adjusts based on the account's subscription tier.
Channel ID: x
Supported content types
| Type | Supported |
|---|---|
| Feed post | ✅ |
| Story | - |
| Reel | - |
Minimal example
Code
Platform-specific options
| Field | Type | Description |
|---|---|---|
x.reply_settings | string | Who can reply: "" (everyone, default), following, or mentionedUsers |
x.paid_partnership | boolean | Mark as a paid partnership disclosure (default false) |
x.made_with_ai | boolean | Mark as AI-generated content (default false) |
x.thread_parts | array | Publish as a chained thread instead of a single tweet. See Posting threads. |
Code
Posting threads
To publish as a thread, pass x.thread_parts instead of relying on content.x. Each part becomes its own tweet, chained via in_reply_to_tweet_id.
Code
Rules:
-
2 to 25 parts. For a single tweet, omit
thread_partsand usecontent.x(orcontent.default) instead. -
Each
textis required, non-empty, and ≤ 280 characters. Parts that exceed the limit are rejected with a400. -
media_urlsis optional per part (max 4) and overrides any top-levelmedia_urls.xfor that specific tweet:Code -
When
content.xis provided alongsidethread_parts,thread_partswins. -
The first tweet's URL becomes
x_posted_urlon the post. The full chain is recorded onx_values.thread_tweetsfor analytics.
To convert a thread back into a single tweet on update, send x.thread_parts: null to PUT /posts/:id.
Character limits
| Account tier | Character limit |
|---|---|
| Standard | 280 |
| Premium (Blue) | 25,000 |
| Premium+ | 25,000 |
For single tweets, OmniSocials detects the connected account's subscription tier and enforces the correct limit at validation time. Thread parts always cap at 280 chars regardless of tier — that's an X API constraint, not an OmniSocials one.
Media requirements
| Media | Requirement |
|---|---|
| Image | JPEG, PNG, GIF, or WebP. Max 5 MB. Up to 4 per post. |
| Video | MP4, H.264 codec, up to 2 minutes 20 seconds, max 512 MB |
X does not support mixing image and video in the same post. Video posts allow one video. Image posts allow up to four images.
Limitations
- Polls are not supported through the X API v2 for third-party apps
- Posting to X requires approval by X for the OAuth app. Newly created X developer accounts may be subject to rate limits lower than the platform default.