curl 'https://www.wiseyield.co/api/v1/crop-library/varieties?adminCropId=aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee' \
-H "Authorization: Bearer $WISEYIELD_API_KEY"
{
"data": [
{
"id": "<string>",
"adminCropId": "<string>",
"varietyName": "<string>",
"scientificName": {},
"description": {},
"daysToMaturity": {},
"yieldOverride": {},
"climateOverride": {},
"createdAt": "<string>"
}
]
}Crop Library
List varieties
List varieties for a given admin crop.
GET
/
api
/
v1
/
crop-library
/
varieties
curl 'https://www.wiseyield.co/api/v1/crop-library/varieties?adminCropId=aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee' \
-H "Authorization: Bearer $WISEYIELD_API_KEY"
{
"data": [
{
"id": "<string>",
"adminCropId": "<string>",
"varietyName": "<string>",
"scientificName": {},
"description": {},
"daysToMaturity": {},
"yieldOverride": {},
"climateOverride": {},
"createdAt": "<string>"
}
]
}GET https://www.wiseyield.co/api/v1/crop-library/varieties
Authentication
Requires a key with thelibrary:read scope.
Query parameters
string
required
UUID of the parent admin crop.
Response
array
Array of variety objects under the admin crop, ordered by
varietyName.Show Variety
Show Variety
string
UUID.
string
Parent admin crop UUID.
string
Variety name (e.g.
"Medjool").string | null
Subspecific name if applicable.
string | null
Free text.
integer | null
Variety-specific maturity (overrides crop default).
object | null
Variety-specific yield data.
object | null
Variety-specific climate tolerances.
string
ISO 8601.
curl 'https://www.wiseyield.co/api/v1/crop-library/varieties?adminCropId=aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee' \
-H "Authorization: Bearer $WISEYIELD_API_KEY"
Errors
| Status | When |
|---|---|
400 VALIDATION_ERROR | adminCropId not provided |
400 INVALID_ID | adminCropId not a valid UUID |
401 | Missing, malformed, expired, or revoked API key |
403 INSUFFICIENT_SCOPE | Key lacks library:read scope |
429 RATE_LIMIT_EXCEEDED | Per-user rate limit reached |
5xx | Server error |