CropPath for developers

All guides

Harvest app

Available

Co-ops record signed harvests at a collection point from a registered browser, even without a network.

The harvest app is a page of the CropPath web app, /harvest, for co-op operators and admins at a collection point. Each record holds the harvested net mass in kg, the growing area, the lot when it is already known, the collection point, and the harvester as a code the co-op assigns (never a name); each record is signed on the device.

Each browser is registered once. The install creates its own signing key (ECDSA P-256, generated by the browser so that the private key cannot be exported) and asks to register it (POST /v1/harvest-keys). A tenant admin approves or rejects the request in the harvest app section of the devices page; approving creates the install's device and key. A rejected registration or a revoked key is final: the install creates a new key and asks again. The key is revoked like any other device key.

The app works without a network: records are signed and queued in the browser, and the queue is sent through the device ingest when the browser is online. Each record has its own id, so a record sent twice is stored once. Until the registration is approved, the ingest answers unknown_device and the records stay queued. A harvest record counts as device-recorded evidence only while its key is approved and not revoked; the backend decides that, not the app.

In the API reference