Retrieves messages and key change events for a specific Chat conversation with pagination support. For 1:1 conversations, provide the recipient’s user ID; the server constructs the canonical conversation ID from the authenticated user and recipient.
curl --request GET \
--url https://api.x.com/2/chat/conversations/{id} \
--header 'Authorization: Bearer <token>'{
"data": [
{
"encoded_event": "<string>",
"conversation_id": "<string>",
"conversation_token": "<string>",
"created_at_msec": "<string>",
"id": "<string>",
"is_trusted": true,
"message_event_signature": {
"message_signing_key_info_list": [
{
"member_id": "<string>",
"public_key_version": "<string>",
"signing_public_key": "<string>"
}
],
"public_key_version": "<string>",
"signature": "<string>",
"signature_version": "<string>",
"signing_public_key": "<string>"
},
"previous_sequence_id": "<string>",
"sender_id": "<string>",
"sequence_id": "<string>"
}
],
"errors": [
{
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"status": 123
}
],
"meta": {
"conversation_key_events": [
"<string>"
],
"has_more": true,
"next_token": "<string>",
"result_count": 123
}
}Documentation Index
Fetch the complete documentation index at: https://docs.x.com/llms.txt
Use this file to discover all available pages before exploring further.
The access token received from the authorization server in the OAuth 2.0 flow.
The recipient's user ID for a 1:1 conversation, or a group conversation ID (prefixed with 'g'). Identifies the conversation target. Accepts three formats: (1) a recipient user ID for 1:1 conversations (e.g., '1215441834412953600'), (2) a legacy 1:1 conversation ID with two user IDs separated by a dash (e.g., '1215441834412953600-1603419180975409153'), or (3) a group conversation ID prefixed with 'g' (e.g., 'g1234567890123456789'). The server constructs the canonical conversation ID from the authenticated user and recipient when a single user ID is provided.
^([0-9]{1,19}|[0-9]{1,19}-[0-9]{1,19}|g[0-9]{1,19})$"1215441834412953600"
Maximum number of message events to return.
1 <= x <= 100Token for pagination to retrieve the next page of results.
A comma separated list of ChatMessageEvent fields to display. The fields available for a ChatMessageEvent object.
1conversation_id, conversation_token, created_at_msec, encoded_event, id, is_trusted, message_event_signature, previous_id, sender_id [
"conversation_id",
"conversation_token",
"created_at_msec",
"encoded_event",
"id",
"is_trusted",
"message_event_signature",
"previous_id",
"sender_id"
]The request has succeeded.
List of message events in the conversation.
Show child attributes
1An HTTP Problem Details object, as defined in IETF RFC 7807 (https://tools.ietf.org/html/rfc7807).
Show child attributes
Show child attributes
curl --request GET \
--url https://api.x.com/2/chat/conversations/{id} \
--header 'Authorization: Bearer <token>'{
"data": [
{
"encoded_event": "<string>",
"conversation_id": "<string>",
"conversation_token": "<string>",
"created_at_msec": "<string>",
"id": "<string>",
"is_trusted": true,
"message_event_signature": {
"message_signing_key_info_list": [
{
"member_id": "<string>",
"public_key_version": "<string>",
"signing_public_key": "<string>"
}
],
"public_key_version": "<string>",
"signature": "<string>",
"signature_version": "<string>",
"signing_public_key": "<string>"
},
"previous_sequence_id": "<string>",
"sender_id": "<string>",
"sequence_id": "<string>"
}
],
"errors": [
{
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"status": 123
}
],
"meta": {
"conversation_key_events": [
"<string>"
],
"has_more": true,
"next_token": "<string>",
"result_count": 123
}
}