Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.letmepost.dev/llms.txt

Use this file to discover all available pages before exploring further.

What it checks

  • images.length <= 4
  • videos.length <= 1
Counted before bytes resolve, so 5 image URLs fail before any fetch fires.

Why

X’s /2/tweets endpoint accepts at most 4 image media ids on a single tweet, and at most 1 video. Going over the cap surfaces upstream as a media validation error with no clean way to map back to which item was the offender — preflight catches it locally with the count surfaced in the message.

Failure response

{
  "error": {
    "code": "preflight_failed",
    "rule": "twitter.media.count_max",
    "platform": "twitter",
    "message": "Attached 5 images; X allows at most 4 per tweet.",
    "remediation": "Reduce to 4 images or fewer."
  }
}

Remediation

  • Trim the array to 4 images (or 1 video, or 1 GIF).
  • Multi-tweet threads carry separate media — split the post into a reply chain via twitter.replyToTweetId if you need more than 4 attachments overall.