> ## Documentation Index
> Fetch the complete documentation index at: https://docs.twexapi.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Grok History

> Get Grok conversation history list.



## OpenAPI

````yaml /api-reference/openapi.json post /v3/twitter/grok/history
openapi: 3.1.0
info:
  title: Twitter API Service
  description: |2-

            A comprehensive Twitter API service that provides various Twitter operations including:
            
            * **Search Operations**: Advanced search, hashtags, cashtags
            * **Tweet Operations**: Post, like, retweet, quote, bookmark, delete
            * **User Operations**: Batch user information retrieval
            * **Influencer Operations**: Get tweets from top influencers
            
            All endpoints return standardized responses in the format:
            ```json
            {
                "code": 200,
                "msg": "success", 
                "data": {...}
            }
            ```
            
            ## Authentication
            
            This API uses Bearer token authentication. Include your token in the Authorization header:
            ```
            Authorization: Bearer your_token_here
            ```
            
  contact:
    name: API Support
    email: support@twitterxapi.com
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.twexapi.io
    description: Development server
security: []
paths:
  /v3/twitter/grok/history:
    post:
      tags:
        - Grok Endpoints
      summary: Get Grok History
      description: Get Grok conversation history list.
      operationId: grok_history_api_v3_twitter_grok_history_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GrokHistoryQuery'
        required: true
      responses:
        '200':
          description: A list of Grok conversations.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GrokHistoryResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    GrokHistoryQuery:
      properties:
        count:
          anyOf:
            - type: integer
              maximum: 100
              minimum: 1
            - type: 'null'
          title: Count
          description: Number of conversations to return.
          default: 20
          example: 20
        cookie:
          type: string
          title: Cookie
          description: >-
            Twitter authentication cookie or Twitter auth_token,
            [how-to-get-twitter-cookie](https://youtube-promotion.pages.dev/how-to-get-twitter-cookie)
          example: ct0=abc123... or 2c4a4e1832096aa694c739b83c83b6d96d43eba7
        proxy:
          anyOf:
            - type: string
            - type: 'null'
          title: Proxy
          description: 'Proxy ref for session. Example: http://username:password@ip:port'
          example: http://username:password@ip:port
      type: object
      required:
        - cookie
      title: GrokHistoryQuery
      description: Parameters for getting Grok conversation history list
    GrokHistoryResponse:
      properties:
        code:
          type: integer
          title: Code
          description: Response code
          example: 200
        msg:
          type: string
          title: Msg
          description: Response message
          example: success
        data:
          items:
            $ref: '#/components/schemas/GrokHistoryItem'
          type: array
          title: Data
          description: Grok conversation list
      type: object
      required:
        - code
        - msg
        - data
      title: GrokHistoryResponse
      description: Response for Grok conversation history list
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    GrokHistoryItem:
      properties:
        conversation_id:
          type: string
          title: Conversation Id
          description: Grok conversation rest id
          example: '2076320454898278729'
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
          description: Grok conversation graphql id
        title:
          type: string
          title: Title
          description: Conversation title
          example: Friendly greeting
        created_at_ms:
          anyOf:
            - type: integer
            - type: 'null'
          title: Created At Ms
          description: Created at timestamp in ms
          example: 1783868347485
        is_pinned:
          type: boolean
          title: Is Pinned
          description: Whether the conversation is pinned
          default: false
      type: object
      required:
        - conversation_id
        - title
      title: GrokHistoryItem
      description: Grok conversation history item
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````