Get raw phytosanitary records for the authenticated company
curl --request GET \
--url https://api.hydrobit.ag/api/control/phytosanitary/company-records \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.hydrobit.ag/api/control/phytosanitary/company-records"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hydrobit.ag/api/control/phytosanitary/company-records', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hydrobit.ag/api/control/phytosanitary/company-records",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.hydrobit.ag/api/control/phytosanitary/company-records"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.hydrobit.ag/api/control/phytosanitary/company-records")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hydrobit.ag/api/control/phytosanitary/company-records")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "success",
"range": {
"startTime": "2026-06-01",
"endTime": "2026-06-15"
},
"companyTimezone": "America/Monterrey",
"companyId": "comp_12345",
"totalRecords": 3,
"records": [
{
"record_id": "rec_abc123",
"created_at": "2026-06-05T14:30:00.000Z",
"record_time": "2026-06-05T14:25:00.000Z",
"user_id": "user_789",
"user_name": "Juan Perez",
"projectId": "proj_123",
"project_name": "Rancho San Pedro",
"sectorId": "sector_001",
"sector_name": "Lote A-1",
"crop": "Blueberry",
"variety": "Biloxi",
"latitude": 19.4326,
"longitude": -99.1332,
"responses": [
{
"response_id": "resp_001",
"variable_name": "aphids",
"variable_type": "pest",
"name": "Aphids",
"value_number": 12,
"severity": 3
}
]
}
]
}{
"error": "Internal server error",
"message": "Detailed error message"
}{
"error": "Internal server error",
"message": "Detailed error message"
}{
"error": "Internal server error",
"message": "Detailed error message"
}{
"error": "Internal server error",
"message": "Detailed error message"
}{
"error": "Internal server error",
"message": "Detailed error message"
}Phytosanitary
Get raw phytosanitary records for the authenticated company
Retrieves individual phytosanitary records for the authenticated token’s company within a date range.
Requires API token authentication with the read:phytosanitary scope:
Authorization: Bearer <keyId>.<token>.
GET
/
api
/
control
/
phytosanitary
/
company-records
Get raw phytosanitary records for the authenticated company
curl --request GET \
--url https://api.hydrobit.ag/api/control/phytosanitary/company-records \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.hydrobit.ag/api/control/phytosanitary/company-records"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hydrobit.ag/api/control/phytosanitary/company-records', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hydrobit.ag/api/control/phytosanitary/company-records",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.hydrobit.ag/api/control/phytosanitary/company-records"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.hydrobit.ag/api/control/phytosanitary/company-records")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hydrobit.ag/api/control/phytosanitary/company-records")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "success",
"range": {
"startTime": "2026-06-01",
"endTime": "2026-06-15"
},
"companyTimezone": "America/Monterrey",
"companyId": "comp_12345",
"totalRecords": 3,
"records": [
{
"record_id": "rec_abc123",
"created_at": "2026-06-05T14:30:00.000Z",
"record_time": "2026-06-05T14:25:00.000Z",
"user_id": "user_789",
"user_name": "Juan Perez",
"projectId": "proj_123",
"project_name": "Rancho San Pedro",
"sectorId": "sector_001",
"sector_name": "Lote A-1",
"crop": "Blueberry",
"variety": "Biloxi",
"latitude": 19.4326,
"longitude": -99.1332,
"responses": [
{
"response_id": "resp_001",
"variable_name": "aphids",
"variable_type": "pest",
"name": "Aphids",
"value_number": 12,
"severity": 3
}
]
}
]
}{
"error": "Internal server error",
"message": "Detailed error message"
}{
"error": "Internal server error",
"message": "Detailed error message"
}{
"error": "Internal server error",
"message": "Detailed error message"
}{
"error": "Internal server error",
"message": "Detailed error message"
}{
"error": "Internal server error",
"message": "Detailed error message"
}Authorizations
Scoped API token for external B2B endpoints. Send it in the
Authorization header as Bearer <keyId>.<token>.
Query Parameters
Start date in YYYY-MM-DD format.
Pattern:
^\d{4}-\d{2}-\d{2}$End date in YYYY-MM-DD format.
Pattern:
^\d{4}-\d{2}-\d{2}$Response
Company phytosanitary records retrieved successfully.
⌘I