Skip to main content
GET
/
api
/
control
/
phytosanitary
/
summary
Get phytosanitary monitoring summary
curl --request GET \
  --url https://api.hydrobit.ag/api/control/phytosanitary/summary \
  --header 'Authorization: Bearer <token>'
{
  "status": "success",
  "scope": "project",
  "range": {
    "startTime": "2026-06-01",
    "endTime": "2026-06-15"
  },
  "projectTimezone": "America/Mexico_City",
  "filters": {
    "companyId": "comp_12345",
    "projectId": "proj_123",
    "sectorId": "sector_001"
  },
  "totalRecords": 42,
  "totalSectors": 3,
  "sectors": [
    {
      "sector_name": "Lote A-1",
      "incidence": 12.5,
      "severity": 18.3,
      "pests_diseases": [
        {
          "pest_disease_name": "Aphids",
          "incidence": 15.5,
          "severity": 25
        }
      ]
    }
  ],
  "totalProjects": 2,
  "projects": [
    {
      "projectId": "proj_123",
      "projectName": "Rancho San Pedro",
      "sectors": [
        {
          "sector_name": "Lote A-1",
          "incidence": 12.5,
          "severity": 18.3,
          "pests_diseases": [
            {
              "pest_disease_name": "Aphids",
              "incidence": 15.5,
              "severity": 25
            }
          ]
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Scoped API token for external B2B endpoints. Send it in the Authorization header as Bearer <keyId>.<token>.

Query Parameters

companyId
string

Company filter. Must match the token's company.

projectId
string

Project filter. Must belong to the token's company.

sectorId
string

Sector filter. Must belong to the token's company.

startTime
string
required

Start date in YYYY-MM-DD format.

Pattern: ^\d{4}-\d{2}-\d{2}$
endTime
string
required

End date in YYYY-MM-DD format.

Pattern: ^\d{4}-\d{2}-\d{2}$

Response

Phytosanitary summary retrieved successfully.

status
enum<string>
Available options:
success
Example:

"success"

scope
enum<string>
Available options:
company,
project,
sector
Example:

"project"

range
object
projectTimezone
string
Example:

"America/Mexico_City"

filters
object
totalRecords
integer
Example:

42

totalSectors
integer
Example:

3

sectors
object[]
totalProjects
integer
Example:

2

projects
object[]