{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/twexapi-io/json-schema/twexapi-io-grok-history-response-schema.json",
  "title": "GrokHistoryResponse",
  "description": "Response for Grok conversation history list",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/twexapi-io-grok-endpoints-api-openapi.yml#/components/schemas/GrokHistoryResponse",
  "properties": {
    "code": {
      "type": "integer",
      "title": "Code",
      "description": "Response code"
    },
    "msg": {
      "type": "string",
      "title": "Msg",
      "description": "Response message"
    },
    "data": {
      "items": {
        "$ref": "#/$defs/GrokHistoryItem"
      },
      "type": "array",
      "title": "Data",
      "description": "Grok conversation list"
    }
  },
  "type": "object",
  "required": [
    "code",
    "msg",
    "data"
  ],
  "$defs": {
    "GrokHistoryItem": {
      "properties": {
        "conversation_id": {
          "type": "string",
          "title": "Conversation Id",
          "description": "Grok conversation id"
        },
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id",
          "description": "Grok conversation id (alternate)"
        },
        "title": {
          "type": "string",
          "title": "Title",
          "description": "Conversation title"
        },
        "created_at_ms": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created At Ms",
          "description": "Created at timestamp in ms"
        },
        "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"
    }
  }
}