Skip to content

X Chat docs: fix conversation_id format, event naming, and media sample consistency - #604

Merged
tcaldwell-x merged 1 commit into
mainfrom
tcaldwell/docs-xchat-payload-consistency
Dec 2, 2026
Merged

tcaldwell-x merged 1 commit into
mainfrom
tcaldwell/docs-xchat-payload-consistency

Conversation

@tcaldwell-x

Copy link
Copy Markdown
Collaborator

Fixes inconsistencies across the X Chat and X Activity API pages.

Real-time events (xchat/real-time-events.mdx)

  • The chat.received sample used a hyphen-form 1:1 conversation_id. Events use the canonical colon form (lower:higher); only URL paths use A-B. The sample now uses the colon form.
  • Added the fields deliveries commonly carry: created_at, filter, conversation_token, id, created_at_msec, message_event_signature. event_uuid is now a numeric string, matching the Event payloads page.
  • Clarified that payload.id in chat.* events is the message UUID, while id in GET /2/chat/conversations/{id}/events responses is the event's sequence ID.

Event naming

  • The Activity introduction, Event payloads, and both pricing tables now use chat.conversation.join. chat.conversation_join is noted as a deprecated alias that is still accepted when creating a subscription.

Event payloads (x-api/activity/event-payloads.mdx)

  • The 1:1 conversation_id in the chat.received / chat.sent samples was in higher:lower order. It is now lower:higher.

Media (xchat/media.mdx)

  • The encrypt and download samples called encrypt_stream / decrypt_stream with a raw key, but the page's own prose and upload order require encrypt_file / decrypt_file for message attachments. The samples in all six languages now use encrypt_file / decrypt_file with EncryptFileParams / DecryptFileParams, matching the Chat XDK.
  • Rewrote the key-version note: decrypt_file picks the key for the message's version from the key map, so pass the full map (or an empty map with the key cache on).

Docs-only change; no new features, dates, or deprecation banners.

Made with Cursor

…le consistency

Co-authored-by: Cursor <cursoragent@cursor.com>
@tcaldwell-x
tcaldwell-x marked this pull request as ready for review December 2, 2026 18:29
@tcaldwell-x
tcaldwell-x merged commit b1f56ef into main Dec 2, 2026
@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, 6:32 PM

This branch was successfully deployed

1 active deployment
staging — 01156cbb 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