{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-search-content-request-schema.json",
  "title": "SearchContentRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-q-search-api-openapi.yml#/components/schemas/SearchContentRequest",
  "type": "object",
  "properties": {
    "nextToken": {
      "type": "string",
      "description": "The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results."
    },
    "maxResults": {
      "type": "integer",
      "description": "The maximum number of results to return per page."
    },
    "knowledgeBaseId": {
      "type": "string",
      "description": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN."
    },
    "searchExpression": {
      "$ref": "#/$defs/SearchExpression"
    }
  },
  "required": [
    "knowledgeBaseId",
    "searchExpression"
  ],
  "$defs": {
    "Filter": {
      "type": "object",
      "properties": {
        "field": {
          "type": "string",
          "description": "The field on which to filter."
        },
        "operator": {
          "type": "string",
          "description": "The operator to use for comparing the field’s value with the provided value."
        },
        "value": {
          "type": "string",
          "description": "The desired field value on which to filter."
        }
      },
      "required": [
        "field",
        "operator",
        "value"
      ]
    },
    "SearchExpression": {
      "type": "object",
      "properties": {
        "filters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Filter"
          },
          "description": "The search expression filters."
        }
      },
      "required": [
        "filters"
      ]
    }
  }
}