Endpoints for form management and record submission
Hydrobit API (2.0.0)
Comprehensive API documentation for the Hydrobit platform.
This API enables management of forms, records, workers, projects, and related data within Hydrobit.
Request
Retrieves aggregated phytosanitary data (pest and disease incidence/severity) for a specified time range.
Requires API token authentication with read:phytosanitary scope via the x-api-key header.
Key features:
- Aggregates data from phytosanitary form records
- Supports filtering by company, project, or sector
- Returns incidence and severity metrics per sector
- Maximum range: 180 days
- Dates must be in YYYY-MM-DD format (local time, no timezone suffix)
- Timezone is automatically resolved from the project settings
Company identifier (at least one of companyId, projectId, or sectorId is required)
Project identifier (at least one of companyId, projectId, or sectorId is required)
Sector identifier (at least one of companyId, projectId, or sectorId is required)
Start date in YYYY-MM-DD format (local time, no timezone suffix)
- Mock serverhttps://docs.hydrobit.ag/_mock/spec/openapi/api/control/phytosanitary/summary
- Production serverhttps://api.hydrobit.ag/api/control/phytosanitary/summary
- IoT serverhttps://iot.hydrobit.ag/api/control/phytosanitary/summary
- MQTT over WebSocket endpointwss://iot.hydrobit.ag/api/control/phytosanitary/summary
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.hydrobit.ag/_mock/spec/openapi/api/control/phytosanitary/summary?companyId=comp_12345&projectId=proj_123§orId=sector_001&startTime=2025-10-01&endTime=2025-10-09' \
-H 'x-api-key: YOUR_API_KEY_HERE'{ "status": "success", "scope": "sector", "range": { "startTime": "2025-10-01", "endTime": "2025-10-09" }, "projectTimezone": "America/Mexico_City", "filters": { "companyId": null, "projectId": null, "sectorId": "sector_001" }, "totalRecords": 12, "totalSectors": 1, "sectors": [ { … } ] }
Request
Retrieves aggregated phytosanitary data (pest and disease incidence/severity) for all projects and sectors belonging to the authenticated company within a specified time range.
Requires API token authentication with read:phytosanitary scope via the x-api-key header.
Key features:
- Automatically uses companyId from the authenticated API token
- Aggregates data from all projects and sectors belonging to the company
- Returns incidence and severity metrics grouped by project and sector
- Maximum range: 180 days
- Dates must be in YYYY-MM-DD format (local time, no timezone suffix)
- Timezone is automatically resolved from the company's projects
- No need to specify companyId, projectId, or sectorId manually
- Mock serverhttps://docs.hydrobit.ag/_mock/spec/openapi/api/control/phytosanitary/company-summary
- Production serverhttps://api.hydrobit.ag/api/control/phytosanitary/company-summary
- IoT serverhttps://iot.hydrobit.ag/api/control/phytosanitary/company-summary
- MQTT over WebSocket endpointwss://iot.hydrobit.ag/api/control/phytosanitary/company-summary
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.hydrobit.ag/_mock/spec/openapi/api/control/phytosanitary/company-summary?startTime=2025-10-01&endTime=2025-10-09' \
-H 'x-api-key: YOUR_API_KEY_HERE'{ "status": "success", "scope": "company", "range": { "startTime": "2025-10-01", "endTime": "2025-10-09" }, "companyTimezone": "America/Monterrey", "companyId": "comp_12345", "totalRecords": 150, "totalProjects": 2, "projects": [ { … }, { … } ] }