The X API,without a developer app
Publish posts, threads and polls to X. Answer DMs and read what every post did. One API key, on OmniSocials’ own X app.
Webhooksyour-app.com/hooks
post.scheduledpost 1024just now200
post.publishedpost 10192 h ago200
post.approvedpost 10193 h ago200
POST/v1/posts/createapplication/json
01{
02 "content": "Post from your own code: SDKs in 8 languages.",
03 "accounts": ["x"],
04 "media_urls": [
05 {
06 "url": "https://cdn.example.com/sdk.png",
07 "alt": "SDK code"
08 }
09 ],
10 "x": { "reply_settings": "following" },
11 "schedule_at": "2026-10-22T18:00:00Z"
12}
Sending201 Created412 ms
Send13{
14 "data": {
15 "id": "1024",
16 "status": "scheduled",
17 "app_url": "https://app.omnisocials.com/create-post/1024"
18 }
19}
A request schedules an X post with an image for Thu at 18:00; it appears in the OmniSocials calendar and the webhook post.scheduled fires.
Your coding agent runs the same calls through the CLI
Skip the X developer app
X’s own API needs a developer app, pay-per-use billing on every call, OAuth with two-hour tokens and a chunked media upload. OmniSocials already did that work.
Posts, threads and polls, one request
Every X format shares one request shape. Add media with alt text, split a long text into a thread or ask a question with a poll. OmniSocials counts characters the way X does before anything is sent.
Posts and long posts
Up to 4 images or one video, each image with alt text. Basic and Premium accounts post up to 25,000 characters, counted the way X counts.
media_urlsalt
Threads
2 to 25 tweets in one request, each with its own text and media. OmniSocials posts them in order as one thread.
x.thread_parts
Polls, replies and labels
Polls of 2 to 4 options for 5 minutes to 7 days. Choose who can reply, and add the Paid partnership or Made with AI label.
x.pollx.reply_settingsx.made_with_ai
Threads, chained for you
Send 2 to 25 parts in one request. OmniSocials uploads each part’s media, posts the first tweet and adds every next part as a reply to the one before. Each tweet’s id and link come back on the post.
One request with x.thread_parts publishes a three-part thread on X; each tweet is a reply to the one before, and the post then lists every tweet in x.thread_tweets.
Chained in order
Each part replies to the one before it, so X shows one thread. A poll, reply settings and labels go on the first tweet.
x.thread_parts
Media on every tweet
Up to 4 images or one video per part, by URL or library id, each image with its own alt text.
media_urlsmedia_idsalt
Every tweet’s link
Once it is live, the post lists each tweet’s id and URL. If X stops halfway, the tweets that went out stay up and are listed.
x.thread_tweetspublished_urls.x
Connect X once, post from code
Sign in with X once inside OmniSocials. Create an API key, and your code posts, replies and reports for that account.
Sign in with X
X’s own sign-in, once, in the app. OmniSocials renews X’s two-hour tokens before they run out.
A key per workspace
A key only reaches its own workspace. Inbox access is switched on per key.
Premium, detected
The accounts call returns the X subscription: any paid tier raises posts to 25,000 characters, and Premium also allows longer videos.
GET /v1/accountssubscription_type
Answer X DMs from your code
Switch on X DMs in the Social Inbox, then list conversations and reply from your own code. X bills every DM, so they run on credits at X’s own rates.
X DMs
List conversations and reply from your own code. Comments and mentions on X stay out of the inbox.
type=dm/conversations/:id/reply
Opt-in
Someone with billing access switches X DMs on in the Social Inbox, with at least 25 credits on the balance.
At X’s rates
1 credit per received DM and 2 per reply. At zero credits the X inbox pauses; top up and switch it back on.
402 x_inbox_suspended
“The MCP is the real game changer for me. It makes the whole workflow feel much faster and less messy.”

Ansub Khan
Founder of Supafast
Read what X reports
Views, likes, replies, reposts, quotes and bookmarks per post, with link clicks and profile visits for the first 30 days. The API returns the same numbers the app charts. X bills every check, so they run on credits at X’s own price.
Per post
Views, likes, replies, reposts, quotes and bookmarks. A thread comes back as one entry, its parts added up.
/analytics/posts/:idthread_parts
The first 30 days
Link clicks, profile visits and X’s own engagement count while a post is under 30 days old. Polls add their votes.
link_clicksprofile_visits
Per account
Followers, following, posts and lists, saved daily or weekly as you choose, so you can read a past day by date. X reports no reach.
/analytics/accountsdate
Under the hood
Built for production
Signed webhooks, automatic retries, SDKs in 8 languages and a key per workspace. Create a key and send your first request in minutes.
X’s rules, in one place
OmniSocials checks every post against them before it reaches X, so a post that is too long fails in your request, not at publish time.
Text280 characters, 25,000 on Basic or Premium
CountingA link counts 23, an emoji 2, like on X
MediaUp to 4 images or one video, not both
ImagesJPEG, PNG or WebP up to 5 MB, alt text
Video140 seconds, 125 minutes with Premium
Thread2 to 25 tweets, up to 4 media each
Poll2 to 4 options, 5 minutes to 7 days
Link posts20 credits per tweet, X’s fee at cost
X DMs1 credit per DM, 2 per reply
X statisticsHalf a credit per post check, 1 per follower count
Rate limit100 requests a minute per API key
Your first post in three steps
About five minutes from sign-up to a scheduled post on X. Then hand the key to your coding agent.
Create an API key
Start your trial, open Settings, API and create a key. It is shown once.
Settings › APIStep 1
Connect your X account
Sign in with X in OmniSocials once. Then list the account from your code.
GET /v1/accountsStep 2
Send your first post
Post now with create-and-publish, or add schedule_at to plan it.
POST /v1/posts/createStep 3
Frequently
Asked Questions
Robert LigthartFounder of OmniSocials
Ship your X
integration this week.
From $10 per seat a month, API included. 14-day free trial.
https://docs.omnisocials.com/ platforms/ x




