Skip to content

XAA event payloads: realistic includes, includes guarantees, long-post note - #605

Merged
tcaldwell-x merged 1 commit into
mainfrom
tcaldwell/docs-xaa-event-includes
Dec 2, 2026
Merged

tcaldwell-x merged 1 commit into
mainfrom
tcaldwell/docs-xaa-event-includes

Conversation

@tcaldwell-x

Copy link
Copy Markdown
Collaborator

Fixes inaccuracies in the X Activity API event payload docs (x-api/activity/event-payloads.mdx):

  • post.reply.create, post.quote.create, post.repost.create examples no longer show "includes": {} (real deliveries omit empty includes). Each now shows realistic includes: users (author + referenced author) and tweets (the event Post + the replied-to / quoted / reposted Post).
  • Replaces the vague "Optional expanded objects … when available" envelope row with a new "Expanded objects in includes" section with per-event guarantees: quote/repost always include the referenced Post; reply includes the parent unless it is unavailable (deleted/not viewable), in which case it is absent with no error; deep-thread replies include only the direct parent (use conversation_id); authors and media are best effort; resolve by payload IDs.
  • Adds a Post events note: for posts over 280 characters, full text and entities are in payload.note_tweet; top-level text is shortened.

Validation: all 31 JSON samples parse; mint validate / mint broken-links show only pre-existing errors in unrelated files (Ads API <Button>, two migrate-overview links).

@mintlify

mintlify Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
x-corp 🟢 Ready View Preview Dec 2, 2026, 9:02 PM

@tcaldwell-x
tcaldwell-x merged commit 7c16f74 into main Dec 2, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
staging — 1f8f21e7 Deployed Dec 2, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant