Register fields for satellite monitoring, retrieve NDVI, NDRE, and RGB imagery from Sentinel-2 and PlanetScope, and manage monitoring subscriptions.
Use the satellite service to register geometries for monitoring, retrieve processed image captures, and manage Planet subscriptions or reprocessing. This page is the endpoint reference for Sentinel and Planet imagery once you already understand the product-level behavior.For conceptual background, see Satellite Imagery Overview.
Planet imagery is billed per area processed. Every satellite field with Planet in its providers array consumes quota when new imagery is processed. Use a small test geometry when validating your integration.
Get all satellite fields
GET/fieldsReturns a paginated list of satellite fields for the authenticated API owner.
Returns a single satellite field object (same shape as the objects in the Get all satellite fields response).
Get images of satellite field
GET/fields/{id}/processesReturns a paginated list of processed satellite images for the specified field. Each process represents a single capture date and contains one or more image types (NDVI, RGB, etc.).
Parameters
Parameter
Type
Description
id
path (UUID)
The satellite field ID.
startDate
string
ISO 8601 date. Returns images captured on or after this date.
endDate
string
ISO 8601 date. Returns images captured on or before this date.
startProcessedTimestamp
string
ISO 8601 timestamp. Returns images processed on or after this time.
endProcessedTimestamp
string
ISO 8601 timestamp. Returns images processed on or before this time.
maxClouds
number
Maximum cloud percentage to include, from 0.0 to 100.0.
minCoverage
number
Minimum field coverage percentage to include, from 0.0 to 100.0.
provider
string
Filter by provider: sentinel or planet.
page
integer
Page number (default 0).
size
integer
Page size (default 20, max 100).
sort
string
Sorting order with optional ,asc or ,desc suffix (e.g. date,desc).
Request
curl -X GET \ -H 'Authorization: Bearer YOUR_TOKEN' \ 'https://api.withleaf.io/services/satellite/api/fields/{id}/processes?startDate=2020-09-07&endDate=2020-09-10&provider=sentinel&page=0&size=10&sort=date,desc'
POST/fieldsCreates a satellite field and begins imagery processing. Once created, Leaf fetches available satellite imagery for the geometry from the specified providers.
Parameters
Parameter
Type
Description
externalId
string (required)
Your identifier for the field.
geometry
GeoJSON MultiPolygon (required)
The field boundary.
providers
array of strings (optional)
Satellite providers to enable. Accepted values: sentinel, planet. Defaults to ["sentinel"] if omitted.
Start with sentinel for development and testing. Add planet when you need higher-resolution imagery in production.
GET/fields/{id}/subscriptionReturns the Planet subscription status for a satellite field. This endpoint only applies to fields that have Planet in their providers array.
Parameters
Parameter
Type
Description
id
path (UUID)
The satellite field ID.
Request
curl -X GET \ -H 'Authorization: Bearer YOUR_TOKEN' \ 'https://api.withleaf.io/services/satellite/api/fields/{id}/subscription'
POST/fields/{id}/process/{processId}/reprocessTriggers reprocessing for a specific satellite image. Use this if a process failed or if you need updated imagery outputs.
Parameters
Parameter
Type
Description
id
path (UUID)
The satellite field ID.
processId
path (integer)
The process ID to reprocess.
Request
curl -X POST \ -H 'Authorization: Bearer YOUR_TOKEN' \ 'https://api.withleaf.io/services/satellite/api/fields/{id}/process/{processId}/reprocess'