Use these endpoints to upload prescription (Rx) maps to provider accounts. Depending on the provider, you can also list existing prescriptions or download them.
For conceptual background, see Prescriptions.
The Prescriptions API is currently in beta. Endpoints, request/response schemas, and behavior may change without notice.
Base URL
Endpoints
Raven Slingshot
Upload prescription to Raven Slingshot
POST /users/{leafUserId}/ravenSlingshot
Uploads a prescription file using the Raven Slingshot credentials of a Leaf user.
The file must be a .zip containing one each of .shp, .dbf, and .shx — all sharing the same base name. The zip cannot contain subfolders.
Request
Response
List prescriptions from Raven Slingshot
GET /users/{leafUserId}/ravenSlingshot
Lists existing prescriptions available in Raven Slingshot for the Leaf user.
Request
Response
John Deere
Upload prescription to John Deere
POST /users/{leafUserId}/johnDeere
Uploads a prescription file using the John Deere credentials of a Leaf user.
The organizationId query parameter is required and must be the organization ID from John Deere.
The file must be a .zip containing a folder named Rx/ with one each of .shp, .dbf, and .shx — all sharing the same base name.
Parameters
Request
Response
List prescriptions from John Deere
GET /users/{leafUserId}/johnDeere
Lists existing prescriptions available in John Deere for the Leaf user.
Parameters
Request
Response
Download prescription from John Deere
GET /users/{leafUserId}/johnDeere/download
Downloads a prescription by its John Deere file ID. The fileId parameter refers to the ID on the John Deere side.
Parameters
Request
Response
CNHi
Upload prescription to CNHi
POST /users/{leafUserId}/cnhi
Uploads a prescription file using the CNHi credentials of a Leaf user.
The companyId query parameter is required. You can obtain this value from the grower endpoints using the providerOrganizationId property.
The file must be a .zip containing one each of .shp, .dbf, and .shx — all sharing the same base name. No subfolders.
Parameters
Request
Response
List prescriptions from CNHi
GET /users/{leafUserId}/cnhi
Lists existing prescriptions available in CNHi for the Leaf user.
Parameters
Request
Response
Climate FieldView
Upload prescription to Climate FieldView
POST /users/{leafUserId}/climateFieldView
Uploads a prescription file using the Climate FieldView credentials of a Leaf user.
The file must be a .zip containing one each of .shp, .dbf, and .shx — all sharing the same base name. No subfolders.
Request
Response
Trimble
Upload prescription to Trimble
POST /users/{leafUserId}/trimble
Uploads a prescription file using the Trimble credentials of a Leaf user.
The organizationId, rateColumn, and rateUnit query parameters are required.
rateColumn must be the column name from the Shapefile. rateUnit must be one of the supported units listed below.
The file must be a .zip containing one each of .shp, .dbf, and .shx — all sharing the same base name. No subfolders.
Parameters
Request
Response
AgLeader
Upload prescription to AgLeader
POST /users/{leafUserId}/agleader
Uploads a prescription file using the AgLeader credentials of a Leaf user.
The file must be a .zip containing one each of .shp, .dbf, and .shx — all sharing the same base name. No subfolders.
Request
Response