Skip to main content
Lymo delivers webhook events to your registered endpoint via HTTP POST. When a new plant is created, Lymo sends a POST request to your webhook URL with details about the new plant.
  • Event: plant.created
  • Method: POST to your registered webhook URL

Webhook payload

{
  "name": "monstera",
  "tag": "tropical"
}

Payload fields

name
string
The name of the newly created plant.
tag
string
The tag/category of the plant, if provided.

Acknowledging delivery

Your endpoint must return a 200 HTTP status to confirm receipt. Any other status code or a timeout causes Lymo to retry the delivery.

Example handler

const express = require('express');
const app = express();

app.use(express.json());

app.post('/plant/webhook', (req, res) => {
  const { name, tag } = req.body;
  console.log('Plant created:', name, tag);
  res.sendStatus(200);
});

app.listen(3000);
For full setup instructions, including how to register your webhook URL, see the webhooks guide.