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

# Plant Care API

> A simple API for managing your houseplants.

The Plant Care API lets you manage a collection of houseplants. You can add plants, retrieve your full list, and remove plants you no longer have. For each plant, the API tracks its name, species, and how often it needs watering.

<Note>
  **Beta:** You are viewing the v2.0 docs. Use the version dropdown in the sidebar to switch back to v1.1.
</Note>

## What's new in v2.0

* **Get a single plant** with `GET /plants/{id}`.
* **Update a watering schedule** with `PATCH /plants/{id}`.
* **Record waterings** with `POST /plants/{id}/water`. Each plant now includes a `lastWateredAt` timestamp.
* **Filter by watering status** with the `needsWater` query parameter on `GET /plants`.
* The base URL is now `http://localhost:3000/v2`.

## Get started

<CardGroup cols={2}>
  <Card title="API Reference" icon="terminal" href="/mintlify-demo/v2.0/api-reference">
    Browse all v2.0 endpoints with an interactive playground.
  </Card>

  <Card title="v1.1 docs" icon="clock-rotate-left" href="/mintlify-demo/v1.1/index">
    Still on the previous version? Read the v1.1 documentation.
  </Card>
</CardGroup>
