Skip to main content
This page covers CNHI FieldOps, CNH Industrial’s current API platform. For the legacy CNHI (AFS Connect) integration, see CNHI (AFS Connect).
CNH Industrial (Case IH, New Holland, Steyr) exposes two API platforms. Leaf supports both as separate providers: CNHI (AFS Connect) and CNHI FieldOps (this page). CNHI FieldOps is the current platform — use it for new integrations. Leaf connects to CNHI FieldOps using OAuth 2.0. Once connected, Leaf syncs growers, farms, fields, machine files, and field operations.

Prerequisites

  1. A CNH developer account registered with a company-domain email (generic email domains like Gmail and Hotmail are not supported). Register here.
  2. A FieldOps application registered in the CNH Developer Portal, with your clientId, clientSecret, and subscriptionKey.
  3. A grower’s refreshToken obtained through the CNHI FieldOps OAuth 2.0 consent flow.
  4. A grower account in the FieldOps environment you’re targeting. Staging and production are distinct customer-facing portals with separate grower accounts — staging is https://mkt.fieldops.caseih.com/, production is https://fieldops.caseih.com/. The grower must log in to the portal that matches your clientEnvironment at least once before completing OAuth.
Existing CNHI (AFS Connect) subscription keys do not work with FieldOps. You must obtain new credentials from the CNH Developer Portal for the FieldOps API.
CNHI FieldOps staging and production are two distinct customer-facing portals with separate grower account systems. They are not the same login with an environment toggle — a grower account in one does not exist in the other.The grower must have an account in, and have logged in at least once to, the portal that matches the clientEnvironment you send before completing OAuth. A production account will not authenticate against staging, and vice versa. (Both of these are separate from the CNH developer portal at develop.cnh.com, which is where you register your application.)

Setup steps

  1. Complete the CNHI FieldOps OAuth 2.0 flow to obtain a refreshToken for the grower’s account.
  2. POST the credentials to Leaf:
  1. Leaf validates the token and begins syncing. Check credential status with GET /users/{leafUserId}/cnhi-field-ops-credentials.

Credentials schema

Create request body: Response:

Endpoints

Base URL: https://api.withleaf.io/services/usermanagement/api

Data sync behavior

CNHI FieldOps supports webhook-based change notifications. When new files, operations, or field changes occur in a grower’s FieldOps account, CNH pushes events to Leaf. This reduces sync latency compared to the legacy CNHI provider, which relies on periodic polling. Leaf manages webhook subscriptions automatically for each connected account. No additional configuration is needed.

Troubleshooting

Use the events endpoint to inspect credential health:
Event logs are retained for 30 days. Once the credential is deleted or disassociated from the Leaf user, the logs are no longer available.
Common issues:
  • Status changes to invalid: The grower may have revoked access or the refresh token expired. Have the grower re-authorize through the FieldOps OAuth flow.
  • STAGE vs. PRODUCTION mismatch: Make sure clientEnvironment matches the environment your CNHI FieldOps app is registered in.
  • Missing or invalid subscription key: FieldOps requires a new subscriptionKey separate from any legacy CNHI keys. Verify you’re passing the correct key.
  • Account mismatch: The grower’s FieldOps account may not exist in the environment you specified. Staging and production identities are separate. For STAGE, confirm the grower account exists at https://mkt.fieldops.caseih.com/; for PRODUCTION, at https://fieldops.caseih.com/.
  • Grower cannot authorize: The grower must have the Farm Manager title in their FieldOps account and must have logged into the grower portal for the target environment at least once before they can complete the OAuth consent flow — https://mkt.fieldops.caseih.com/ for staging or https://fieldops.caseih.com/ for production. (For developer-portal setup, see develop.cnh.com.)

How FieldOps data appears in Leaf’s APIs

CNHI FieldOps data flows through the same Leaf endpoints as every other provider — fields, files, and operations. The provider field on each object identifies the source:
  • Fields from FieldOps: "provider": "CNHIFieldOps"
  • Machine files from FieldOps: "provider": "CNHIFieldOps"
  • Field operations from FieldOps: "provider": "CNHIFieldOps"
Legacy CNHI (AFS Connect) data continues to show "provider": "CNHI". You can filter by provider when querying:
The data structure, output format (GeoJSON/GeoParquet), and field operation merging behavior are identical regardless of provider. The only difference is the provider value on the returned objects.
If a Leaf user has both cnhi-credentials and cnhi-field-ops-credentials attached, the same physical field may appear twice — once with "provider": "CNHI" and once with "provider": "CNHIFieldOps". Remove the legacy credential after confirming the FieldOps connection to avoid duplicates.

What to do next

Last modified on November 23, 2026