Base URL
Endpoints
Supported formats
You can upload field boundaries in the following formats:- Shapefile — packaged as a
.zipcontaining.shp,.shx,.dbf, and optionally.prj - GeoJSON —
.jsonor.geojson - KML / KMZ —
.kmlor.kmz
Leaf reprojects all uploaded geometries to WGS 84 (EPSG:4326).
Upload limits
Upload and entry statuses
Each upload progresses through the following statuses:
Individual entries within an upload have their own statuses:
Upload a field file
POST/upload
Uploads a field boundary file for the specified Leaf user. The file is processed asynchronously. Use the Get an upload or Get upload entries endpoints to track progress.
Parameters
Request
Response
Get all uploads
GET/upload
Returns a paginated list of field boundary uploads.
Parameters
Request
Response
Get an upload
GET/upload/{uploadId}
Returns a single field boundary upload by its ID.
Parameters
Request
Response
Get upload entries
GET/upload/{uploadId}/entries
Returns the individual entries for each recognized file extracted from an upload. Each entry tracks its own processing status and lists the Leaf field IDs created from that recognized file.

