The Input Validator API gives you access to standardized product, variety, and tank mix databases. It also matches the raw product names found in machine files against known products, so you can identify what was actually applied or planted in a field operation.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.
How it works
Leaf maintains databases of agricultural products sourced from Agrian, CDMS, and John Deere. When a machine file contains a product name like “ams” or “counter,” the matching endpoint finds the closest known product and returns it with a confidence score. Matching has two statuses:PREDICTED— Leaf’s best guess, returned with a numericscore. Higher scores indicate stronger matches.VALIDATED— A human has confirmed the match is correct, either by approving the prediction or by manually assigning a different product.
Key concepts
Products — Chemical, fertilizer, or additive records with registration numbers, active ingredients, labels, and physical state. Products come from three label providers: Agrian, CDMS, and John Deere. Agrian and CDMS products are available globally; John Deere products are scoped to the Leaf user level. Summarized products — Product names extracted directly from a Leaf user’s machine files, before any matching. Useful for seeing exactly what names the monitor recorded. Varieties — Seed variety records with crop type, company name, and status. Currently sourced from John Deere at the Leaf user level. Tank mixes — Predefined combinations of products with a carrier and one or more components, including solution rate and target crops. Sourced from John Deere. Product matching — Given a field operation ID, Leaf returns the best product match for each raw product name in that operation. You can validate matches, override them, and view the change history.What to do next
- Input Validator API Reference — Full endpoint details for products, varieties, tank mixes, and product matching.

