{
  "openapi": "3.1.0",
  "info": {
    "title": "Plant Toxicity API",
    "version": "1.0.0",
    "summary": "Plant toxicity for cats, dogs and humans, care plans and name resolution.",
    "description": "Plant toxicity for cats, dogs and humans, care plans, and resolution of old, trade and common names to the accepted plant (Catalogue of Life, following Kew WCVP).\n\nSend your API key in the `X-API-Key` header (or `Authorization: Bearer`). Every response is JSON: `{ \"data\": ..., \"meta\": ... }` on success, `{ \"error\": { \"code\", \"message\" } }` on errors. `meta` carries your plan, the language, the data version, the credits you must show, and on Free the attribution you must display.\n\nText fields are objects such as `{ \"en\": \"...\", \"de\": \"...\" }`: English is always there, plus the language you asked for with `lang` when we have it. Levels, numbers and ids are never translated.\n\nDisclaimer: the data is general information compiled from public sources, provided as is. It does not replace a vet, a doctor or a poison center, and it may be incomplete or wrong; a plant without a rating is not shown to be harmless. Where you show the data, show your users your own notice that says so (the `disclaimer` sentence in each toxicity and care response is one you can use). See the Terms of Service.\n\nData provenance: Toxicity ratings are facts compiled from the public sources named with each rating (the `sources` field). Those sources' own terms may apply.\n\nCredits: the open datasets behind the names are listed at `GET /credits` (JSON) and as a page at `https://api.plant-toxicity-api.com/credits` (outside `/v1`, no key).\n\nPlans: Free 500 credits per month (Free plan: English, no batch, attribution required), Starter 30,000, Pro 300,000, Business 3,000,000 credits per month. One request uses one credit; a batch uses one per item.\n\nMCP: AI agents (Claude, Cursor) can use the same data through the MCP server at `https://api.plant-toxicity-api.com/mcp`, with the same key and credits (one per tool call).",
    "x-source": "Source of truth for the plant-api HTTP API, kept in sync with src/ (test/openapi.test.ts). Moved here 2026-12-01 from C:devapi-saas-template (commit a52d942).",
    "contact": {
      "name": "Plant Toxicity API",
      "url": "https://plant-toxicity-api.com"
    }
  },
  "servers": [
    {
      "url": "https://api.plant-toxicity-api.com/v1",
      "description": "Production"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    },
    {
      "BearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Toxicity",
      "description": "Toxicity for cats, dogs and humans, with sources and a disclaimer."
    },
    {
      "name": "Care",
      "description": "Care plans at species, genus or family level."
    },
    {
      "name": "Names",
      "description": "Find plants and resolve any name to the accepted plant."
    },
    {
      "name": "Batch",
      "description": "Several operations in one call (Starter and up)."
    },
    {
      "name": "Service",
      "description": "Service status."
    }
  ],
  "paths": {
    "/toxicity": {
      "get": {
        "operationId": "getToxicity",
        "tags": [
          "Toxicity"
        ],
        "summary": "Get toxicity",
        "description": "Toxicity for cats, dogs and humans for one plant. Give `name` (any scientific, old, trade or common name) or `id`.\n\nEach rating has a `level`, weakest to strictest: `not-rated`, `non-toxic`, `listed`, `mild`, `toxic`, `emergency`. A rating needs two public poison lists that agree; cat and dog ratings are `graded` (with a severity) where Pet Poison Helpline is one of the two, else `listed`. Human ratings use the full scale, with effects for kids and adults on hand-checked plants. When sources disagree, the strictest level wins and `notes` says so.\n\nEvery rating also says how many poison lists we check for that animal (`listsChecked`) and which of them name the plant or its genus (`listsNaming`). With fewer than two, the level is `not-rated` and the summary gives the counts (\"On 1 of the 7 poison lists checked, not enough for a rating. Treat with caution.\"). `non-toxic` only where a named source explicitly lists the plant as non-toxic and no list names it. A plant is never called safe.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Name"
          },
          {
            "$ref": "#/components/parameters/Id"
          },
          {
            "$ref": "#/components/parameters/Family"
          },
          {
            "$ref": "#/components/parameters/Lang"
          }
        ],
        "responses": {
          "200": {
            "description": "The toxicity ratings.",
            "headers": {
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Toxicity"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                },
                "example": {
                  "data": {
                    "plant": {
                      "id": "lilium-longiflorum",
                      "name": "Lilium longiflorum",
                      "rank": "species",
                      "family": "Liliaceae",
                      "genus": "Lilium",
                      "status": "accepted",
                      "query": "Lilium longiflorum"
                    },
                    "cat": {
                      "level": "emergency",
                      "scope": "genus",
                      "summary": {
                        "en": "Listed as able to cause serious poisoning."
                      },
                      "basis": [
                        "graded"
                      ],
                      "sources": [
                        {
                          "name": "Pet Poison Helpline",
                          "url": "https://www.petpoisonhelpline.com/poison/lilies/"
                        },
                        {
                          "name": "Agroscope Toxic Plants – Phytotoxin (TPPT) Database",
                          "url": "https://www.agroscope.admin.ch/de/giftpflanzen-phytotoxin-datenbank-tppt"
                        }
                      ],
                      "checked": "2026-12-01",
                      "listsChecked": {
                        "count": 7,
                        "names": [
                          "Agroscope Toxic Plants – Phytotoxin (TPPT) Database",
                          "Canadian Poisonous Plants Information System (CBIF)",
                          "Cornell University, Department of Animal Science",
                          "International Cat Care",
                          "MSD Veterinary Manual",
                          "Pet Poison Helpline",
                          "RSPCA"
                        ]
                      },
                      "listsNaming": {
                        "count": 3,
                        "names": [
                          "Agroscope Toxic Plants – Phytotoxin (TPPT) Database",
                          "MSD Veterinary Manual",
                          "Pet Poison Helpline"
                        ]
                      }
                    },
                    "dog": {
                      "level": "not-rated",
                      "scope": null,
                      "summary": {
                        "en": "On 1 of the 7 poison lists checked, not enough for a rating. Treat with caution."
                      },
                      "basis": [],
                      "sources": [],
                      "checked": "2026-11-16",
                      "listsChecked": {
                        "count": 7,
                        "names": [
                          "Agroscope Toxic Plants – Phytotoxin (TPPT) Database",
                          "Canadian Poisonous Plants Information System (CBIF)",
                          "Cornell University, Department of Animal Science",
                          "Dogs Trust",
                          "MSD Veterinary Manual",
                          "Pet Poison Helpline",
                          "RSPCA"
                        ]
                      },
                      "listsNaming": {
                        "count": 1,
                        "names": [
                          "Dogs Trust"
                        ]
                      }
                    },
                    "human": {
                      "level": "mild",
                      "scope": "species",
                      "summary": {
                        "en": "Listed as causing mild symptoms or skin irritation."
                      },
                      "notes": [
                        {
                          "en": "The sources disagree; we show the strictest level any of them gives. Some sources cover the genus as a whole, not this species on its own."
                        }
                      ],
                      "basis": [
                        "curated"
                      ],
                      "sources": [
                        {
                          "name": "California Poison Control System",
                          "url": "https://web.archive.org/web/20230706193624/https://calpoison.org/topics/plant"
                        },
                        {
                          "name": "National Capital Poison Center",
                          "url": "https://www.poison.org/articles/what-you-dont-know-about-the-easter-lily"
                        },
                        {
                          "name": "Horticultural Trades Association",
                          "url": "https://hta.org.uk/resources/get?mediaId=8478"
                        }
                      ],
                      "checked": "2026-11-12",
                      "listsChecked": {
                        "count": 5,
                        "names": [
                          "Agroscope Toxic Plants – Phytotoxin (TPPT) Database",
                          "California Poison Control System",
                          "Canadian Poisonous Plants Information System (CBIF)",
                          "Cornell University, Department of Animal Science",
                          "NC State Extension Gardener Plant Toolbox"
                        ]
                      },
                      "listsNaming": {
                        "count": 0,
                        "names": []
                      },
                      "kids": {
                        "level": "mild",
                        "effect": {
                          "en": "At most a mild stomach upset, usually only after eating a fair amount."
                        }
                      },
                      "adults": {
                        "level": "mild",
                        "effect": {
                          "en": "At most a mild stomach upset, usually only after eating a fair amount."
                        }
                      }
                    },
                    "toxicParts": {
                      "parts": [
                        {
                          "part": "bulb",
                          "orWholePlant": true
                        }
                      ],
                      "text": {
                        "en": "Toxic parts: bulb; possibly the whole plant."
                      },
                      "source": {
                        "name": "Agroscope Toxic Plants – Phytotoxin (TPPT) Database",
                        "url": "https://www.agroscope.admin.ch/de/giftpflanzen-phytotoxin-datenbank-tppt"
                      }
                    },
                    "disclaimer": {
                      "en": "For information only, not a substitute for a vet or poison center."
                    }
                  },
                  "meta": {
                    "plan": "pro",
                    "lang": "en",
                    "dataVersion": "2026.12.5",
                    "credits": [
                      {
                        "name": "Catalogue of Life (COL), following Kew WCVP / POWO",
                        "url": "https://www.catalogueoflife.org/",
                        "license": "CC BY 4.0",
                        "for": "scientific names and synonyms"
                      }
                    ],
                    "creditsUrl": "/credits"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/PlanLimit"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/care": {
      "get": {
        "operationId": "getCare",
        "tags": [
          "Care"
        ],
        "summary": "Get a care plan",
        "description": "The most specific care plan we have: species, else genus, else family. `level` says which one you got and `levelNote` explains it; `null` means no plan. Give `name` or `id`, and optionally `family` as a fallback when we do not know the name. Months are for the northern hemisphere: shift by 6 months in the south.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Name"
          },
          {
            "$ref": "#/components/parameters/Id"
          },
          {
            "$ref": "#/components/parameters/Family"
          },
          {
            "$ref": "#/components/parameters/Lang"
          }
        ],
        "responses": {
          "200": {
            "description": "The care plan.",
            "headers": {
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Care"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                },
                "example": {
                  "data": {
                    "plant": {
                      "id": "monstera-deliciosa",
                      "name": "Monstera deliciosa",
                      "rank": "species",
                      "family": "Araceae",
                      "genus": "Monstera",
                      "status": "accepted",
                      "query": "Monstera deliciosa"
                    },
                    "level": "species",
                    "levelNote": {
                      "en": "Care plan for this plant."
                    },
                    "plan": {
                      "id": "monstera",
                      "level": "species",
                      "scientific": "Monstera deliciosa",
                      "genus": "Monstera",
                      "name": {
                        "en": "Monstera"
                      },
                      "status": "grown",
                      "basis": "sources",
                      "setting": "indoor",
                      "light": {
                        "level": "bright-indirect",
                        "tolerates": [
                          "medium"
                        ],
                        "text": {
                          "en": "Bright light near a window, without harsh midday sun. Some direct winter sun is fine. In low light it gets leggy and new leaves have no holes."
                        }
                      },
                      "water": {
                        "check": {
                          "en": "Water when the top 2 to 5 cm of soil are dry."
                        },
                        "intervalDays": {
                          "spring": [
                            7,
                            10
                          ],
                          "summer": [
                            5,
                            9
                          ],
                          "autumn": [
                            9,
                            14
                          ],
                          "winter": [
                            14,
                            21
                          ]
                        },
                        "text": {
                          "en": "Water thoroughly until it runs out of the drainage hole, then empty the saucer. Water less in winter. Droplets on the leaf edges mean the soil is too wet."
                        }
                      },
                      "soil": {
                        "en": "A free-draining mix rich in organic matter, lightened with bark or perlite, in a pot with a drainage hole. Give it a moss pole or stake to climb."
                      },
                      "humidity": {
                        "level": "medium",
                        "text": {
                          "en": "Average to high humidity, ideally above 50%. Brown leaf edges point to dry air."
                        }
                      },
                      "temperature": {
                        "minC": 10,
                        "idealC": [
                          16,
                          29
                        ],
                        "text": {
                          "en": "Normal room temperature. It stops growing below about 10 °C and dislikes cold drafts."
                        }
                      },
                      "feeding": {
                        "months": [
                          3,
                          4,
                          5,
                          6,
                          7,
                          8,
                          9
                        ],
                        "everyWeeks": [
                          2,
                          4
                        ],
                        "text": {
                          "en": "A balanced houseplant fertiliser every 2 to 4 weeks from spring to early autumn, at or below the label dose. It is easily burned by too much fertiliser."
                        }
                      },
                      "repotting": {
                        "everyYears": [
                          1,
                          2
                        ],
                        "text": {
                          "en": "When roots fill the bottom and sides of the pot. Go up one size only, in spring. Wear gloves: the sap can irritate skin."
                        }
                      },
                      "problems": [
                        {
                          "symptom": {
                            "en": "Yellow lower leaves, soil that stays wet"
                          },
                          "cause": {
                            "en": "Too much water"
                          },
                          "fix": {
                            "en": "Let the soil dry more between waterings and empty the saucer."
                          }
                        },
                        {
                          "symptom": {
                            "en": "Long, thin stems, small or pale new leaves"
                          },
                          "cause": {
                            "en": "Too little light"
                          },
                          "fix": {
                            "en": "Move it closer to a window or add a grow light."
                          }
                        },
                        {
                          "symptom": {
                            "en": "Brown, crispy leaf tips or edges"
                          },
                          "cause": {
                            "en": "Dry air, often from heating, or uneven watering"
                          },
                          "fix": {
                            "en": "Keep it away from radiators, group plants together and water evenly."
                          }
                        },
                        {
                          "symptom": {
                            "en": "Wilting although the soil is wet, soft brown roots"
                          },
                          "cause": {
                            "en": "Root rot from soil that stays wet"
                          },
                          "fix": {
                            "en": "Take the plant out, cut off soft roots and repot in fresh, dry mix."
                          }
                        },
                        {
                          "symptom": {
                            "en": "New leaves without holes or splits"
                          },
                          "cause": {
                            "en": "Too little light, or a young plant"
                          },
                          "fix": {
                            "en": "Give it more light and something to climb."
                          }
                        },
                        {
                          "symptom": {
                            "en": "Fine webbing, tiny pale speckles on the leaves"
                          },
                          "cause": {
                            "en": "Spider mites, worse in dry air"
                          },
                          "fix": {
                            "en": "Isolate the plant, rinse or wipe the leaves, and raise the humidity."
                          }
                        },
                        {
                          "symptom": {
                            "en": "Small brown bumps on stems and leaves, sticky leaves"
                          },
                          "cause": {
                            "en": "Scale insects"
                          },
                          "fix": {
                            "en": "Isolate the plant and scrape or wipe them off; repeat every few days."
                          }
                        }
                      ],
                      "sources": [
                        {
                          "name": "Penn State Extension",
                          "url": "https://extension.psu.edu/monstera-as-a-houseplant",
                          "checked": "2026-11-12"
                        },
                        {
                          "name": "Wisconsin Horticulture Extension",
                          "url": "https://hort.extension.wisc.edu/articles/monstera-deliciosa/",
                          "checked": "2026-11-12"
                        },
                        {
                          "name": "UConn Home & Garden Education Center",
                          "url": "https://homegarden.cahnr.uconn.edu/factsheets/monstera-deliciosa/",
                          "checked": "2026-11-12"
                        },
                        {
                          "name": "RHS",
                          "url": "https://www.rhs.org.uk/plants/11192/monstera-deliciosa-f/details",
                          "checked": "2026-11-12"
                        }
                      ],
                      "family": "Araceae"
                    },
                    "disclaimer": {
                      "en": "Based on horticultural sources. Watering intervals are starting points: check the soil before you water."
                    }
                  },
                  "meta": {
                    "plan": "pro",
                    "lang": "en",
                    "dataVersion": "2026.12.5",
                    "credits": [
                      {
                        "name": "Catalogue of Life (COL), following Kew WCVP / POWO",
                        "url": "https://www.catalogueoflife.org/",
                        "license": "CC BY 4.0",
                        "for": "scientific names and synonyms"
                      }
                    ],
                    "creditsUrl": "/credits"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/PlanLimit"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/plants/search": {
      "get": {
        "operationId": "searchPlants",
        "tags": [
          "Names"
        ],
        "summary": "Search plants",
        "description": "Find plants by scientific, old or common name (English, German, French). Results are sorted by `score`.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "Search text, at least 2 characters.",
            "schema": {
              "type": "string",
              "minLength": 2
            },
            "example": "monstera"
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of results, 1 to 50.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 10
            },
            "example": 3
          },
          {
            "$ref": "#/components/parameters/Lang"
          }
        ],
        "responses": {
          "200": {
            "description": "Matching plants.",
            "headers": {
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SearchResults"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                },
                "example": {
                  "data": {
                    "query": "monstera",
                    "results": [
                      {
                        "id": "monstera",
                        "scientific": "Monstera",
                        "rank": "genus",
                        "family": "Araceae",
                        "matched": {
                          "term": "Monstera",
                          "kind": "scientific"
                        },
                        "score": 103,
                        "commonName": {
                          "en": "Monsteras"
                        }
                      },
                      {
                        "id": "monstera-deliciosa",
                        "scientific": "Monstera deliciosa",
                        "rank": "species",
                        "family": "Araceae",
                        "matched": {
                          "term": "Monstera",
                          "kind": "common",
                          "lang": "en"
                        },
                        "score": 102,
                        "commonName": {
                          "en": "Monstera"
                        }
                      },
                      {
                        "id": "monstera-dubia",
                        "scientific": "Monstera dubia",
                        "rank": "species",
                        "family": "Araceae",
                        "matched": {
                          "term": "Monstera dubia",
                          "kind": "scientific"
                        },
                        "score": 72.4,
                        "commonName": {
                          "en": "Shingle plant"
                        }
                      }
                    ]
                  },
                  "meta": {
                    "plan": "pro",
                    "lang": "en",
                    "dataVersion": "2026.12.5",
                    "credits": [
                      {
                        "name": "Catalogue of Life (COL), following Kew WCVP / POWO",
                        "url": "https://www.catalogueoflife.org/",
                        "license": "CC BY 4.0",
                        "for": "scientific names and synonyms"
                      }
                    ],
                    "creditsUrl": "/credits"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/PlanLimit"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/names/resolve": {
      "get": {
        "operationId": "resolveName",
        "tags": [
          "Names"
        ],
        "summary": "Resolve a name",
        "description": "Turns any scientific, old, trade or common name (English, German, French) into the accepted plant. `status` tells you how it matched: `accepted`, `synonym`, `trade-name`, `common-name` or `genus-only` (an unknown species of a known genus). A common name that fits several plants returns the best match and lists the others in `alternatives` (id and name). A single word that is a genus name but usually means another plant (`pothos`, `croton`, `amaryllis`) returns the plant people mean, with the genus first in `alternatives`; a name with a species epithet (`Pothos chinensis`) stays scientific. The same matching applies to `name` on every endpoint.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Name"
          },
          {
            "$ref": "#/components/parameters/Lang"
          }
        ],
        "responses": {
          "200": {
            "description": "The accepted plant.",
            "headers": {
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Match"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                },
                "examples": {
                  "oldName": {
                    "summary": "An old name: Sansevieria trifasciata is now Dracaena trifasciata",
                    "value": {
                      "data": {
                        "id": "dracaena-trifasciata",
                        "name": "Dracaena trifasciata",
                        "rank": "species",
                        "family": "Asparagaceae",
                        "genus": "Dracaena",
                        "status": "synonym",
                        "query": "Sansevieria trifasciata"
                      },
                      "meta": {
                        "plan": "pro",
                        "lang": "en",
                        "dataVersion": "2026.12.5",
                        "credits": [
                          {
                            "name": "Catalogue of Life (COL), following Kew WCVP / POWO",
                            "url": "https://www.catalogueoflife.org/",
                            "license": "CC BY 4.0",
                            "for": "scientific names and synonyms"
                          }
                        ],
                        "creditsUrl": "/credits"
                      }
                    }
                  },
                  "commonName": {
                    "summary": "A common name that fits several plants: the best match, the others in alternatives",
                    "value": {
                      "data": {
                        "id": "spathiphyllum",
                        "name": "Spathiphyllum",
                        "rank": "genus",
                        "family": "Araceae",
                        "genus": "Spathiphyllum",
                        "status": "common-name",
                        "query": "peace lily",
                        "alternatives": [
                          {
                            "id": "spathiphyllum-wallisii",
                            "name": "Spathiphyllum wallisii"
                          }
                        ]
                      },
                      "meta": {
                        "plan": "pro",
                        "lang": "en",
                        "dataVersion": "2026.12.5",
                        "credits": [
                          {
                            "name": "Catalogue of Life (COL), following Kew WCVP / POWO",
                            "url": "https://www.catalogueoflife.org/",
                            "license": "CC BY 4.0",
                            "for": "scientific names and synonyms"
                          }
                        ],
                        "creditsUrl": "/credits"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/PlanLimit"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/plants/{id}": {
      "get": {
        "operationId": "getPlant",
        "tags": [
          "Names"
        ],
        "summary": "Get a plant",
        "description": "One plant with everything: names, taxonomy, toxicity and care, in one call.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Plant id: the accepted scientific name as a slug, e.g. `monstera-deliciosa`, or `monstera` for the genus.",
            "schema": {
              "type": "string"
            },
            "example": "monstera-deliciosa"
          },
          {
            "$ref": "#/components/parameters/Lang"
          }
        ],
        "responses": {
          "200": {
            "description": "The plant.",
            "headers": {
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Plant"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                },
                "example": {
                  "data": {
                    "id": "monstera-deliciosa",
                    "scientific": "Monstera deliciosa",
                    "rank": "species",
                    "family": "Araceae",
                    "genus": "Monstera",
                    "commonName": {
                      "en": "Monstera"
                    },
                    "toxicity": {
                      "plant": {
                        "id": "monstera-deliciosa",
                        "name": "Monstera deliciosa",
                        "rank": "species",
                        "family": "Araceae",
                        "genus": "Monstera",
                        "status": "accepted",
                        "query": "Monstera deliciosa"
                      },
                      "cat": {
                        "level": "not-rated",
                        "scope": null,
                        "summary": {
                          "en": "On none of the 7 poison lists checked. Not enough data for a rating: treat with caution."
                        },
                        "basis": [],
                        "sources": [],
                        "checked": "2026-11-16",
                        "listsChecked": {
                          "count": 7,
                          "names": [
                            "Agroscope Toxic Plants – Phytotoxin (TPPT) Database",
                            "Canadian Poisonous Plants Information System (CBIF)",
                            "Cornell University, Department of Animal Science",
                            "International Cat Care",
                            "MSD Veterinary Manual",
                            "Pet Poison Helpline",
                            "RSPCA"
                          ]
                        },
                        "listsNaming": {
                          "count": 0,
                          "names": []
                        }
                      },
                      "dog": {
                        "level": "toxic",
                        "scope": "species",
                        "summary": {
                          "en": "Listed as poisonous."
                        },
                        "contact": true,
                        "basis": [
                          "graded"
                        ],
                        "sources": [
                          {
                            "name": "Pet Poison Helpline",
                            "url": "https://www.petpoisonhelpline.com/poison/mexican-breadfruit/"
                          },
                          {
                            "name": "Dogs Trust",
                            "url": "https://web.archive.org/web/20130821192333/http://www.dogstrust.org.uk/_resources/resources/factsheets09/factsheetpoisonoussubstances09.pdf"
                          }
                        ],
                        "checked": "2026-12-01",
                        "listsChecked": {
                          "count": 7,
                          "names": [
                            "Agroscope Toxic Plants – Phytotoxin (TPPT) Database",
                            "Canadian Poisonous Plants Information System (CBIF)",
                            "Cornell University, Department of Animal Science",
                            "Dogs Trust",
                            "MSD Veterinary Manual",
                            "Pet Poison Helpline",
                            "RSPCA"
                          ]
                        },
                        "listsNaming": {
                          "count": 2,
                          "names": [
                            "Dogs Trust",
                            "Pet Poison Helpline"
                          ]
                        }
                      },
                      "human": {
                        "level": "toxic",
                        "scope": "species",
                        "summary": {
                          "en": "Listed as poisonous."
                        },
                        "contact": true,
                        "notes": [
                          {
                            "en": "The sources disagree; we show the strictest level any of them gives. Some sources cover the genus as a whole, not this species on its own."
                          }
                        ],
                        "basis": [
                          "curated",
                          "lists"
                        ],
                        "sources": [
                          {
                            "name": "NC State Extension",
                            "url": "https://plants.ces.ncsu.edu/plants/monstera-deliciosa/"
                          },
                          {
                            "name": "Tox Info Suisse",
                            "url": "https://www.toxinfo.ch/customer/files/923/Giftige-Zimmerpflanzen_20215.pdf"
                          },
                          {
                            "name": "California Poison Control System",
                            "url": "https://web.archive.org/web/20230706193624/https://calpoison.org/topics/plant"
                          },
                          {
                            "name": "Horticultural Trades Association",
                            "url": "https://hta.org.uk/resources/get?mediaId=8478"
                          },
                          {
                            "name": "Centre antipoison Hauts-de-France",
                            "url": "https://www.cap.chu-lille.fr/wp-content/uploads/sites/18/2021/05/CAP-plantes.pdf"
                          },
                          {
                            "name": "California Poison Control System",
                            "url": "https://web.archive.org/web/20230706193624/https://calpoison.org/topics/plant"
                          },
                          {
                            "name": "NC State Extension Gardener Plant Toolbox",
                            "url": "https://plants.ces.ncsu.edu/plants/monstera-deliciosa/"
                          },
                          {
                            "name": "Canadian Poisonous Plants Information System (CBIF)",
                            "url": "https://web.archive.org/web/20140813231537/http://www.cbif.gc.ca/eng/species-bank/canadian-poisonous-plants-information-system/all-plants-scientific-name/monstera-deliciosa/?id=1370403266940"
                          }
                        ],
                        "checked": "2026-11-12",
                        "listsChecked": {
                          "count": 5,
                          "names": [
                            "Agroscope Toxic Plants – Phytotoxin (TPPT) Database",
                            "California Poison Control System",
                            "Canadian Poisonous Plants Information System (CBIF)",
                            "Cornell University, Department of Animal Science",
                            "NC State Extension Gardener Plant Toolbox"
                          ]
                        },
                        "listsNaming": {
                          "count": 3,
                          "names": [
                            "California Poison Control System",
                            "Canadian Poisonous Plants Information System (CBIF)",
                            "NC State Extension Gardener Plant Toolbox"
                          ]
                        },
                        "kids": {
                          "level": "toxic",
                          "effect": {
                            "en": "Chewing it makes the mouth, lips and tongue burn and swell; drooling and trouble swallowing. Rarely the throat swells."
                          }
                        },
                        "adults": {
                          "level": "toxic",
                          "effect": {
                            "en": "Chewing it makes the mouth, lips and tongue burn and swell; drooling and trouble swallowing. Rarely the throat swells."
                          }
                        },
                        "contactText": {
                          "en": "The sap can irritate the skin and is painful in the eyes: wear gloves, wash it off, rinse eyes with water."
                        }
                      },
                      "disclaimer": {
                        "en": "For information only, not a substitute for a vet or poison center."
                      }
                    },
                    "care": {
                      "plant": {
                        "id": "monstera-deliciosa",
                        "name": "Monstera deliciosa",
                        "rank": "species",
                        "family": "Araceae",
                        "genus": "Monstera",
                        "status": "accepted",
                        "query": "Monstera deliciosa"
                      },
                      "level": "species",
                      "levelNote": {
                        "en": "Care plan for this plant."
                      },
                      "plan": {
                        "id": "monstera",
                        "level": "species",
                        "scientific": "Monstera deliciosa",
                        "genus": "Monstera",
                        "name": {
                          "en": "Monstera"
                        },
                        "status": "grown",
                        "basis": "sources",
                        "setting": "indoor",
                        "light": {
                          "level": "bright-indirect",
                          "tolerates": [
                            "medium"
                          ],
                          "text": {
                            "en": "Bright light near a window, without harsh midday sun. Some direct winter sun is fine. In low light it gets leggy and new leaves have no holes."
                          }
                        },
                        "water": {
                          "check": {
                            "en": "Water when the top 2 to 5 cm of soil are dry."
                          },
                          "intervalDays": {
                            "spring": [
                              7,
                              10
                            ],
                            "summer": [
                              5,
                              9
                            ],
                            "autumn": [
                              9,
                              14
                            ],
                            "winter": [
                              14,
                              21
                            ]
                          },
                          "text": {
                            "en": "Water thoroughly until it runs out of the drainage hole, then empty the saucer. Water less in winter. Droplets on the leaf edges mean the soil is too wet."
                          }
                        },
                        "soil": {
                          "en": "A free-draining mix rich in organic matter, lightened with bark or perlite, in a pot with a drainage hole. Give it a moss pole or stake to climb."
                        },
                        "humidity": {
                          "level": "medium",
                          "text": {
                            "en": "Average to high humidity, ideally above 50%. Brown leaf edges point to dry air."
                          }
                        },
                        "temperature": {
                          "minC": 10,
                          "idealC": [
                            16,
                            29
                          ],
                          "text": {
                            "en": "Normal room temperature. It stops growing below about 10 °C and dislikes cold drafts."
                          }
                        },
                        "feeding": {
                          "months": [
                            3,
                            4,
                            5,
                            6,
                            7,
                            8,
                            9
                          ],
                          "everyWeeks": [
                            2,
                            4
                          ],
                          "text": {
                            "en": "A balanced houseplant fertiliser every 2 to 4 weeks from spring to early autumn, at or below the label dose. It is easily burned by too much fertiliser."
                          }
                        },
                        "repotting": {
                          "everyYears": [
                            1,
                            2
                          ],
                          "text": {
                            "en": "When roots fill the bottom and sides of the pot. Go up one size only, in spring. Wear gloves: the sap can irritate skin."
                          }
                        },
                        "problems": [
                          {
                            "symptom": {
                              "en": "Yellow lower leaves, soil that stays wet"
                            },
                            "cause": {
                              "en": "Too much water"
                            },
                            "fix": {
                              "en": "Let the soil dry more between waterings and empty the saucer."
                            }
                          },
                          {
                            "symptom": {
                              "en": "Long, thin stems, small or pale new leaves"
                            },
                            "cause": {
                              "en": "Too little light"
                            },
                            "fix": {
                              "en": "Move it closer to a window or add a grow light."
                            }
                          },
                          {
                            "symptom": {
                              "en": "Brown, crispy leaf tips or edges"
                            },
                            "cause": {
                              "en": "Dry air, often from heating, or uneven watering"
                            },
                            "fix": {
                              "en": "Keep it away from radiators, group plants together and water evenly."
                            }
                          },
                          {
                            "symptom": {
                              "en": "Wilting although the soil is wet, soft brown roots"
                            },
                            "cause": {
                              "en": "Root rot from soil that stays wet"
                            },
                            "fix": {
                              "en": "Take the plant out, cut off soft roots and repot in fresh, dry mix."
                            }
                          },
                          {
                            "symptom": {
                              "en": "New leaves without holes or splits"
                            },
                            "cause": {
                              "en": "Too little light, or a young plant"
                            },
                            "fix": {
                              "en": "Give it more light and something to climb."
                            }
                          },
                          {
                            "symptom": {
                              "en": "Fine webbing, tiny pale speckles on the leaves"
                            },
                            "cause": {
                              "en": "Spider mites, worse in dry air"
                            },
                            "fix": {
                              "en": "Isolate the plant, rinse or wipe the leaves, and raise the humidity."
                            }
                          },
                          {
                            "symptom": {
                              "en": "Small brown bumps on stems and leaves, sticky leaves"
                            },
                            "cause": {
                              "en": "Scale insects"
                            },
                            "fix": {
                              "en": "Isolate the plant and scrape or wipe them off; repeat every few days."
                            }
                          }
                        ],
                        "sources": [
                          {
                            "name": "Penn State Extension",
                            "url": "https://extension.psu.edu/monstera-as-a-houseplant",
                            "checked": "2026-11-12"
                          },
                          {
                            "name": "Wisconsin Horticulture Extension",
                            "url": "https://hort.extension.wisc.edu/articles/monstera-deliciosa/",
                            "checked": "2026-11-12"
                          },
                          {
                            "name": "UConn Home & Garden Education Center",
                            "url": "https://homegarden.cahnr.uconn.edu/factsheets/monstera-deliciosa/",
                            "checked": "2026-11-12"
                          },
                          {
                            "name": "RHS",
                            "url": "https://www.rhs.org.uk/plants/11192/monstera-deliciosa-f/details",
                            "checked": "2026-11-12"
                          }
                        ],
                        "family": "Araceae"
                      },
                      "disclaimer": {
                        "en": "Based on horticultural sources. Watering intervals are starting points: check the soil before you water."
                      }
                    }
                  },
                  "meta": {
                    "plan": "pro",
                    "lang": "en",
                    "dataVersion": "2026.12.5",
                    "credits": [
                      {
                        "name": "Catalogue of Life (COL), following Kew WCVP / POWO",
                        "url": "https://www.catalogueoflife.org/",
                        "license": "CC BY 4.0",
                        "for": "scientific names and synonyms"
                      }
                    ],
                    "creditsUrl": "/credits"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/PlanLimit"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/batch": {
      "post": {
        "operationId": "batch",
        "tags": [
          "Batch"
        ],
        "summary": "Run a batch",
        "description": "Several operations in one call: up to 25 items on Starter, 100 on Pro and Business. Free has no batch. Each item uses one credit; the call uses one rate-limit slot. Items fail on their own: check `ok` on each result.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Lang"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchRequest"
              },
              "example": {
                "items": [
                  {
                    "op": "toxicity",
                    "name": "Monstera deliciosa"
                  },
                  {
                    "op": "care",
                    "name": "Ficus lyrata"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "One result per item, in order.",
            "headers": {
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/X-Quota-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/BatchResults"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                },
                "example": {
                  "data": {
                    "results": [
                      {
                        "index": 0,
                        "ok": true,
                        "data": {
                          "plant": {
                            "id": "monstera-deliciosa",
                            "name": "Monstera deliciosa",
                            "rank": "species",
                            "family": "Araceae",
                            "genus": "Monstera",
                            "status": "accepted",
                            "query": "Monstera deliciosa"
                          },
                          "cat": {
                            "level": "not-rated",
                            "scope": null,
                            "summary": {
                              "en": "On none of the 7 poison lists checked. Not enough data for a rating: treat with caution."
                            },
                            "basis": [],
                            "sources": [],
                            "checked": "2026-11-16",
                            "listsChecked": {
                              "count": 7,
                              "names": [
                                "Agroscope Toxic Plants – Phytotoxin (TPPT) Database",
                                "Canadian Poisonous Plants Information System (CBIF)",
                                "Cornell University, Department of Animal Science",
                                "International Cat Care",
                                "MSD Veterinary Manual",
                                "Pet Poison Helpline",
                                "RSPCA"
                              ]
                            },
                            "listsNaming": {
                              "count": 0,
                              "names": []
                            }
                          },
                          "dog": {
                            "level": "toxic",
                            "scope": "species",
                            "summary": {
                              "en": "Listed as poisonous."
                            },
                            "contact": true,
                            "basis": [
                              "graded"
                            ],
                            "sources": [
                              {
                                "name": "Pet Poison Helpline",
                                "url": "https://www.petpoisonhelpline.com/poison/mexican-breadfruit/"
                              },
                              {
                                "name": "Dogs Trust",
                                "url": "https://web.archive.org/web/20130821192333/http://www.dogstrust.org.uk/_resources/resources/factsheets09/factsheetpoisonoussubstances09.pdf"
                              }
                            ],
                            "checked": "2026-12-01",
                            "listsChecked": {
                              "count": 7,
                              "names": [
                                "Agroscope Toxic Plants – Phytotoxin (TPPT) Database",
                                "Canadian Poisonous Plants Information System (CBIF)",
                                "Cornell University, Department of Animal Science",
                                "Dogs Trust",
                                "MSD Veterinary Manual",
                                "Pet Poison Helpline",
                                "RSPCA"
                              ]
                            },
                            "listsNaming": {
                              "count": 2,
                              "names": [
                                "Dogs Trust",
                                "Pet Poison Helpline"
                              ]
                            }
                          },
                          "human": {
                            "level": "toxic",
                            "scope": "species",
                            "summary": {
                              "en": "Listed as poisonous."
                            },
                            "contact": true,
                            "notes": [
                              {
                                "en": "The sources disagree; we show the strictest level any of them gives. Some sources cover the genus as a whole, not this species on its own."
                              }
                            ],
                            "basis": [
                              "curated",
                              "lists"
                            ],
                            "sources": [
                              {
                                "name": "NC State Extension",
                                "url": "https://plants.ces.ncsu.edu/plants/monstera-deliciosa/"
                              },
                              {
                                "name": "Tox Info Suisse",
                                "url": "https://www.toxinfo.ch/customer/files/923/Giftige-Zimmerpflanzen_20215.pdf"
                              },
                              {
                                "name": "California Poison Control System",
                                "url": "https://web.archive.org/web/20230706193624/https://calpoison.org/topics/plant"
                              },
                              {
                                "name": "Horticultural Trades Association",
                                "url": "https://hta.org.uk/resources/get?mediaId=8478"
                              },
                              {
                                "name": "Centre antipoison Hauts-de-France",
                                "url": "https://www.cap.chu-lille.fr/wp-content/uploads/sites/18/2021/05/CAP-plantes.pdf"
                              },
                              {
                                "name": "California Poison Control System",
                                "url": "https://web.archive.org/web/20230706193624/https://calpoison.org/topics/plant"
                              },
                              {
                                "name": "NC State Extension Gardener Plant Toolbox",
                                "url": "https://plants.ces.ncsu.edu/plants/monstera-deliciosa/"
                              },
                              {
                                "name": "Canadian Poisonous Plants Information System (CBIF)",
                                "url": "https://web.archive.org/web/20140813231537/http://www.cbif.gc.ca/eng/species-bank/canadian-poisonous-plants-information-system/all-plants-scientific-name/monstera-deliciosa/?id=1370403266940"
                              }
                            ],
                            "checked": "2026-11-12",
                            "listsChecked": {
                              "count": 5,
                              "names": [
                                "Agroscope Toxic Plants – Phytotoxin (TPPT) Database",
                                "California Poison Control System",
                                "Canadian Poisonous Plants Information System (CBIF)",
                                "Cornell University, Department of Animal Science",
                                "NC State Extension Gardener Plant Toolbox"
                              ]
                            },
                            "listsNaming": {
                              "count": 3,
                              "names": [
                                "California Poison Control System",
                                "Canadian Poisonous Plants Information System (CBIF)",
                                "NC State Extension Gardener Plant Toolbox"
                              ]
                            },
                            "kids": {
                              "level": "toxic",
                              "effect": {
                                "en": "Chewing it makes the mouth, lips and tongue burn and swell; drooling and trouble swallowing. Rarely the throat swells."
                              }
                            },
                            "adults": {
                              "level": "toxic",
                              "effect": {
                                "en": "Chewing it makes the mouth, lips and tongue burn and swell; drooling and trouble swallowing. Rarely the throat swells."
                              }
                            },
                            "contactText": {
                              "en": "The sap can irritate the skin and is painful in the eyes: wear gloves, wash it off, rinse eyes with water."
                            }
                          },
                          "disclaimer": {
                            "en": "For information only, not a substitute for a vet or poison center."
                          }
                        }
                      },
                      {
                        "index": 1,
                        "ok": true,
                        "data": {
                          "plant": {
                            "id": "ficus-lyrata",
                            "name": "Ficus lyrata",
                            "rank": "species",
                            "family": "Moraceae",
                            "genus": "Ficus",
                            "status": "accepted",
                            "query": "Ficus lyrata"
                          },
                          "level": "species",
                          "levelNote": {
                            "en": "Care plan for this plant."
                          },
                          "plan": {
                            "id": "fiddle-leaf-fig",
                            "level": "species",
                            "scientific": "Ficus lyrata",
                            "genus": "Ficus",
                            "name": {
                              "en": "Fiddle-leaf fig"
                            },
                            "status": "grown",
                            "basis": "sources",
                            "setting": "indoor",
                            "light": {
                              "level": "bright-indirect",
                              "tolerates": [
                                "bright-direct"
                              ],
                              "text": {
                                "en": "Bright, indirect light, with a few hours of morning or evening sun. Protect it from hot afternoon sun. Low light gives small, pale leaves and leaf drop."
                              }
                            },
                            "water": {
                              "check": {
                                "en": "Water when the top of the soil has dried slightly."
                              },
                              "intervalDays": {
                                "spring": [
                                  7,
                                  10
                                ],
                                "summer": [
                                  6,
                                  9
                                ],
                                "autumn": [
                                  10,
                                  14
                                ],
                                "winter": [
                                  14,
                                  21
                                ]
                              },
                              "text": {
                                "en": "Water thoroughly and never leave the pot standing in water. In winter keep the soil only just moist. It is sensitive to overwatering."
                              }
                            },
                            "soil": {
                              "en": "A free-draining, loam-based or multipurpose compost with some fine bark, in a pot with a drainage hole."
                            },
                            "humidity": {
                              "level": "medium",
                              "text": {
                                "en": "Medium to high humidity. Keep it away from heaters; a tray of damp gravel helps."
                              }
                            },
                            "temperature": {
                              "minC": 13,
                              "idealC": [
                                16,
                                27
                              ],
                              "text": {
                                "en": "Even, draught-free warmth, above 13 °C. Temperature swings near vents give brown spots."
                              }
                            },
                            "feeding": {
                              "months": [
                                3,
                                4,
                                5,
                                6,
                                7,
                                8,
                                9
                              ],
                              "everyWeeks": null,
                              "text": {
                                "en": "A light feed in spring and summer only, at or below the label dose. Too much burns the leaf edges."
                              }
                            },
                            "repotting": {
                              "everyYears": [
                                2,
                                3
                              ],
                              "text": {
                                "en": "Every couple of years in spring, into a slightly larger pot. In other years replace the top 2 to 3 cm of soil. The milky sap irritates skin: wear gloves."
                              }
                            },
                            "problems": [
                              {
                                "symptom": {
                                  "en": "Sudden leaf drop"
                                },
                                "cause": {
                                  "en": "A move, cold drafts, low light, or too much or too little water"
                                },
                                "fix": {
                                  "en": "Keep it in one bright spot away from drafts, and water only when the top of the soil is dry."
                                }
                              },
                              {
                                "symptom": {
                                  "en": "Yellow lower leaves, soil that stays wet"
                                },
                                "cause": {
                                  "en": "Too much water"
                                },
                                "fix": {
                                  "en": "Let the soil dry more between waterings and empty the saucer."
                                }
                              },
                              {
                                "symptom": {
                                  "en": "Long, thin stems, small or pale new leaves"
                                },
                                "cause": {
                                  "en": "Too little light"
                                },
                                "fix": {
                                  "en": "Move it closer to a window or add a grow light."
                                }
                              },
                              {
                                "symptom": {
                                  "en": "Brown, crispy leaf tips or edges"
                                },
                                "cause": {
                                  "en": "Dry air, often from heating, or uneven watering"
                                },
                                "fix": {
                                  "en": "Keep it away from radiators, group plants together and water evenly."
                                }
                              },
                              {
                                "symptom": {
                                  "en": "Pale, bleached or brown dry patches on the leaves"
                                },
                                "cause": {
                                  "en": "Too much direct sun"
                                },
                                "fix": {
                                  "en": "Move it out of the midday sun or behind a sheer curtain."
                                }
                              },
                              {
                                "symptom": {
                                  "en": "Brown leaf tips and a white crust on the soil"
                                },
                                "cause": {
                                  "en": "Too much fertiliser (salt build-up)"
                                },
                                "fix": {
                                  "en": "Flush the pot with plenty of water and feed less."
                                }
                              },
                              {
                                "symptom": {
                                  "en": "Fine webbing, tiny pale speckles on the leaves"
                                },
                                "cause": {
                                  "en": "Spider mites, worse in dry air"
                                },
                                "fix": {
                                  "en": "Isolate the plant, rinse or wipe the leaves, and raise the humidity."
                                }
                              },
                              {
                                "symptom": {
                                  "en": "Small brown bumps on stems and leaves, sticky leaves"
                                },
                                "cause": {
                                  "en": "Scale insects"
                                },
                                "fix": {
                                  "en": "Isolate the plant and scrape or wipe them off; repeat every few days."
                                }
                              }
                            ],
                            "sources": [
                              {
                                "name": "NC State Extension",
                                "url": "https://plants.ces.ncsu.edu/plants/ficus-lyrata/",
                                "checked": "2026-11-12"
                              },
                              {
                                "name": "RHS",
                                "url": "https://www.rhs.org.uk/advice/profile?PID=106",
                                "checked": "2026-11-12"
                              },
                              {
                                "name": "RHS",
                                "url": "https://www.rhs.org.uk/plants/7207/ficus-lyrata/details",
                                "checked": "2026-11-12"
                              }
                            ],
                            "family": "Moraceae"
                          },
                          "disclaimer": {
                            "en": "Based on horticultural sources. Watering intervals are starting points: check the soil before you water."
                          }
                        }
                      }
                    ]
                  },
                  "meta": {
                    "plan": "pro",
                    "lang": "en",
                    "dataVersion": "2026.12.5",
                    "credits": [
                      {
                        "name": "Catalogue of Life (COL), following Kew WCVP / POWO",
                        "url": "https://www.catalogueoflife.org/",
                        "license": "CC BY 4.0",
                        "for": "scientific names and synonyms"
                      }
                    ],
                    "creditsUrl": "/credits"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/PlanLimit"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/health": {
      "get": {
        "operationId": "getHealth",
        "tags": [
          "Service"
        ],
        "summary": "Check health",
        "description": "Liveness and the data version. Needs no key and uses no credits.",
        "security": [],
        "responses": {
          "200": {
            "description": "The service is up.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "dataVersion": {
                      "type": "string",
                      "description": "Data release served."
                    },
                    "plants": {
                      "type": "integer",
                      "description": "Accepted plants in the release."
                    },
                    "carePlans": {
                      "type": "integer",
                      "description": "Care plans in the release."
                    },
                    "pendingSources": {
                      "type": "string",
                      "enum": [
                        "included",
                        "excluded"
                      ],
                      "description": "Whether ratings that need a source with pending permission are served (production: `excluded`)."
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "dataVersion": "2026.12.5",
                  "plants": 13370,
                  "carePlans": 4329,
                  "pendingSources": "included"
                }
              }
            }
          }
        }
      }
    },
    "/credits": {
      "get": {
        "operationId": "getCredits",
        "tags": [
          "Service"
        ],
        "summary": "List data credits",
        "description": "The open datasets (CC BY) behind the plant names, with publisher, licence, DOI and citation. Needs no key and uses no credits. The same list as a page: `https://api.plant-toxicity-api.com/credits`.",
        "security": [],
        "responses": {
          "200": {
            "description": "Credits.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Credits"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "dataVersion": {
                          "type": "string",
                          "description": "Data release that answered."
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": {
                    "checked": "2026-12-01",
                    "entries": [
                      {
                        "title": "Catalogue of Life",
                        "publisher": "Catalogue of Life",
                        "license": "CC BY 4.0",
                        "licenseUrl": "https://creativecommons.org/licenses/by/4.0/",
                        "doi": "https://doi.org/10.48580/dgyy9",
                        "url": "https://www.gbif.org/dataset/7ddf754f-d193-4cc9-b351-99906754a03b",
                        "citation": "Bánki, O., Roskov, Y., Döring, M., Ower, G., Hernández Robles, D. R., Plata Corredor, C. A., Stjernegaard Jeppesen, T., Örn, A., Pape, T., Hobern, D., Garnett, S., Little, H., DeWalt, R. E., Miller, J., Orrell, T., Aalbu, R., Abbott, J., Abreu, C., Acero P, A., et al. (2026). Catalogue of Life (2026-08-26 XR). Catalogue of Life Foundation, Amsterdam, Netherlands. https://doi.org/10.48580/dgyy9",
                        "usedFor": [
                          "Scientific names, synonyms and families (all plants)",
                          "German and French common names (1536)"
                        ]
                      },
                      {
                        "title": "TAXREF",
                        "publisher": "UAR PatriNat (OFB-MNHN-CNRS-IRD), Paris",
                        "license": "CC BY 4.0",
                        "licenseUrl": "https://creativecommons.org/licenses/by/4.0/",
                        "doi": "https://doi.org/10.15468/vqueam",
                        "url": "https://www.gbif.org/dataset/0e61f8fe-7d25-4f81-ada7-d970bbb2c6d6",
                        "citation": "Gargominy O (2025). TAXREF. Version 4.17. UAR PatriNat (OFB-MNHN-CNRS-IRD), Paris. Checklist dataset https://doi.org/10.15468/vqueam accessed via GBIF.org on 2026-12-01.",
                        "usedFor": [
                          "German and French common names (1036)"
                        ]
                      },
                      {
                        "title": "Taxon list of vascular plants from Bavaria, Germany compiled in the context of the BFL project",
                        "publisher": "Staatliche Naturwissenschaftliche Sammlungen Bayerns",
                        "license": "CC BY 4.0",
                        "licenseUrl": "https://creativecommons.org/licenses/by/4.0/",
                        "doi": "https://doi.org/10.15468/nbilcw",
                        "url": "https://www.gbif.org/dataset/d027759f-84bc-4dfc-a5ea-b17a50793451",
                        "citation": "Diewald W, Ahlmer W. Taxon list of vascular plants from Bavaria, Germany compiled in the context of the BFL project. Staatliche Naturwissenschaftliche Sammlungen Bayerns. Checklist dataset https://doi.org/10.15468/nbilcw accessed via GBIF.org on 2026-12-01.",
                        "usedFor": [
                          "German and French common names (454)"
                        ]
                      },
                      {
                        "title": "DAISIE - Inventory of alien invasive species in Europe",
                        "publisher": "Research Institute for Nature and Forest (INBO)",
                        "license": "CC BY 4.0",
                        "licenseUrl": "https://creativecommons.org/licenses/by/4.0/",
                        "doi": "https://doi.org/10.15468/ybwd3x",
                        "url": "https://www.gbif.org/dataset/39f36f10-559b-427f-8c86-2d28afff68ca",
                        "citation": "Roy D, Alderman D, Anastasiu P, Arianoutsou M, Augustin S, Bacher S, Başnou C, Beisel J, Bertolino S, Bonesi L, Bretagnolle F, Chapuis J L, Chauvel B, Chiron F, Clergeau P, Cooper J, Cunha T, Delipetrou P, Desprez-Loustau M, Détaint M, Devin S, Didžiulis V, Essl F, Galil B S, Genovesi P, Gherardi F, Gollasch S, Hejda M, Hulme P E, Josefsson M, Kark S, Kauhala K, Kenis M, Klotz S, Kobelt M, Kühn I, Lambdon P W, Larsson T, Lopez-Vaamonde C, Lorvelec O, Marchante H, Minchin D, Nentwig W, Occhipinti-Ambrogi A, Olenin S, Olenina I, Ovcharenko I, Panov V E, Pascal M, Pergl J, Perglová I, Pino J, Pyšek P, Rabitsch W, Rasplus J, Rathod B, Roques A, Roy H, Sauvard D, Scalera R, Shiganova T A, Shirley S, Shwartz A, Solarz W, Vilà M, Winter M, Yésou P, Zaiko A, Adriaens T, Desmet P, Reyserhove L (2020). DAISIE - Inventory of alien invasive species in Europe. Version 1.7. Research Institute for Nature and Forest (INBO). Checklist dataset https://doi.org/10.15468/ybwd3x accessed via GBIF.org on 2026-12-01.",
                        "usedFor": [
                          "German and French common names (146)"
                        ]
                      },
                      {
                        "title": "IUCN Red List Vascular Plants (2018, metropolitan France) - IUCN Liste Rouge de la Flore Vasculaire (2018, métropolitaine France)",
                        "publisher": "Hortus botanicus Leiden",
                        "license": "CC BY 4.0",
                        "licenseUrl": "https://creativecommons.org/licenses/by/4.0/",
                        "doi": "https://doi.org/10.15468/2jzsmn",
                        "url": "https://www.gbif.org/dataset/0ffb4808-0952-4b6e-a16f-d02792de30d7",
                        "citation": "of the IUCN (UICN France) F C, Langezaal G, Kamoen L (2026). IUCN Red List Vascular Plants (2018, metropolitan France) - IUCN Liste Rouge de la Flore Vasculaire (2018, métropolitaine France). Version 1.6. Hortus botanicus Leiden. Checklist dataset https://doi.org/10.15468/2jzsmn accessed via GBIF.org on 2026-12-01.",
                        "usedFor": [
                          "German and French common names (77)"
                        ]
                      },
                      {
                        "title": "The IUCN Red List of Threatened Species",
                        "publisher": "International Union for Conservation of Nature",
                        "license": "CC BY 4.0",
                        "licenseUrl": "https://creativecommons.org/licenses/by/4.0/",
                        "doi": "https://doi.org/10.15468/0qnb58",
                        "url": "https://www.gbif.org/dataset/19491596-35ae-4a91-9a98-85cf505f1bd3",
                        "citation": "IUCN (2026). The IUCN Red List of Threatened Species. Version 2026-1. https://www.iucnredlist.org. Downloaded on 2026-07-28. https://doi.org/10.15468/0qnb58 accessed via GBIF.org on 2026-12-01.",
                        "usedFor": [
                          "German and French common names (21)"
                        ]
                      },
                      {
                        "title": "Red List Vascular Plants (2016, Switzerland) - Rote Liste Gefässpflanzen (2016, Schweiz)",
                        "publisher": "Hortus botanicus Leiden",
                        "license": "CC BY 4.0",
                        "licenseUrl": "https://creativecommons.org/licenses/by/4.0/",
                        "doi": "https://doi.org/10.15468/43hhsb",
                        "url": "https://www.gbif.org/dataset/0f308281-6245-43c0-b483-3b1f9fe55a02",
                        "citation": "Bornand C, Eggenberg S, Gygax A, Juillerat P, Jutzi M, Möhl A, Rometsch S, Sager L, Santiago H, Langezaal G, Kamoen L (2026). Red List Vascular Plants (2016, Switzerland) - Rote Liste Gefässpflanzen (2016, Schweiz). Version 1.9. Hortus botanicus Leiden. Checklist dataset https://doi.org/10.15468/43hhsb accessed via GBIF.org on 2026-12-01.",
                        "usedFor": [
                          "German and French common names (17)"
                        ]
                      },
                      {
                        "title": "World Register of Marine Species",
                        "publisher": "WoRMS Editorial Board",
                        "license": "CC BY 4.0",
                        "licenseUrl": "https://creativecommons.org/licenses/by/4.0/",
                        "doi": "https://doi.org/10.14284/170",
                        "url": "https://www.gbif.org/dataset/2d59e5db-57ad-41ff-97d6-11f5fb264527",
                        "citation": "WoRMS Editorial Board (2026). World Register of Marine Species. Checklist dataset https://doi.org/10.14284/170 accessed via GBIF.org on 2026-12-01.",
                        "usedFor": [
                          "German and French common names (15)"
                        ]
                      },
                      {
                        "title": "Red List Vascular Plants (2018, Germany) - Rote Liste Gefässpflanzen (2018, Deutschland)",
                        "publisher": "Hortus botanicus Leiden",
                        "license": "CC BY 4.0",
                        "licenseUrl": "https://creativecommons.org/licenses/by/4.0/",
                        "doi": "https://doi.org/10.15468/dntyqe",
                        "url": "https://www.gbif.org/dataset/73370f38-ed24-4dfa-9a17-4df3a1e816a3",
                        "citation": "Metzing D, Garve E, Matzke-Hajek G, Adler J, Bleeker W, Breunig T, Caspari S, Dunkel F G, Fritsch R, Gottschlich G, Gregor T, Hand R, Hauck M, Korsch H, Meierott L, Meyer N, Renker C, Romahn K, Schulz D, Täuber T, Uhlemann I, Welk E, Weyer K, Wörz A, Zahlheimer W, Zehm A, Zimmermann F, Langezaal G, Kamoen L (2026). Red List Vascular Plants (2018, Germany) - Rote Liste Gefässpflanzen (2018, Deutschland). Version 1.4. Hortus botanicus Leiden. Checklist dataset https://doi.org/10.15468/dntyqe accessed via GBIF.org on 2026-12-01.",
                        "usedFor": [
                          "German and French common names (14)"
                        ]
                      },
                      {
                        "title": "Cichorieae Systematics Portal",
                        "publisher": "Botanic Garden and Botanical Museum Berlin",
                        "license": "CC BY 4.0",
                        "licenseUrl": "https://creativecommons.org/licenses/by/4.0/",
                        "doi": "https://doi.org/10.15468/gzcrwf",
                        "url": "https://www.gbif.org/dataset/ded724e7-3fde-49c5-bfa3-03b4045c4c5f",
                        "citation": "Kilian N (2024). Cichorieae Systematics Portal. Botanic Garden and Botanical Museum Berlin. Checklist dataset https://doi.org/10.15468/gzcrwf accessed via GBIF.org on 2026-12-01.",
                        "usedFor": [
                          "German and French common names (6)"
                        ]
                      },
                      {
                        "title": "Flora e Funga do Brasil - Lista Oficial",
                        "publisher": "Instituto de Pesquisas Jardim Botanico do Rio de Janeiro",
                        "license": "CC BY 4.0",
                        "licenseUrl": "https://creativecommons.org/licenses/by/4.0/",
                        "doi": "https://doi.org/10.15468/1mtkaw",
                        "url": "https://www.gbif.org/dataset/aacd816d-662c-49d2-ad1a-97e66e2a2908",
                        "citation": "Brazil Flora G (2026). Flora e Funga do Brasil - Lista Oficial. Version 393.433. Instituto de Pesquisas Jardim Botanico do Rio de Janeiro. Checklist dataset https://doi.org/10.15468/1mtkaw accessed via GBIF.org on 2026-12-01.",
                        "usedFor": [
                          "German and French common names (4)"
                        ]
                      },
                      {
                        "title": "WRiMS",
                        "publisher": "Flanders Marine Institute",
                        "license": "CC BY 4.0",
                        "licenseUrl": "https://creativecommons.org/licenses/by/4.0/",
                        "doi": "https://doi.org/10.14284/347",
                        "url": "https://www.gbif.org/dataset/0a2eaf0c-5504-4f48-a47f-c94229029dc8",
                        "citation": "Costello, M. J.; Ahyong, S.; Bieler, R.; Boudouresque, C.; Desiderato, A.; Downey, R.; Galil, B. S.; Gollasch, S.; Hutchings, P.; Kamburska, L.; Katsanevakis, S.; Kupriyanova, E.; Lejeusne, C.; Ma, K. C. K.; Marchini, A.; Occhipinti, A.; Pagad, S.; Pino, L.; Poore, G. C. B.; Rewicz, T.; Rius, M.; Robinson, T. B.; Sobczyk, R.; Stępień, A.; Turon, X.; Valls Domedel, G.; Verleye, T.; Vieira, L. M.; Willan, R. C.; Zhan, A. (2026). World Register of Introduced Marine Species (WRiMS). Accessed at https://www.marinespecies.org/introduced on 2026-11-01. doi:10.14284/347 accessed via GBIF.org on 2026-12-01.",
                        "usedFor": [
                          "German and French common names (3)"
                        ]
                      },
                      {
                        "title": "Toxic Plants – Phytotoxin (TPPT) Database",
                        "publisher": "Agroscope",
                        "license": "opendata.swiss: open use, source required",
                        "licenseUrl": "https://opendata.swiss/en/terms-of-use#terms_by",
                        "doi": null,
                        "url": "https://www.agroscope.admin.ch/de/giftpflanzen-phytotoxin-datenbank-tppt",
                        "citation": "Agroscope. Giftpflanzen – Phytotoxin Datenbank (TPPT). https://www.agroscope.admin.ch/de/giftpflanzen-phytotoxin-datenbank-tppt (via opendata.swiss).",
                        "usedFor": [
                          "Toxicity ratings for people, and for cats and dogs where it names them (563 plants)",
                          "Toxic plant parts (597 plants)",
                          "German common names where we have none (520)"
                        ]
                      }
                    ]
                  },
                  "meta": {
                    "dataVersion": "2026.12.5"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "Your API key (`pk_...`), from the dashboard."
      },
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "The same key as `Authorization: Bearer pk_...`."
      }
    },
    "headers": {
      "X-Quota-Limit": {
        "description": "Credits in your current period.",
        "schema": {
          "type": "integer"
        }
      },
      "X-Quota-Remaining": {
        "description": "Credits left in your current period.",
        "schema": {
          "type": "integer"
        }
      },
      "X-Quota-Reset": {
        "description": "When your credits reset (ISO 8601, UTC).",
        "schema": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "parameters": {
      "Name": {
        "name": "name",
        "in": "query",
        "description": "Any plant name: scientific, old, trade, or common in English, German or French (\"Easter lily\", \"Osterlilie\", \"lys de Pâques\"; case and accents do not matter). Give `name` or `id`. A common name that fits several plants returns the best match, with the others in `plant.alternatives`.",
        "schema": {
          "type": "string",
          "maxLength": 200
        },
        "example": "Lilium longiflorum"
      },
      "Id": {
        "name": "id",
        "in": "query",
        "description": "Plant id, e.g. `monstera-deliciosa`. Give `name` or `id`.",
        "schema": {
          "type": "string"
        }
      },
      "Family": {
        "name": "family",
        "in": "query",
        "description": "Plant family, used as a fallback when the name is unknown.",
        "schema": {
          "type": "string"
        }
      },
      "Lang": {
        "name": "lang",
        "in": "query",
        "description": "Language of text fields. Free: `en`.",
        "schema": {
          "type": "string",
          "enum": [
            "en",
            "de",
            "fr"
          ],
          "default": "en"
        }
      }
    },
    "responses": {
      "BadRequest": {
        "description": "A parameter is missing or invalid.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "bad_query",
                "message": "q needs at least 2 characters."
              }
            }
          }
        }
      },
      "Unauthorized": {
        "description": "The API key is missing, not valid or revoked.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "missing_key",
                "message": "Send your API key in the X-API-Key header (or Authorization: Bearer)."
              }
            }
          }
        }
      },
      "PlanLimit": {
        "description": "Not included in your plan: German or French on Free (`plan_lang`), or batch on Free (`plan_batch`). Or the key is not active yet: its account has not accepted the Terms of Service in the dashboard (`terms_not_accepted`).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "plan_lang",
                "message": "Free plan: English"
              }
            }
          }
        }
      },
      "NotFound": {
        "description": "No plant matches the name or id.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "unknown_plant",
                "message": "No plant with id \"no-such-plant\"."
              }
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "Too many requests per second (`rate_limited`) or no credits left in this period (`quota_exceeded`). Wait for `Retry-After` seconds.",
        "headers": {
          "Retry-After": {
            "description": "Seconds to wait.",
            "schema": {
              "type": "integer"
            }
          },
          "X-Quota-Limit": {
            "$ref": "#/components/headers/X-Quota-Limit"
          },
          "X-Quota-Remaining": {
            "$ref": "#/components/headers/X-Quota-Remaining"
          },
          "X-Quota-Reset": {
            "$ref": "#/components/headers/X-Quota-Reset"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "rate_limited",
                "message": "At most 1 request(s) per second on the free plan."
              }
            }
          }
        }
      }
    },
    "schemas": {
      "Text": {
        "type": "object",
        "required": [
          "en"
        ],
        "description": "Text in English plus the requested language when available.",
        "properties": {
          "en": {
            "type": "string"
          },
          "de": {
            "type": "string"
          },
          "fr": {
            "type": "string"
          }
        }
      },
      "Meta": {
        "type": "object",
        "properties": {
          "plan": {
            "type": "string",
            "enum": [
              "free",
              "starter",
              "pro",
              "business"
            ]
          },
          "lang": {
            "type": "string",
            "enum": [
              "en",
              "de",
              "fr"
            ]
          },
          "dataVersion": {
            "type": "string",
            "description": "Data release that answered."
          },
          "credits": {
            "type": "array",
            "description": "Data credits to show, e.g. Catalogue of Life (CC BY 4.0).",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "license": {
                  "type": "string"
                },
                "for": {
                  "type": "string"
                }
              }
            }
          },
          "attribution": {
            "type": "object",
            "description": "Free plan: the attribution you must display.",
            "properties": {
              "required": {
                "type": "boolean"
              },
              "text": {
                "type": "string"
              },
              "url": {
                "type": "string"
              }
            }
          },
          "creditsUrl": {
            "type": "string",
            "description": "Where the full credits are listed (the credits page; JSON at `GET /credits`).",
            "example": "/credits"
          }
        }
      },
      "Match": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Plant id (slug of the accepted name)."
          },
          "name": {
            "type": "string",
            "description": "Accepted scientific name."
          },
          "rank": {
            "type": "string",
            "enum": [
              "species",
              "genus"
            ]
          },
          "family": {
            "type": "string"
          },
          "genus": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "accepted",
              "synonym",
              "trade-name",
              "common-name",
              "genus-only"
            ],
            "description": "How the name you sent matched: `accepted` (the accepted scientific name), `synonym` (an old name), `trade-name` (a nursery name), `common-name` (a common name in English, German or French), `genus-only` (an unknown species of a known genus)."
          },
          "query": {
            "type": "string",
            "description": "The name you sent."
          },
          "alternatives": {
            "type": "array",
            "description": "Filled when a common name fits several plants: the other plants it can mean, best first (at most 10). The match itself is the best one: our hand-checked names (care plans, curated entries, our own list) count more than names from GBIF, and names in the requested `lang` count double. When a single word is both a genus name and the usual common name of another plant (`pothos`), the genus comes first here. Call again with an `id` to pick another.",
            "items": {
              "type": "object",
              "required": [
                "id",
                "name"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Plant id, for `?id=`."
                },
                "name": {
                  "type": "string",
                  "description": "Accepted scientific name."
                }
              }
            }
          }
        }
      },
      "Level": {
        "type": "string",
        "enum": [
          "not-rated",
          "non-toxic",
          "listed",
          "mild",
          "toxic",
          "emergency"
        ],
        "description": "Weakest to strictest. `not-rated`: fewer than two poison lists name the plant for this animal (`listsNaming` of `listsChecked` says how many). `non-toxic`: a named source explicitly lists this plant as non-toxic (for a genus asked for as a genus: this genus), and no poison list we check names it. `listed`: two or more poison lists agree, without a severity. `mild`, `toxic`, `emergency`: with a severity."
      },
      "Source": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      },
      "Rating": {
        "type": "object",
        "properties": {
          "level": {
            "$ref": "#/components/schemas/Level"
          },
          "scope": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "species",
              "genus",
              null
            ],
            "description": "Rated for this species, or from sources covering the whole genus."
          },
          "summary": {
            "$ref": "#/components/schemas/Text",
            "description": "One sentence for the level; for `not-rated` and `non-toxic` it gives the list counts."
          },
          "effect": {
            "$ref": "#/components/schemas/Text",
            "description": "What happens, when known."
          },
          "contact": {
            "type": "boolean",
            "description": "Can also irritate on skin contact."
          },
          "notes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Text"
            },
            "description": "For example when sources disagree."
          },
          "basis": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "curated",
                "lists",
                "graded",
                "non-toxic-list"
              ]
            },
            "description": "`lists`: two or more public poison lists agree (cats and dogs: `listed`, no severity). `graded`: cats and dogs, two sources agree and Pet Poison Helpline gives the severity. `curated`: hand-checked entry (for humans). `non-toxic-list`: a named source (Agroscope TPPT for people, Pet Poison Helpline for cats and dogs) lists the plant as non-toxic. Empty for `not-rated`."
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Source"
            }
          },
          "checked": {
            "type": "string",
            "format": "date",
            "description": "Date the sources were last checked."
          },
          "listsChecked": {
            "$ref": "#/components/schemas/ListCount",
            "description": "The public poison lists we check for this animal."
          },
          "listsNaming": {
            "$ref": "#/components/schemas/ListCount",
            "description": "Those of them that name this plant, or its whole genus, as poisonous for this animal."
          },
          "foodNote": {
            "$ref": "#/components/schemas/FoodNote"
          }
        },
        "required": [
          "level",
          "scope",
          "summary",
          "basis",
          "sources",
          "listsChecked",
          "listsNaming"
        ]
      },
      "Toxicity": {
        "type": "object",
        "properties": {
          "plant": {
            "$ref": "#/components/schemas/Match"
          },
          "cat": {
            "$ref": "#/components/schemas/Rating"
          },
          "dog": {
            "$ref": "#/components/schemas/Rating"
          },
          "human": {
            "type": "object",
            "properties": {
              "level": {
                "$ref": "#/components/schemas/Level"
              },
              "scope": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "species",
                  "genus",
                  null
                ],
                "description": "Rated for this species, or from sources covering the whole genus."
              },
              "summary": {
                "$ref": "#/components/schemas/Text",
                "description": "One sentence for the level; for `not-rated` and `non-toxic` it gives the list counts."
              },
              "effect": {
                "$ref": "#/components/schemas/Text",
                "description": "What happens, when known."
              },
              "contact": {
                "type": "boolean",
                "description": "Can also irritate on skin contact."
              },
              "notes": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Text"
                },
                "description": "For example when sources disagree."
              },
              "basis": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "curated",
                    "lists",
                    "graded",
                    "non-toxic-list"
                  ]
                },
                "description": "`lists`: two or more public poison lists agree (cats and dogs: `listed`, no severity). `graded`: cats and dogs, two sources agree and Pet Poison Helpline gives the severity. `curated`: hand-checked entry (for humans). `non-toxic-list`: a named source (Agroscope TPPT for people, Pet Poison Helpline for cats and dogs) lists the plant as non-toxic. Empty for `not-rated`."
              },
              "sources": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Source"
                }
              },
              "checked": {
                "type": "string",
                "format": "date",
                "description": "Date the sources were last checked."
              },
              "kids": {
                "type": "object",
                "description": "Level and effect for children, on hand-checked plants (a hand-checked `non-toxic` only where the rating itself is `non-toxic`).",
                "properties": {
                  "level": {
                    "$ref": "#/components/schemas/Level"
                  },
                  "effect": {
                    "$ref": "#/components/schemas/Text"
                  }
                }
              },
              "adults": {
                "type": "object",
                "description": "Level and effect for adults, on hand-checked plants (a hand-checked `non-toxic` only where the rating itself is `non-toxic`).",
                "properties": {
                  "level": {
                    "$ref": "#/components/schemas/Level"
                  },
                  "effect": {
                    "$ref": "#/components/schemas/Text"
                  }
                }
              },
              "contactText": {
                "$ref": "#/components/schemas/Text"
              },
              "listsChecked": {
                "$ref": "#/components/schemas/ListCount",
                "description": "The public poison lists we check for this animal."
              },
              "listsNaming": {
                "$ref": "#/components/schemas/ListCount",
                "description": "Those of them that name this plant, or its whole genus, as poisonous for this animal."
              }
            }
          },
          "food": {
            "$ref": "#/components/schemas/Text",
            "description": "Food plants: which part is toxic and which part is eaten."
          },
          "disclaimer": {
            "$ref": "#/components/schemas/Text",
            "description": "One sentence: for information only. You may show it as part of your own notice to your users."
          },
          "toxicParts": {
            "type": "object",
            "required": [
              "parts",
              "text",
              "source"
            ],
            "description": "Which parts of the plant are toxic, from Agroscope TPPT (species it covers).",
            "properties": {
              "parts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "part"
                  ],
                  "properties": {
                    "part": {
                      "type": "string",
                      "enum": [
                        "whole-plant",
                        "aerial-part",
                        "fruit",
                        "seed",
                        "seed-coat",
                        "leaf",
                        "root",
                        "root-bark",
                        "bark",
                        "latex",
                        "pollen",
                        "bulb",
                        "herb",
                        "rhizome",
                        "capsule",
                        "flowering-top",
                        "flower",
                        "tuber",
                        "young-plant",
                        "wood",
                        "shoot"
                      ]
                    },
                    "highest": {
                      "type": "boolean",
                      "description": "Highest concentration of toxins in this part."
                    },
                    "orWholePlant": {
                      "type": "boolean",
                      "description": "This part, or possibly the whole plant."
                    }
                  }
                }
              },
              "text": {
                "$ref": "#/components/schemas/Text"
              },
              "source": {
                "$ref": "#/components/schemas/Source"
              }
            }
          }
        }
      },
      "Care": {
        "type": "object",
        "properties": {
          "plant": {
            "$ref": "#/components/schemas/Match"
          },
          "level": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "species",
              "genus",
              "family",
              null
            ],
            "description": "How specific the plan is; `null` when there is no plan."
          },
          "levelNote": {
            "$ref": "#/components/schemas/Text"
          },
          "plan": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "level": {
                "type": "string",
                "enum": [
                  "species",
                  "genus",
                  "family"
                ]
              },
              "scientific": {
                "type": "string"
              },
              "genus": {
                "type": "string",
                "description": "Accepted genus (species and genus plans)."
              },
              "family": {
                "type": "string",
                "description": "Accepted family."
              },
              "name": {
                "$ref": "#/components/schemas/Text"
              },
              "status": {
                "type": "string",
                "enum": [
                  "grown",
                  "wild"
                ],
                "description": "`wild` plans describe the wild range instead of care."
              },
              "basis": {
                "type": "string",
                "enum": [
                  "sources",
                  "general"
                ]
              },
              "setting": {
                "type": "string",
                "description": "Where it is usually grown, e.g. `indoor`."
              },
              "light": {
                "type": "object",
                "properties": {
                  "level": {
                    "type": "string",
                    "description": "e.g. `bright-indirect`."
                  },
                  "tolerates": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "text": {
                    "$ref": "#/components/schemas/Text"
                  }
                }
              },
              "water": {
                "type": "object",
                "properties": {
                  "check": {
                    "$ref": "#/components/schemas/Text"
                  },
                  "intervalDays": {
                    "type": "object",
                    "description": "Days between waterings per season, as [min, max]."
                  },
                  "text": {
                    "$ref": "#/components/schemas/Text"
                  }
                }
              },
              "soil": {
                "$ref": "#/components/schemas/Text"
              },
              "humidity": {
                "type": "object",
                "properties": {
                  "level": {
                    "type": "string"
                  },
                  "text": {
                    "$ref": "#/components/schemas/Text"
                  }
                }
              },
              "temperature": {
                "type": "object",
                "properties": {
                  "minC": {
                    "type": "number"
                  },
                  "idealC": {
                    "type": "array",
                    "items": {
                      "type": "number"
                    },
                    "description": "[min, max] in °C."
                  },
                  "text": {
                    "$ref": "#/components/schemas/Text"
                  }
                }
              },
              "feeding": {
                "type": "object",
                "properties": {
                  "months": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Months to feed (1 = January, northern hemisphere)."
                  },
                  "everyWeeks": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "text": {
                    "$ref": "#/components/schemas/Text"
                  }
                }
              },
              "repotting": {
                "type": "object",
                "properties": {
                  "everyYears": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "text": {
                    "$ref": "#/components/schemas/Text"
                  }
                }
              },
              "problems": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "symptom": {
                      "$ref": "#/components/schemas/Text"
                    },
                    "cause": {
                      "$ref": "#/components/schemas/Text"
                    },
                    "fix": {
                      "$ref": "#/components/schemas/Text"
                    }
                  }
                }
              },
              "sources": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    },
                    "checked": {
                      "type": "string",
                      "format": "date"
                    }
                  }
                }
              }
            }
          },
          "disclaimer": {
            "$ref": "#/components/schemas/Text"
          }
        }
      },
      "SearchResults": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string"
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "scientific": {
                  "type": "string"
                },
                "rank": {
                  "type": "string",
                  "enum": [
                    "species",
                    "genus"
                  ]
                },
                "family": {
                  "type": "string"
                },
                "matched": {
                  "type": "object",
                  "description": "The name that matched.",
                  "properties": {
                    "term": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "scientific",
                        "synonym",
                        "common"
                      ]
                    },
                    "lang": {
                      "type": "string"
                    }
                  }
                },
                "score": {
                  "type": "number"
                },
                "commonName": {
                  "$ref": "#/components/schemas/Text"
                }
              }
            }
          }
        }
      },
      "Plant": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "scientific": {
            "type": "string"
          },
          "rank": {
            "type": "string",
            "enum": [
              "species",
              "genus"
            ]
          },
          "family": {
            "type": "string"
          },
          "genus": {
            "type": "string"
          },
          "commonName": {
            "$ref": "#/components/schemas/Text"
          },
          "toxicity": {
            "$ref": "#/components/schemas/Toxicity"
          },
          "care": {
            "$ref": "#/components/schemas/Care"
          }
        }
      },
      "BatchRequest": {
        "type": "object",
        "required": [
          "items"
        ],
        "properties": {
          "items": {
            "type": "array",
            "minItems": 1,
            "maxItems": 100,
            "items": {
              "type": "object",
              "required": [
                "op"
              ],
              "properties": {
                "op": {
                  "type": "string",
                  "enum": [
                    "toxicity",
                    "care",
                    "resolve",
                    "plant"
                  ]
                },
                "name": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "family": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "BatchResults": {
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "index": {
                  "type": "integer"
                },
                "ok": {
                  "type": "boolean"
                },
                "data": {
                  "description": "Same as the single endpoint."
                },
                "error": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable, machine-readable code."
              },
              "message": {
                "type": "string"
              }
            }
          }
        }
      },
      "CreditEntry": {
        "type": "object",
        "required": [
          "title",
          "license",
          "licenseUrl",
          "url",
          "usedFor"
        ],
        "properties": {
          "title": {
            "type": "string"
          },
          "publisher": {
            "type": [
              "string",
              "null"
            ]
          },
          "license": {
            "type": "string",
            "description": "For example `CC BY 4.0`."
          },
          "licenseUrl": {
            "type": "string",
            "format": "uri"
          },
          "doi": {
            "type": [
              "string",
              "null"
            ],
            "description": "DOI link of the dataset."
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "GBIF dataset page."
          },
          "citation": {
            "type": [
              "string",
              "null"
            ],
            "description": "Citation recommended by the publisher."
          },
          "usedFor": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "Credits": {
        "type": "object",
        "required": [
          "checked",
          "entries"
        ],
        "properties": {
          "checked": {
            "type": "string",
            "format": "date",
            "description": "When the licences were checked."
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreditEntry"
            }
          }
        }
      },
      "ListCount": {
        "type": "object",
        "required": [
          "count",
          "names"
        ],
        "properties": {
          "count": {
            "type": "integer",
            "minimum": 0
          },
          "names": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The lists, by name (as in `sources`), alphabetically."
          }
        }
      },
      "FoodNote": {
        "type": "object",
        "required": [
          "text",
          "sources"
        ],
        "description": "Cats and dogs, food plants only (grapes and raisins, onions and garlic, avocado, cherries, macadamia nuts, ...): what in the food is the risk. Our text, from the sources named.",
        "properties": {
          "text": {
            "$ref": "#/components/schemas/Text"
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Source"
            }
          }
        }
      }
    }
  }
}