curl 'https://www.wiseyield.co/api/v1/crop-library/crop-details?adminCropId=aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee' \
-H "Authorization: Bearer $WISEYIELD_API_KEY"
curl 'https://www.wiseyield.co/api/v1/crop-library/crop-details?name=tomato' \
-H "Authorization: Bearer $WISEYIELD_API_KEY"
Crop Library
Get crop details
Fetch a single admin crop’s full reference data by ID or name.
GET
/
api
/
v1
/
crop-library
/
crop-details
curl 'https://www.wiseyield.co/api/v1/crop-library/crop-details?adminCropId=aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee' \
-H "Authorization: Bearer $WISEYIELD_API_KEY"
curl 'https://www.wiseyield.co/api/v1/crop-library/crop-details?name=tomato' \
-H "Authorization: Bearer $WISEYIELD_API_KEY"
GET https://www.wiseyield.co/api/v1/crop-library/crop-details
Authentication
Requires a key with thelibrary:read scope.
Query parameters
One ofadminCropId or name is required.
string
UUID of the admin crop.
string
Crop name (case-insensitive exact match).
Response
Returns the admin crop wrapped underdata. See Search crops for the full field reference.
curl 'https://www.wiseyield.co/api/v1/crop-library/crop-details?adminCropId=aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee' \
-H "Authorization: Bearer $WISEYIELD_API_KEY"
curl 'https://www.wiseyield.co/api/v1/crop-library/crop-details?name=tomato' \
-H "Authorization: Bearer $WISEYIELD_API_KEY"
Errors
| Status | When |
|---|---|
400 VALIDATION_ERROR | Neither adminCropId nor name provided |
400 INVALID_ID | adminCropId is not a valid UUID |
401 | Missing, malformed, expired, or revoked API key |
403 INSUFFICIENT_SCOPE | Key lacks library:read scope |
404 NOT_FOUND | No matching admin crop |
429 RATE_LIMIT_EXCEEDED | Per-user rate limit reached |
5xx | Server error |