Skip to main content
Configurations control how Leaf pulls data from providers, processes machine files, creates field operations, and generates output formats. You can set configurations at the API owner level (applies to all Leaf users by default) or at the individual Leaf user level for granular control.

How configuration inheritance works

Every API owner starts with a default set of configurations. These defaults can be changed but not deleted or set to null. When you set a configuration on a specific Leaf user, that user stops inheriting that configuration from the API owner. The Leaf user’s value takes precedence and does not change if you later update the API owner’s configuration. If a Leaf user has no custom configuration, they inherit everything from the API owner.
Configuration changes are not retroactive. Existing data is not reprocessed when you change a configuration. Use the Reprocess Operation endpoint if you need to apply new settings to existing data.

Endpoints

Base URL: https://api.withleaf.io/services/config/api
ActionMethodPath
Get API owner configurationGET/configs
Get Leaf user configurationGET/configs/{leafUserId}
Create Leaf user configurationPOST/configs/{leafUserId}
Update API owner configurationPATCH/configs
Update Leaf user configurationPATCH/configs/{leafUserId}
Delete Leaf user configurationDELETE/configs/{leafUserId}

Configuration categories

Configurations are grouped by what they control. See the Configuration Reference for the full list with defaults and descriptions.
CategoryWhat it controlsKey configs
Data synchronizationWhich data Leaf pulls from providersfieldsAutoSync, operationsAutoSync, customDataSync, organizationDataSync
Field boundary managementHow boundaries are validated, linked, and mergedautomaticFixBoundary, fieldsAttachIntersection, fieldsAutoMerge
Machine file conversionHow raw data is cleaned and outputcleanupStandardGeojson, cleanupRules, unitMeasurement, enableGeoparquetOutput, cropOptional, seedRateOptional
Field operationsHow files merge into operationsfieldOperationCreation, operationsFilteredGeojson, operationsRemoveOutliers, operationsMergeRange, splitOperationsByField, outOfStandardOperations
Image generationWhich images are produced for operationsoperationsImageCreation, operationsImageAsGeoTiff
IrrigationHow far back to fetch irrigation datairrigationProcessingRange

Configurations by use case

The right configuration depends on your use case. Here are recommended starting points.

Crop insurance

Focus on consistent results close to SMS-driven pipelines. Key settings:
  • cleanupStandardGeojson: true with default rules.
  • operationsRemoveOutliers: true with operationsOutliersLimit at 3.
  • splitOperationsByField: true.
  • operationsImageCreation: true for visual verification.
  • unitMeasurement: IMPERIAL (for US customers).

FMIS

Prioritize processing efficiency and pull only the data you need:
  • customDataSync: true to selectively process fields.
  • fieldsAutoSync: true.
  • operationsAutoSync: true.
  • enableGeoparquetOutput: true for faster data ingestion.

Managed service provider

Similar to FMIS, with additional attention to multi-organization accounts:
  • organizationDataSync: SELECTED_ONLY to limit scope.
  • customDataSync: true.
  • Per-Leaf-user configurations for different growers with different processing needs.

What to do next

Last modified on March 24, 2026