Veralux API reference
Read farm records with a scoped API key and subscribe to signed events.
OpenAPI JSONBefore you start
- For developers connecting a farm's own software to Veralux OS: an ERP, a buyer portal, a data warehouse or an internal tool.
- The farm owner creates an API key in Settings, Integrations and chooses which operations it may call. Keys last 90 days and a farm can hold up to 20. The API needs the Integrations module on the farm's plan.
- Requests are POST with a JSON body of up to 64 KB. Each key may make 120 requests a minute and each address 240; past that the answer is 429 RateLimited with a Retry-After header.
- Every answer is JSON: { ok: true, value } or { ok: false, error: { tag } }. 401 means the key is missing, wrong, revoked or expired; 403 Forbidden means the key may not call that operation or the farm is read-only; 404 UseCaseUnknown means no such operation; 400 or 415 means the body is not valid JSON.
- For an AI agent such as ChatGPT or Claude, use the MCP connection instead: see Connect your own AI. Connect your own AI
Example request
Send the key as an Authorization bearer token and a JSON object as the request body. The farm owner creates keys in Settings.
curl -X POST 'https://os.veraluxfarms.com/api/v1/operations/farm.list_blocks' \
-H 'Authorization: Bearer $VERALUX_API_KEY' \
-H 'Content-Type: application/json' \
--data '{}'Available operations
POST commerce.list_ordersList sale orders with how many units are ordered, allocated and dispatched.POST commerce.get_orderShow one sale order: lines, allocated units and dispatches.POST commerce.list_dispatchesList dispatches with their order, buyer, vehicle and status.POST compliance.list_holdsHarvest and re-entry holds on blocks and plantings, with the date each one clears.POST farm.list_blocksList the farm's blocks with their area, boundary, water source and what is growing in each.POST farm.get_blockRead one block's record: soil, plantings, plans and the rotation of crops on it.POST farm.list_cropsList the crop catalogue: forms, varieties, grades, pack units, sellable products and required documents per crop.POST farm.list_plantingsList plantings with their block, crop, variety, source, area and plant count.POST harvest.list_lotsList lots with their status and packed weightPOST integrations.list_connectorsList connector status, import sources, and snapshot datesPOST packhouse.get_lotShow a lot with its units, labels, holds and gate results
Signed webhooks
Verify the base64 HMAC-SHA256 of webhook-id.webhook-timestamp.raw-body with the base64-decoded secret after removing whsec_. The signature header is v1,<base64>. Reject stale timestamps and deduplicate by event ID. Deliveries can be repeated or arrive out of order. Return a 2xx status to acknowledge.
- block.upserted
- planting.created
- lot.verified
- lot.recalled
- packunit.packed