curl 'https://www.wiseyield.co/api/v1/templates?category=irrigation' \
-H "Authorization: Bearer $WISEYIELD_API_KEY"
{
"data": [
{
"id": "<string>",
"name": "<string>",
"description": {},
"farmId": {},
"category": "<string>",
"priority": "<string>",
"estimatedDuration": {},
"defaultAssignee": {},
"isGlobal": true,
"isActive": true,
"createdBy": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"pagination": {}
}Task Templates
List templates
List task templates accessible to the user (own + global by default).
GET
/
api
/
v1
/
templates
curl 'https://www.wiseyield.co/api/v1/templates?category=irrigation' \
-H "Authorization: Bearer $WISEYIELD_API_KEY"
{
"data": [
{
"id": "<string>",
"name": "<string>",
"description": {},
"farmId": {},
"category": "<string>",
"priority": "<string>",
"estimatedDuration": {},
"defaultAssignee": {},
"isGlobal": true,
"isActive": true,
"createdBy": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"pagination": {}
}GET https://www.wiseyield.co/api/v1/templates
Authentication
Requires a key with thetasks:read scope. See Authentication.
Query parameters
integer
default:"1"
Page number (≥ 1).
integer
default:"20"
Results per page (1–100).
string
Limit to templates either bound to this farm OR farm-agnostic.
string
Filter by category (one of the 10 task categories).
string
default:"true"
"false" to exclude global templates and only return user-owned ones.Response
array
Array of template objects.
Show Template
Show Template
string
UUID.
string
Template name.
string | null
Free text.
string | null
Parent farm UUID.
null = farm-agnostic.string
One of
planting, irrigation, fertilization, pest_control, harvesting, soil_management, maintenance, planning, inspection, other.string
Default priority for tasks created from this template.
string | null
Free text.
string | null
Default assignee for new tasks.
boolean
Visible to all users when
true.boolean
Templates that are inactive can’t be applied.
string
Creator user ID.
string
ISO 8601.
string
ISO 8601.
object
Offset pagination envelope.
curl 'https://www.wiseyield.co/api/v1/templates?category=irrigation' \
-H "Authorization: Bearer $WISEYIELD_API_KEY"
Errors
| Status | When |
|---|---|
401 | Missing, malformed, expired, or revoked API key |
403 INSUFFICIENT_SCOPE | Key lacks tasks:read scope |
429 RATE_LIMIT_EXCEEDED | Per-user rate limit reached |
5xx | Server error |