Repository navigation
X Chat docs: fix conversation_id format, event naming, and media sample consistency - #604
Merged
Merged
Conversation
…le consistency Co-authored-by: Cursor <cursoragent@cursor.com>
tcaldwell-x
marked this pull request as ready for review
December 2, 2026 18:29
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes inconsistencies across the X Chat and X Activity API pages.
Real-time events (
xchat/real-time-events.mdx)chat.receivedsample used a hyphen-form 1:1conversation_id. Events use the canonical colon form (lower:higher); only URL paths useA-B. The sample now uses the colon form.created_at,filter,conversation_token,id,created_at_msec,message_event_signature.event_uuidis now a numeric string, matching the Event payloads page.payload.idinchat.*events is the message UUID, whileidinGET /2/chat/conversations/{id}/eventsresponses is the event's sequence ID.Event naming
chat.conversation.join.chat.conversation_joinis noted as a deprecated alias that is still accepted when creating a subscription.Event payloads (
x-api/activity/event-payloads.mdx)conversation_idin thechat.received/chat.sentsamples was inhigher:lowerorder. It is nowlower:higher.Media (
xchat/media.mdx)encrypt_stream/decrypt_streamwith a raw key, but the page's own prose and upload order requireencrypt_file/decrypt_filefor message attachments. The samples in all six languages now useencrypt_file/decrypt_filewithEncryptFileParams/DecryptFileParams, matching the Chat XDK.decrypt_filepicks 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