Skip to content
Twexapi
English
Esc
navigateopen⌘Jpreview

Get Grok Conversation

Get Grok conversation detail by conversation id.

Back to API Reference
/Grok Endpoints
POST/v3/twitter/grok/conversation
Authorization
AuthorizationBearer token · headerrequired
Global API Bearer Token for TwexAPI. Included as: Authorization: Bearer <YOUR_TWEXAPI_KEY>.
Request Body
requiredapplication/json
conversation_idstringrequired
Grok conversation rest id.
cookiestringrequired
The user's own authorized Twitter session credentials or auth_token (BYOC — Bring Your Own Cookie). Stateless proxy execution with zero credential retention. See [Authentication Security](/authentication#write-operations--byoc-bring-your-own-cookie) and [How to get Cookie](https://youtube-promotion.pages.dev/how-to-get-twitter-cookie).
proxystring | any
Optional HTTP proxy. Example: http://username:password@ip:port
Show properties
Any of:
string
string
any
any
Responses
200Grok conversation messages.
codeintegerrequired
Response code
msgstringrequired
Response message
dataGrokConversationData | any
Grok conversation detail
Show properties
Any of:
GrokConversationData
conversation_idstringrequired
Grok conversation rest id
is_pinnedboolean
Whether the conversation is pinned
default: false
cursorstring | any
Pagination cursor
Show properties
Any of:
string
string
any
any
itemsGrokConversationItem[]
Conversation items
Show properties
Array of GrokConversationItem
chat_item_idstringrequired
Chat item id
messagestring | any
Message content
Show properties
Any of:
string
string
any
any
sender_typestring | any
Sender type: User or Agent
Show properties
Any of:
string
string
any
any
created_at_msinteger | any
Created at timestamp in ms
Show properties
Any of:
integer
integer
any
any
grok_modestring | any
Grok mode
Show properties
Any of:
string
string
any
any
thinking_tracestring | any
Thinking trace text
Show properties
Any of:
string
string
any
any
image_urlsstring[]
Generated image urls from card attachments
any
any
422Validation Error
detailValidationError[]
Show properties
Array of ValidationError
locstring | integer[]required
Show properties
Array of string | integer
Any of:
string
string
integer
integer
msgstringrequired
typestringrequired
inputany
ctxobject
Interactive ConsolePOST
Interactive Console / Try APIPOST
Live Console
🌐Target Server:https://api.twexapi.io
● Production Ready
✍️
Write Operation Credentials Guide (TwexAPI Key + Twitter Cookie)

1. TwexAPI Platform Key (Bearer Token): Enter under "API Authorization" below for request billing & authentication.

2. Twitter Account Cookie: For write operations (tweet, like, follow, etc.), provide the target Twitter account's Cookie (e.g. auth_token=...; ct0=...) in the cookie field of Request Body below.

🔑API Authorization
📝Request Bodyapplication/json
📡
No Response Yet

Configure parameters in the Request tab and click Send Request below.

Request
curl -X POST "https://api.twexapi.io/v3/twitter/grok/conversation" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "conversation_id": "2063972906435248338",
  "cookie": "ct0=abc123... or 2c4a4e1832096aa694c739b83c83b6d96d43eba7",
  "proxy": "http://username:password@ip:port"
}'
Response
{
  "code": 200,
  "msg": "success",
  "data": {
    "conversation_id": "string",
    "is_pinned": false,
    "cursor": "string",
    "items": [
      {
        "chat_item_id": "2063977852924837888",
        "message": "string",
        "sender_type": "User",
        "created_at_ms": 0,
        "grok_mode": "Normal",
        "thinking_trace": "string",
        "image_urls": [
          "string"
        ]
      }
    ]
  }
}