Skip to main content
GET
/
api
/
control
/
phytosanitary
/
company-summary
Get phytosanitary summary for the authenticated company
curl --request GET \
  --url https://api.hydrobit.ag/api/control/phytosanitary/company-summary \
  --header 'Authorization: Bearer <token>'
{
  "status": "success",
  "scope": "company",
  "range": {
    "startTime": "2026-06-01",
    "endTime": "2026-06-15"
  },
  "companyTimezone": "America/Monterrey",
  "companyId": "comp_12345",
  "totalRecords": 150,
  "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

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

Company phytosanitary summary retrieved successfully.

status
enum<string>
Available options:
success
Example:

"success"

scope
enum<string>
Available options:
company
Example:

"company"

range
object
companyTimezone
string
Example:

"America/Monterrey"

companyId
string
Example:

"comp_12345"

totalRecords
integer
Example:

150

totalProjects
integer
Example:

2

projects
object[]