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

# List all plants



## OpenAPI

````yaml /mintlify-demo/v2.0/api-reference/openapi.yaml get /plants
openapi: 3.0.3
info:
  title: Plant Care API
  version: 2.0.0
  description: >-
    A simple API for managing houseplants. Version 2.0 adds single-plant
    retrieval, watering schedule updates, and last-watered tracking.
servers:
  - url: http://localhost:3000/v2
security: []
paths:
  /plants:
    get:
      summary: List all plants
      operationId: listPlants
      parameters:
        - name: species
          in: query
          description: Filter plants by species name (partial match)
          required: false
          schema:
            type: string
        - name: needsWater
          in: query
          description: Only return plants that are due for watering
          required: false
          schema:
            type: boolean
      responses:
        '200':
          description: A list of plants
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Plant'
components:
  schemas:
    Plant:
      type: object
      properties:
        id:
          type: integer
          example: 1
        name:
          type: string
          example: Monstera
        species:
          type: string
          example: Monstera deliciosa
        wateringFrequencyDays:
          type: integer
          example: 7
        lastWateredAt:
          type: string
          format: date-time
          nullable: true
          description: When the plant was last watered. Null if never recorded.
          example: '2026-07-28T09:30:00Z'

````