> ## 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.

# List Product Types

> List ProductTypes with optional filtering and pagination.

By default, system product types (e.g. __base_template__) are excluded.
Pass `include_system=true` to include them.

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



## OpenAPI

````yaml /openapi/merchantops-public.json get /api/product-types/
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/:
    get:
      tags:
        - Product Types
      summary: List Product Types
      description: |-
        List ProductTypes with optional filtering and pagination.

        By default, system product types (e.g. __base_template__) are excluded.
        Pass `include_system=true` to include them.

        **Authentication Required**: Requires `product_type:read` permission.
      operationId: list_product_types
      parameters:
        - description: Filter by active status
          in: query
          name: is_active
          required: false
          schema:
            anyOf:
              - type: boolean
              - type: 'null'
            description: Filter by active status
            title: Is Active
        - description: Include system product types (e.g. __base_template__)
          in: query
          name: include_system
          required: false
          schema:
            default: false
            description: Include system product types (e.g. __base_template__)
            title: Include System
            type: boolean
        - in: query
          name: limit
          required: false
          schema:
            default: 50
            maximum: 100
            minimum: 1
            title: Limit
            type: integer
        - in: query
          name: skip
          required: false
          schema:
            default: 0
            minimum: 0
            title: Skip
            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/ProductTypeListResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    ProductTypeListResponse:
      description: Response model for list of ProductTypes.
      properties:
        items:
          items:
            $ref: '#/components/schemas/ProductTypeResponse'
          title: Items
          type: array
        limit:
          title: Limit
          type: integer
        offset:
          title: Offset
          type: integer
        total:
          title: Total
          type: integer
      required:
        - total
        - items
        - limit
        - offset
      title: ProductTypeListResponse
      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

````