API Documentation
Verdant's REST API gives you full programmatic access to plant data, sensor history, AI logs, and actuator control. All treasury data is publicly verifiable on Solana.
https://api.verdant.io/v1 — All endpoints use HTTPS and return JSON.solana.fm or explorer.solana.com.🔑 Authentication
All API requests require an API key sent via the Authorization header.
Authorization: Bearer YOUR_API_KEY Content-Type: application/json
Get your API key from Settings → API Keys in your Verdant dashboard.
⚡ Rate Limits
🌱 Plants API
Returns all plants connected to your account.
{
"plants": [{
"id": "plant_abc123",
"name": "Cherry Tomato",
"species": "Solanum lycopersicum",
"growth_stage": "vegetative",
"status": "healthy",
"onchain_log": "https://solana.fm/address/..."
}],
"total": 1
}| Parameter | Type | Description |
|---|---|---|
| namerequired | string | Your plant's name |
| speciesoptional | string | Scientific species name |
| growth_stageoptional | string | seedling, vegetative, flowering, fruiting |
| care_presetoptional | string | tropical, temperate, desert, mediterranean |
Returns full plant details including MQTT config, care thresholds, and on-chain log address.
📊 Sensor Data
| Query Param | Type | Default |
|---|---|---|
| from | ISO 8601 | 24 hours ago |
| to | ISO 8601 | Now |
| interval | string | raw — or: 5m, 15m, 1h, 1d |
| limit | integer | 100 (max: 1000) |
HTTP alternative to MQTT — useful for testing or non-broker integrations.
{
"temperature": 22.5,
"humidity": 65,
"soilMoisture": 45,
"lightLevel": 3500
}🎮 Actions
| Parameter | Type | Description |
|---|---|---|
| actionrequired | string | water, light_on, light_off, fan_on, fan_off, heater_on, heater_off |
| durationoptional | integer | Duration in seconds |
| leveloptional | integer | Intensity 0–100 for dimmers |
🧠 AI Analysis
Forces an immediate AI analysis using the latest sensor data, bypassing the automatic interval.
{
"analysis_id": "anlz_xyz789",
"actions_taken": ["water", "light_adjust"],
"reasoning": "Soil moisture 28% below threshold 35%...",
"onchain_tx": "5XnJk...7fPq",
"next_analysis": "2025-03-18T14:00:00Z"
}Returns historical AI decision logs including reasoning, actions taken, and on-chain transaction IDs for verification.
📋 Care Logs
Complete timeline of all events: waterings, light adjustments, growth stage changes, and AI notifications — all with on-chain references.
⬡ Treasury API
Treasury Wallet
All $VRDT trading fees flow into a Squads Protocol multisig. Balance, inflows, and outflows are publicly verifiable. Use the endpoints below or query Solana directly.
{
"balance_usdc": 42850.00,
"balance_vrdt": 1200000,
"monthly_inflow": 8400.00,
"monthly_spend": {
"ai_ops": 3360.00,
"rnd": 2520.00,
"marketing": 1680.00,
"reserve": 840.00
},
"wallet_address": "VRDTxyz...abc",
"solana_explorer": "https://solana.fm/address/VRDTxyz..."
}Paginated list of all treasury inflows (trading fees) and outflows (ops spending) with Solana transaction signatures.
🔔 Webhooks
Verdant sends real-time events to your endpoint URL whenever something happens in the network.
{
"url": "https://yourapp.com/verdant-webhook",
"events": ["sensor.low_moisture", "action.taken", "ai.analysis_complete", "treasury.inflow"],
"plant_id": "plant_abc123"
}📡 MQTT Reference
Complete reference of all MQTT topics used by Verdant hardware nodes.