Organization endpoint groups
Leaf exposes two related sets of organization endpoints:1. Provider organization list
Use this endpoint to see which organizations are connected or not connected for a provider account.GET /users/{leafUserId}/organizations/{provider}
- Supported providers:
JohnDeere,Trimble - John Deere returns both connected and not-connected organizations.
- Trimble does not distinguish between connected and not-connected organizations.
2. Provider organization sync management
These endpoints manage the organizations Leaf is allowed to process for a connected provider account.These sync-management endpoints are
JohnDeere-only. The {provider} value for this endpoint group must be JohnDeere.Provider organization resource
providerOrgIdis the provider’s organization ID.providerOrgNameis the provider’s organization name.managementUriis the provider-side URL for reviewing or fixing the app-to-organization connection.statuscontrols whether Leaf processes data from that organization.
Organization statuses
If a John Deere
managementUri contains connections-dialog, the app-to-organization connection is established. If it contains select-organizations, the setup is incomplete and the organization remains unavailable for processing until you update the provider-side connection and run a sync again.
Controlling sync scope
TheorganizationDataSync configuration controls whether Leaf syncs every available organization or only the organizations you explicitly select:
ALLsyncs every organization the account can access.SELECTED_ONLYsyncs only organizations you mark asSELECTED.
customDataSync to limit both organization scope and field-level processing.
Verifying what synced
Use the Integrations Resources endpoint to confirm the amount of data currently available for a Leaf user:GET https://api.withleaf.io/services/integrations/api/resources
Filter by provider and leafUserId to see grower, farm, and field counts per provider. This is a good way to confirm that your organization and field sync settings are producing the expected resource counts.
What to do next
- Review Configuration for
organizationDataSyncandcustomDataSync. - See Organizations API Reference for endpoint paths and methods.
- See Integrations API Reference for provider resource summaries.
- If you are connecting John Deere accounts with many organizations, set
organizationDataSynctoSELECTED_ONLYbefore scaling the integration.

