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

# Search Store items

> Search beneath namespace_prefix. Omit query to list/filter values; semantic query search requires the agent memory model configuration. The SDK accepts the namespace array as its first method argument.



## OpenAPI

````yaml /api/openapi.sdk.json post /api/ai/store/items/search
openapi: 3.0.3
info:
  title: XpertAI SDK HTTP API
  version: 1.0.0
  description: >-
    Current HTTP endpoints used by the SDK guide. Authenticate with a
    server-side API Key using Authorization: Bearer <API_KEY> or x-api-key.
    These endpoints do not require ChatKit. The reference covers the guide
    examples, not every method exported by the SDK. Check deployment support
    before using additional fields.
servers:
  - url: https://api.xpertai.cn
    description: XpertAI API. Replace with your own API origin for private deployments.
security:
  - ApiKeyBearer: []
  - ApiKeyHeader: []
tags:
  - name: Assistants
  - name: Threads
  - name: Runs
  - name: Contexts
  - name: Store
paths:
  /api/ai/store/items/search:
    post:
      tags:
        - Store
      summary: Search Store items
      description: >-
        Search beneath namespace_prefix. Omit query to list/filter values;
        semantic query search requires the agent memory model configuration. The
        SDK accepts the namespace array as its first method argument.
      operationId: search_store_items
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                namespace_prefix:
                  type: array
                  items:
                    type: string
                  minItems: 1
                  description: >-
                    The first namespace segment is the agent ID. Segments must
                    not contain periods.
                filter:
                  type: object
                  additionalProperties: true
                query:
                  type: string
                limit:
                  type: integer
                  minimum: 0
                  default: 10
                offset:
                  type: integer
                  minimum: 0
                  default: 0
              required:
                - namespace_prefix
            example:
              namespace_prefix:
                - 22222222-2222-4222-8222-222222222222
                - sdk-example
              limit: 10
              offset: 0
      responses:
        '201':
          description: Successful response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/StoreItem'
              example:
                items:
                  - namespace:
                      - 22222222-2222-4222-8222-222222222222
                      - sdk-example
                    key: key1
                    value:
                      value: 42
                    created_at: '2026-10-12T00:00:00Z'
                    updated_at: '2026-10-12T00:00:00Z'
        '400':
          description: Invalid input, identifier mismatch or invalid operation state.
        '401':
          description: Missing or invalid API Key.
        '403':
          description: The caller cannot access the requested resource.
        '404':
          description: Resource not found or unavailable to the caller.
components:
  schemas:
    StoreItem:
      type: object
      properties:
        namespace:
          type: array
          items:
            type: string
        key:
          type: string
        value:
          type: object
          additionalProperties: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - namespace
        - key
        - value
  securitySchemes:
    ApiKeyBearer:
      type: http
      scheme: bearer
      description: Server-side API Key; do not expose it in browser code.
    ApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.