Some providers expose an organization layer above growers, farms, and fields. Leaf surfaces those organizations so you can see which ones are connected. Leaf’s organization sync-management endpoints are John Deere-only.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.
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.| Action | Method | Path |
|---|---|---|
| List provider organizations | GET | /users/{leafUserId}/{provider}/organizations |
| Get one provider organization | GET | /users/{leafUserId}/{provider}/organizations/{providerOrgId} |
| Update organization status | PATCH | /users/{leafUserId}/{provider}/organizations/{providerOrgId}/{status} |
| Sync provider organizations | POST | /users/{leafUserId}/{provider}/organizations/sync |
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
| Status | Meaning |
|---|---|
SELECTED | Leaf processes resources from this organization. |
PREVIEW | Leaf keeps the organization visible but does not process its downstream resources. |
BLOCKED | The app does not currently have the required provider-side access for this organization. |
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.

