CROPWISE SERVICES
Understanding Core Services APIs πΎ
Welcome to the comprehensive API reference for the Cropwise Core Services. This documentation covers all the essential APIs you need to integrate with our platform for digital agriculture applications.
Introduction
The Cropwise Core Services offers common functionality for digital agriculture apps including OAuth-based Single Sign-On, properties, fields, and more. The API is built on HTTP and is RESTful with predictable resource URLs, appropriate HTTP response codes, and JSON request/response bodies.
This API is described in OpenAPI 3.0 format. Contact Syngenta to obtain OAuth credentials along with URLs for sandbox and production API servers.
Interactive API Documentation
For detailed information about all available endpoints, request/response formats, and authentication requirements, please visit our interactive API documentation.
Platform Architecture
The Cropwise Core Services is built around a hierarchical structure that mirrors real-world agricultural organization:
π’ Workspace
βββ ποΈ Organization
βββ ποΈ Property
βββ πΎ Field
Core API Sections
Organizations API
The Organizations API allows you to create and manage organizations within your workspace. Organizations represent business entities or farming operations.
View Organizations API Documentation β
Properties API
The Properties API enables you to manage farming locations and land parcels. Properties are containers for fields and include geographical information.
View Properties API Documentation β
Fields API
The Fields API provides functionality for managing individual cultivation areas. Fields are the basic units for agricultural operations.
View Fields API Documentation β
Error Handling
Error Response Format
{
"timestamp": "2024-01-15T10:30:00Z",
"status": 404,
"error": "Not Found",
"code": "EORG011",
"message": "Organization does not exist",
"path": "/v2/orgs/123e4567-e89b-12d3-a456-426614174000",
"errors": [
{
"field": "id",
"reason": "Organization with ID 123e4567-e89b-12d3-a456-426614174000 not found"
}
]
}
Error Code Format
All error messages are mapped with structured error codes in the format: E{3 character context}{3 digit index}
Common Error Codes
Code | Description | Context |
---|---|---|
EARG001 | Missing field on request body | Argument validation |
EIAM006 | Invalid authentication | Identity & Access |
EORG011 | Organization does not exist | Organization management |
EPRO007 | Property does not exist | Property management |
EFLD003 | Field does not exist | Field management |
HTTP Status Codes
Code | Description | When It Occurs |
---|---|---|
200 | OK | Successful GET, PUT requests |
201 | Created | Successful POST requests |
204 | No Content | Successful DELETE requests |
400 | Bad Request | Invalid request data |
401 | Unauthorized | Missing or invalid authentication |
403 | Forbidden | Insufficient permissions |
404 | Not Found | Resource not found |
409 | Conflict | Resource already exists |
429 | Too Many Requests | Rate limiting |
Data Formats
Standard Formats
- Request/Response: JSON format
- Geographic Data: GeoJSON for boundaries and coordinates
- Dates: ISO 8601 format for date-times (e.g., "2024-01-15T16:45:00Z")
- IDs: UUID format (e.g., "987e6543-e89b-12d3-a456-426614174003")
Geographic Data Standards
- Format: GeoJSON (RFC 7946)
- Datum: WGS84
- Precision: Decimal degrees
- Order: [longitude, latitude] (GeoJSON standard)
Quick Start Examples
For complete request/response examples and interactive testing, visit our comprehensive OpenAPI documentation:
π Interactive API Documentation β - Test all endpoints with live examples
Getting Started Workflow
- Create Organization β - Set up your farming business entity
- Create Property β - Add farming locations
- Create Field β - Define cultivation areas
Each endpoint includes:
- Complete request/response schemas
- Required and optional parameters
- Authentication requirements
- Error codes and responses
- Interactive examples you can test directly
Rate Limiting
API requests are subject to rate limiting to ensure fair usage and system stability.
Response Headers
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 99
X-RateLimit-Reset: 1640995200
Support Resources
Documentation
Support
- π§ Contact Syngenta Digital for API access and support
- π OpenAPI Specification: Download
Ready to start building? Begin with creating your first organization β, explore property management β, or manage fields β.