Skip to main content
Use GET /plants to retrieve a list of all plants available to your account. You can control the number of results using the limit query parameter.
GET https://api.lymo.jp/plants

Query parameters

limit
integer
The maximum number of results to return. If omitted, all accessible plants are returned.

Example request

curl https://api.lymo.jp/plants?limit=10 \
  -H "Authorization: Bearer YOUR_API_KEY"

Example response

[
  {
    "id": 1,
    "name": "monstera",
    "tag": "tropical"
  },
  {
    "id": 2,
    "name": "cactus",
    "tag": "desert"
  }
]

Response fields

id
integer
Unique identifier of the plant.
name
string
The name of the plant.
tag
string
Tag indicating the plant type.

Error responses

Status codeDescription
401 UnauthorizedThe request is missing a valid Bearer token.
400 Bad RequestThe limit parameter is not a valid integer.