Use these endpoints to retrieve aerial imagery layers (tassel count, stand count, NDVI, RGB) from Sentera and upload RGB layers to Climate FieldView. For conceptual background, see Layers.Documentation Index
Fetch the complete documentation index at: https://docs.withleaf.io/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
Endpoints
| Endpoint | Method | Path |
|---|---|---|
| Get all layers for a Leaf user | GET | /users/{leafUserId}/layers |
| Upload a layer to Climate FieldView | POST | /users/{leafUserId}/layers/climateFieldView |
Get all layers for a Leaf user
GET/users/{leafUserId}/layers
Returns a paginated list of layers that belong to a Leaf user. Layers are sourced from the Sentera integration and include tassel count, stand count, NDVI, and RGB imagery.
Parameters
| Parameter | Type | Description |
|---|---|---|
type | string | Filter by layer type: TASSEL_COUNT, STAND_COUNT, NVDI, or RGB. |
page | integer | Page number (default 0). |
size | integer | Page size (default 20, max 100). |
The default page size is 20 when
page and size are not set.Request
Response
Upload a layer to Climate FieldView
POST/users/{leafUserId}/layers/climateFieldView
Sends a layer file to Climate FieldView using the Leaf user’s Climate FieldView credentials.
Currently only true-color image (RGB) files are supported. The file must meet the following Climate FieldView requirements:
- Multi-band GeoTIFF with 24-bit composite values (3 bands: Red, Green, Blue)
- Coordinate Reference System must be UTM with WGS84 datum
- Required GDAL_METADATA entries embedded in the GeoTIFF:
acquisitionStartDate— ISO 8601 dateacquisitionEndDate— ISO 8601 dateisCalibrated— boolean
Although Climate FieldView supports files up to 500 MB, this endpoint currently accepts files up to 5 MB.
Uploaded layers are not stored on the Leaf side and are only available directly in Climate FieldView.
Parameters
| Parameter | Type | Description |
|---|---|---|
uploadType | string | Required. Must be RGB. |

