{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coldstate-ai/json-schema/coldstate-ai-create-index-request-schema.json",
  "title": "CreateIndexRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coldstate-ai-openapi.yml#/components/schemas/CreateIndexRequest",
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 200
    },
    "description": {
      "type": "string",
      "maxLength": 1000
    },
    "collection_name": {
      "type": "string",
      "maxLength": 100
    },
    "domain_preset": {
      "type": "string",
      "enum": [
        "general",
        "medical",
        "biomedical",
        "scientific",
        "technical",
        "legal",
        "financial",
        "ecommerce"
      ]
    },
    "mode": {
      "type": "string",
      "enum": [
        "hosted",
        "iaas"
      ],
      "default": "hosted"
    },
    "webhook_url": {
      "type": "string",
      "format": "uri"
    },
    "settings": {
      "type": "object"
    },
    "documents": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Document"
      }
    }
  },
  "$defs": {
    "Document": {
      "type": "object",
      "required": [
        "content"
      ],
      "properties": {
        "content": {
          "type": "string"
        },
        "ref_id": {
          "type": "string",
          "description": "Your reference id; the only identifier stored"
        },
        "metadata": {
          "type": "object"
        }
      }
    }
  }
}