/api/v1/*). Allow ~5 minutes.
51 endpoints across 7 scope families are live: Farms, Crops, Fields/Blocks/Plants, Tasks/Recurring/Templates, Crop Library, Analytics, Market Intelligence. Browse the full surface in the API Reference.
1. Create an API key
- Sign in to your WiseYield dashboard as a Summit-tier user.
- Open Settings → API Keys.
- Click Create API Key, give it a name and pick scopes (for this guide:
farms:readandfarms:write). - Copy the key shown on screen — it’s only displayed once.
2. List your farms
TheGET /api/v1/farms endpoint returns the farms owned by the user behind the API key, paginated.
| Parameter | Type | Default | Notes |
|---|---|---|---|
page | integer ≥ 1 | 1 | Pagination cursor |
limit | integer 1–100 | 20 | Page size |
status | active | inactive | archived | draft | — | Optional filter |
sort | createdAt | name | totalArea | createdAt | Sort field |
order | asc | desc | desc | Sort direction |
3. Create a farm
POST /api/v1/farms creates a farm under the authenticated user’s account.
201 Created response wraps the new farm under data:
Validation rules
| Field | Required | Rules |
|---|---|---|
name | yes | 1–200 characters |
city | yes | 1–200 characters |
country | yes | 1–200 characters |
totalArea | yes | Positive number |
areaUnit | no (default hectare) | One of hectare, acre, feddan |
farmType | no | One of commercial, organic, mixed, specialty |
primaryUse | no | One of crops, livestock, mixed, research |
irrigationSystem | no | One of drip, sprinkler, flood, pivot, manual, none |
latitude | no | −90 to 90 |
longitude | no | −180 to 180 |
boundaries | no | GeoJSON Polygon |
status | no (default active) | One of active, inactive, archived, draft |
409 Conflict.
4. Handle errors gracefully
Errors share a stable shape:| Status | When |
|---|---|
400 | Validation failed — inspect details for per-field messages |
401 | Missing, malformed, expired, or revoked API key |
403 | Key lacks the required scope (e.g. farms:write for POST) |
409 | Conflict (e.g. duplicate farm name) |
429 | Rate-limited — back off until X-RateLimit-Reset |
5xx | Server error — safe to retry with backoff |
Next steps
Authentication
Scopes, rate limits, and security best practices
API Reference
Every endpoint and its parameters
Integration guides
Crop recommendations, yield predictions, weather, webhooks
Webhooks
Real-time event notifications
Need help?
- Email support@wiseyield.co
- Browse the Help Center