{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/maximem-ai/json-schema/maximem-ai-post-v1-context-customer-fetch-request-schema.json",
  "title": "PostV1ContextCustomerFetchRequest",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/maximem-ai-openapi-generated.yml#/components/schemas/PostV1ContextCustomerFetchRequest",
  "type": "object",
  "properties": {
    "customer_id": {
      "type": "string",
      "description": "The customer identifier to fetch context for."
    },
    "conversation_id": {
      "type": "string",
      "description": "Optional conversation identifier. When provided, results are biased toward memories relevant to the active conversation."
    },
    "search_query": {
      "type": "string",
      "description": "One or more search queries to find relevant customer memories."
    },
    "max_results": {
      "type": "integer",
      "description": "Maximum number of memory items to return. Defaults to 10, maximum 50."
    },
    "max_results_per_query": {
      "type": "integer",
      "description": "How many items each search query may contribute when search_query holds more than one."
    },
    "types": {
      "type": "string",
      "description": "Filter results to specific memory types."
    },
    "mode": {
      "type": "string",
      "description": "Retrieval mode that controls the speed-quality tradeoff (fast or accurate)."
    },
    "precision_level": {
      "type": "string",
      "description": "Controls how precisely results are filtered before they're returned (high or medium)."
    },
    "query_date": {
      "type": "string",
      "description": "The moment the question is being asked, e.g., \"2023-03-11\"."
    },
    "response_shape": {
      "type": "string",
      "description": "How the memories come back (ranked or by_type)."
    },
    "scope_path": {
      "type": "object",
      "description": "The level of your scope ladder to read from, below the customer."
    }
  },
  "required": [
    "customer_id"
  ]
}