Skip to main content
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>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.wiseyield.co/llms.txt

Use this file to discover all available pages before exploring further.

GET https://www.wiseyield.co/api/v1/crop-library/varieties

Authentication

Requires a key with the library:read scope.

Query parameters

adminCropId
string
required
UUID of the parent admin crop.

Response

data
array
Array of variety objects under the admin crop, ordered by varietyName.
curl 'https://www.wiseyield.co/api/v1/crop-library/varieties?adminCropId=aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee' \
  -H "Authorization: Bearer $WISEYIELD_API_KEY"

Errors

StatusWhen
400 VALIDATION_ERRORadminCropId not provided
400 INVALID_IDadminCropId not a valid UUID
401Missing, malformed, expired, or revoked API key
403 INSUFFICIENT_SCOPEKey lacks library:read scope
429 RATE_LIMIT_EXCEEDEDPer-user rate limit reached
5xxServer error