twitter as the platform value in API payloads; product UI may label the
destination as X.
The X adapter supports direct posts, replies, quote posts, polls, first
comments, simple threads, and media upload from public Kavenio media URLs.
For a product-level overview, see the
X (Twitter) posting API page.
Quick Reference
Create A Post
Create a normal X post with the shared posts API:replySettings can be following, mentionedUsers, subscribers, or
verified. Replies cannot set replySettings.
Replies And Quotes
Reply to an existing post:Threads
UsethreadItems for a reply chain created by one publish request. The root
post uses the top-level content and optional top-level mediaItems; each
thread item can include its own content and mediaItems.
Media Upload
X media upload requires themedia.write OAuth scope. Accounts connected
before Kavenio added that scope must reconnect before uploading media. Text-only
publishing continues to use tweet.write.
If mediaItems are present and platformSpecificData.mediaIds is not supplied,
Kavenio downloads each public media URL at publish time, uploads it to X, and
attaches the returned provider media IDs to the post.
Images cannot be mixed with GIF or video. GIF and video cannot be mixed with
each other.
Supported media metadata:
Media URLs must be public HTTP(S) URLs that return raw media bytes. Kavenio
rejects private and localhost media URLs before provider upload.
Existing Provider Media
If you already uploaded media to X outside Kavenio, pass provider media IDs:mediaIds are provided, Kavenio does not upload mediaItems for that
target.
Polls
Polls live inplatformSpecificData.poll:
Additional Fields
Scheduling
Use Kavenio scheduling fields for scheduled X posts:Unsupported
Kavenio returns a validation or provider-unsupported error before calling X for these combinations:- more than 4 images
- more than 1 GIF or 1 video
- mixed image/GIF/video groups
- media on quote posts
- polls with media, quotes, or threads
- reply posts with
replySettings - document media
- native provider edit or unpublish after publication