API Reference

Build powerful agricultural applications with the WiseYield API.

Authentication

The WiseYield API uses API keys to authenticate requests. You can view and manage your API keys in the dashboard.

Authorization Header
Authorization: Bearer YOUR_API_KEY

Endpoints

GET/v1/farms

List all farms associated with your account.

GET/v1/crops/{id}/health

Get health metrics for a specific crop.

POST/v1/analysis

Submit a new soil analysis request.

Example Request
curl -X POST https://www.wiseyield.co/api/v1/analysis \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "farm_id": "farm_123",
    "crop_type": "wheat",
    "soil_data": {
      "ph": 6.5,
      "nitrogen": 45,
      "phosphorus": 22
    }
  }'