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

# Search Product Types

> Search ProductTypes using type-ahead functionality.

System product types (e.g. __base_template__) are excluded from results.

**Authentication Required**: Requires `product_type:read` permission.



## OpenAPI

````yaml /openapi/merchantops-public.json get /api/product-types/search
openapi: 3.1.0
info:
  description: >-
    Public API for the MerchantOps product catalog, pricing, and publishing
    surface.
  title: MerchantOps API
  version: 1.0.0
servers:
  - description: Production
    url: https://api.merchantops.ai
security: []
paths:
  /api/product-types/search:
    get:
      tags:
        - Product Types
      summary: Search Product Types
      description: |-
        Search ProductTypes using type-ahead functionality.

        System product types (e.g. __base_template__) are excluded from results.

        **Authentication Required**: Requires `product_type:read` permission.
      operationId: search_product_types
      parameters:
        - description: Search query
          in: query
          name: q
          required: true
          schema:
            description: Search query
            title: Q
            type: string
        - description: Maximum results
          in: query
          name: limit
          required: false
          schema:
            default: 20
            description: Maximum results
            maximum: 100
            minimum: 1
            title: Limit
            type: integer
        - in: header
          name: authorization
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - in: header
          name: X-Organization-ID
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Organization-Id
        - in: cookie
          name: stytch_session
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Stytch Session
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProductTypeSearchResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    ProductTypeSearchResponse:
      description: Response model for search results.
      properties:
        items:
          items:
            $ref: '#/components/schemas/ProductTypeResponse'
          title: Items
          type: array
        query:
          title: Query
          type: string
        total:
          title: Total
          type: integer
      required:
        - query
        - total
        - items
      title: ProductTypeSearchResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ProductTypeResponse:
      description: Response model for a single ProductType.
      properties:
        category_key:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Key into product_type_categories — links this ProductType to a
            Category for 3-tier prompt resolution.
          title: Category Key
        createdAt:
          anyOf:
            - type: string
            - type: 'null'
          description: Creation timestamp
          title: Createdat
        createdBy:
          anyOf:
            - type: string
            - type: 'null'
          description: User who created this
          title: Createdby
        description:
          anyOf:
            - items:
                additionalProperties:
                  type: string
                type: object
              type: array
            - type: 'null'
          description: Localized descriptions
          title: Description
        id:
          description: MongoDB ObjectId as string
          title: Id
          type: string
        isActive:
          default: true
          description: Active status
          title: Isactive
          type: boolean
        is_system:
          default: false
          description: System-managed ProductType
          title: Is System
          type: boolean
        key:
          description: Unique identifier
          title: Key
          type: string
        lastModifiedAt:
          anyOf:
            - type: string
            - type: 'null'
          description: Last modification timestamp
          title: Lastmodifiedat
        lastModifiedBy:
          anyOf:
            - type: string
            - type: 'null'
          description: User who last modified this
          title: Lastmodifiedby
        name:
          description: Human-readable name
          title: Name
          type: string
        propertyCount:
          default: 0
          description: Number of properties
          title: Propertycount
          type: integer
        propertyKeys:
          description: List of property keys
          items:
            type: string
          title: Propertykeys
          type: array
      required:
        - id
        - key
        - name
      title: ProductTypeResponse
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````