Skip to main content
Kavenio publishes to X, formerly Twitter, through connected user accounts. Use 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:
Quote an existing post:
Quote posts cannot include media or polls.

Threads

Use threadItems 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.
Threads cannot include polls. Each thread item must include text or media.

Media Upload

X media upload requires the media.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.
Supported media groups: 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:
When mediaIds are provided, Kavenio does not upload mediaItems for that target.

Polls

Polls live in platformSpecificData.poll:
Polls require 2-4 options. Each option can be up to 25 characters. Duration must be between 5 and 10,080 minutes. Polls cannot include media, quote posts, or threads.

Additional Fields

Scheduling

Use Kavenio scheduling fields for scheduled X posts:
Scheduled media is uploaded when the scheduled publish job runs. Keep media URLs publicly fetchable until publish time.

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

Common Errors

Official X API References