{
  "opencollection": "1.0.0",
  "info": {
    "name": "Climate FieldView Platform API",
    "version": "4.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://api.climate.com/api/oauth/authorize",
      "accessTokenUrl": "https://api.climate.com/api/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Fields",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List all fields",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.climate.com/api/v4/fields",
            "params": [
              {
                "name": "updatedAfter",
                "value": "",
                "type": "query",
                "description": "Return only fields updated after this ISO 8601 timestamp"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns a paginated list of fields belonging to the authenticated user. Fields include boundaries stored as GeoJSON and associated metadata."
        },
        {
          "info": {
            "name": "Get a specific field",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.climate.com/api/v4/fields/:fieldId",
            "params": [
              {
                "name": "fieldId",
                "value": "",
                "type": "path",
                "description": "Unique field identifier"
              }
            ]
          },
          "docs": "Returns detailed information for a single field including its GeoJSON boundary."
        },
        {
          "info": {
            "name": "Get field boundary as GeoJSON",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.climate.com/api/v4/fields/:fieldId/boundary",
            "params": [
              {
                "name": "fieldId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns the field boundary polygon as a GeoJSON Feature object."
        },
        {
          "info": {
            "name": "Obtain OAuth2 access token",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.climate.com/api/oauth/token",
            "body": {
              "type": "form-urlencoded",
              "data": [
                {
                  "name": "grant_type",
                  "value": ""
                },
                {
                  "name": "code",
                  "value": ""
                },
                {
                  "name": "refresh_token",
                  "value": ""
                },
                {
                  "name": "redirect_uri",
                  "value": ""
                },
                {
                  "name": "client_id",
                  "value": ""
                },
                {
                  "name": "client_secret",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Exchange an authorization code or refresh token for an OAuth2 access token. Supports authorization_code and refresh_token grant types."
        }
      ]
    },
    {
      "info": {
        "name": "Planting",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List as-planted activity layers",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.climate.com/api/v4/layers/asPlanted",
            "params": [
              {
                "name": "fieldId",
                "value": "",
                "type": "query",
                "description": "Filter layers for a specific field"
              },
              {
                "name": "occurredBefore",
                "value": "",
                "type": "query",
                "description": "Return layers for activities that occurred before this date (ISO 8601)"
              },
              {
                "name": "occurredAfter",
                "value": "",
                "type": "query",
                "description": "Return layers for activities that occurred after this date (ISO 8601)"
              },
              {
                "name": "updatedAfter",
                "value": "",
                "type": "query",
                "description": "Return only layers updated after this timestamp"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns all as-planted layers (planting activity records) accessible to the authenticated user. Each layer is associated with one or more field IDs and includes crop and seed variety data."
        },
        {
          "info": {
            "name": "Get a specific as-planted layer",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.climate.com/api/v4/layers/asPlanted/:layerId",
            "params": [
              {
                "name": "layerId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns detailed metadata for a single as-planted activity layer."
        },
        {
          "info": {
            "name": "Download as-planted layer spatial data",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.climate.com/api/v4/layers/asPlanted/:layerId/contents",
            "params": [
              {
                "name": "layerId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns the spatial raster or vector data for an as-planted layer. Response is a download URL or binary content for the planting map."
        }
      ]
    },
    {
      "info": {
        "name": "Harvest",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List as-harvested yield layers",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.climate.com/api/v4/layers/asHarvested",
            "params": [
              {
                "name": "fieldId",
                "value": "",
                "type": "query"
              },
              {
                "name": "occurredBefore",
                "value": "",
                "type": "query"
              },
              {
                "name": "occurredAfter",
                "value": "",
                "type": "query"
              },
              {
                "name": "updatedAfter",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns all as-harvested layers (yield data) accessible to the authenticated user. Supports filtering by field, crop type, and date range."
        },
        {
          "info": {
            "name": "Get a specific as-harvested layer",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.climate.com/api/v4/layers/asHarvested/:layerId",
            "params": [
              {
                "name": "layerId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns detailed metadata for a single as-harvested yield layer."
        }
      ]
    },
    {
      "info": {
        "name": "Application",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List as-applied agrochemical layers",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.climate.com/api/v4/layers/asApplied",
            "params": [
              {
                "name": "fieldId",
                "value": "",
                "type": "query"
              },
              {
                "name": "occurredAfter",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns all as-applied layers (fertilizer, pesticide, and herbicide application records)."
        }
      ]
    },
    {
      "info": {
        "name": "Soil Sampling",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List soil sampling results",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.climate.com/api/v4/soilSampling/results",
            "params": [
              {
                "name": "fieldId",
                "value": "",
                "type": "query"
              },
              {
                "name": "updatedAfter",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns soil sampling results including nutrient analysis and pH measurements for fields."
        }
      ]
    }
  ],
  "bundled": true
}