API Reference
Crop Health Insights
Crop health score, stress level, and yield prediction per field, derived from satellite observations.
get
/crop-health-insights/field/{field_id}Get field crop health insights by field id
Requires an
Authorization: Bearer header.Parameters
field_idstringpathrequiredResponse 200
insightsCropHealthInsights[]requiredtotalintegerrequiredGET /crop-health-insights/field/{field_id}
curl -X GET "https://api.cropsense.africa/crop-health-insights/field/8b6e1a2f-2d4c-4e9a-9b0f-1c7d3e5a6f42" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Example response · 200
{
"insights": [
{
"insight_id": "insight_id",
"farm_id": "3fa2c9e1-6b3a-4d2e-9c11-4a8e5f9d2b7a",
"field_id": "8b6e1a2f-2d4c-4e9a-9b0f-1c7d3e5a6f42",
"date": "2026-06-15T09:30:00Z",
"health_score": 1.5,
"stress_level": 1.5,
"yield_prediction": 1.5,
"is_active": true,
"created_at": "2026-06-15T09:30:00Z",
"updated_at": "2026-06-15T09:30:00Z"
}
],
"total": 1
}get
/crop-health-insights/field/{field_id}/latestGet latest crop health insight by field id
Requires an
Authorization: Bearer header.Parameters
field_idstringpathrequiredResponse 200
insight_idstringrequiredfarm_idstringrequiredfield_idstringrequireddatestring<date-time>requiredhealth_scorenumberrequiredstress_levelnumberrequiredyield_predictionnumberrequiredis_activebooleanrequiredcreated_atstring<date-time>requiredupdated_atstring<date-time>requiredGET /crop-health-insights/field/{field_id}/latest
curl -X GET "https://api.cropsense.africa/crop-health-insights/field/8b6e1a2f-2d4c-4e9a-9b0f-1c7d3e5a6f42/latest" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Example response · 200
{
"insight_id": "insight_id",
"farm_id": "3fa2c9e1-6b3a-4d2e-9c11-4a8e5f9d2b7a",
"field_id": "8b6e1a2f-2d4c-4e9a-9b0f-1c7d3e5a6f42",
"date": "2026-06-15T09:30:00Z",
"health_score": 1.5,
"stress_level": 1.5,
"yield_prediction": 1.5,
"is_active": true,
"created_at": "2026-06-15T09:30:00Z",
"updated_at": "2026-06-15T09:30:00Z"
}get
/crop-health-insights/{insight_id}Get a field crop health insight by id
Get a crop health insight by id
Requires an
Authorization: Bearer header.Parameters
insight_idstringpathrequiredResponse 200
insight_idstringrequiredfarm_idstringrequiredfield_idstringrequireddatestring<date-time>requiredhealth_scorenumberrequiredstress_levelnumberrequiredyield_predictionnumberrequiredis_activebooleanrequiredcreated_atstring<date-time>requiredupdated_atstring<date-time>requiredGET /crop-health-insights/{insight_id}
curl -X GET "https://api.cropsense.africa/crop-health-insights/insight_id" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Example response · 200
{
"insight_id": "insight_id",
"farm_id": "3fa2c9e1-6b3a-4d2e-9c11-4a8e5f9d2b7a",
"field_id": "8b6e1a2f-2d4c-4e9a-9b0f-1c7d3e5a6f42",
"date": "2026-06-15T09:30:00Z",
"health_score": 1.5,
"stress_level": 1.5,
"yield_prediction": 1.5,
"is_active": true,
"created_at": "2026-06-15T09:30:00Z",
"updated_at": "2026-06-15T09:30:00Z"
}