Detections and reports
What the drones saw, and the incident report Ochio writes the moment each mission ends.
The detection object
Something a vehicle saw: what it is, how sure the AI is, and where. A vehicle's camera makes them while it's over a target or flying a patrol.
| Field | Holds |
|---|---|
id | The detection's id, det_…. |
class | What it is, like person. |
confidence | How sure the AI is, 0 to 1. |
location | Where it is: {"lat", "lon"}. |
zone_id | The zone it's in. |
source | What saw it, like vehicle:drone-2. |
mission_id, vehicle_id | The mission and the vehicle. |
expires_at, expired | Detections go stale: after 10 minutes, by default, expired turns true. |
created_at | When it was seen. |
{
"id": "det_ff3034b71f11",
"class": "person",
"confidence": 0.83,
"location": {
"lat": 38.5007,
"lon": -97.9953
},
"zone_id": "east-gate",
"source": "vehicle:drone-2",
"mission_id": "msn_e58e7523d2b5",
"vehicle_id": "drone-2",
"expired": false,
"expires_at": "2026-10-19T21:43:47.392Z",
"created_at": "2026-10-19T21:33:47.392Z"
}List detections
Detections, newest first. A detection.created event announces each one as it happens.
{"data": [...]} with a detection for each.
curl "$OCHIO_URL/v1/detections?mission_id=msn_e58e7523d2b5" \
-H "Authorization: Bearer $OCHIO_API_KEY"import os
import requests
r = requests.get(
f"{os.environ['OCHIO_URL']}/v1/detections",
headers={"Authorization": f"Bearer {os.environ['OCHIO_API_KEY']}"},
params={
"mission_id": "msn_e58e7523d2b5"
},
)
print(r.status_code, r.json())const res = await fetch(`${process.env.OCHIO_URL}/v1/detections?mission_id=msn_e58e7523d2b5`, {
headers: { Authorization: `Bearer ${process.env.OCHIO_API_KEY}` },
});
console.log(res.status, await res.json());{
"data": [
{
"id": "det_ff3034b71f11",
"class": "person",
"confidence": 0.83,
"location": {
"lat": 38.5007,
"lon": -97.9953
},
"zone_id": "east-gate",
"source": "vehicle:drone-2",
"mission_id": "msn_e58e7523d2b5",
"vehicle_id": "drone-2",
"expired": false,
"expires_at": "2026-10-19T21:43:47.392Z",
"created_at": "2026-10-19T21:33:47.392Z"
}
]
}The report object
Ochio writes an incident report the moment a mission ends as completed, failed, cancelled or denied, and announces it with report.ready. A mission the safety gate refused has none.
| Part | Holds |
|---|---|
title, summary | A headline, and two or three plain sentences: what triggered it, what flew, what it found. |
outcome | status and reason. |
trigger | The alert or silent sensor, or who requested it, with a sentence in text. |
timeline | Each step with its time: the alert, the request, approval, launch, arrival, detections, landing. |
detections | What was seen, where, when and how sure. |
vehicle | Which vehicle flew, its battery at launch and at the end, distance and flight time. |
recommendations | Next steps, like having security confirm a person, or checking a silent sensor's power. |
target | What the mission flew to. |
{
"id": "rpt_ba61bdbb7b36",
"mission_id": "msn_e58e7523d2b5",
"title": "Inspection: East gate motion sensor 2",
"outcome": {
"status": "completed",
"reason": "Drone 2 landed back on its dock"
},
"summary": "Drone 2 checked a critical motion alert from East gate motion sensor 2 and saw 1 person. It landed back on its dock with 90% battery after flying 1.0 km.",
"trigger": {
"kind": "alert",
"text": "A critical motion alert from East gate motion sensor 2",
"rule_id": "perimeter-motion",
"sensor_id": "east-gate-pir-02",
"alert_ids": [
"alt_5037deb6aeee"
],
"requested_by": "rule:perimeter-motion",
"time": "2026-10-19T21:33:03.883Z"
},
"timeline": [
{
"time": "2026-10-19T21:33:03.882Z",
"text": "Motion alert (critical) from East gate motion sensor 2"
},
{
"time": "2026-10-19T21:33:03.883Z",
"text": "Mission requested by rule:perimeter-motion"
},
{
"time": "2026-10-19T21:33:03.883Z",
"text": "Drone 2 launched toward East gate motion sensor 2"
},
{
"time": "2026-10-19T21:33:47.392Z",
"text": "Drone 2 on scene"
},
{
"time": "2026-10-19T21:33:47.392Z",
"text": "Person detected (83%), 34 m from the target"
},
{
"time": "2026-10-19T21:34:02.486Z",
"text": "Drone 2 heading home"
},
{
"time": "2026-10-19T21:34:46.141Z",
"text": "Drone 2 landed; mission complete"
}
],
"detections": [
{
"id": "det_ff3034b71f11",
"class": "person",
"confidence": 0.83,
"location": {
"lat": 38.5007,
"lon": -97.9953
},
"zone_id": "east-gate",
"source": "vehicle:drone-2",
"mission_id": "msn_e58e7523d2b5",
"vehicle_id": "drone-2",
"expired": false,
"expires_at": "2026-10-19T21:43:47.392Z",
"created_at": "2026-10-19T21:33:47.392Z"
}
],
"vehicle": {
"id": "drone-2",
"name": "Drone 2",
"battery_start_pct": 100.0,
"battery_end_pct": 89.8,
"distance_flown_m": 1047,
"flight_time_s": 102
},
"recommendations": [
"Have security confirm the 1 person seen near East gate (first sighting at 38.50070, -97.99530, 21:33:47 UTC)."
],
"target": {
"kind": "alert",
"alert_id": "alt_5037deb6aeee",
"sensor_id": "east-gate-pir-02",
"location": {
"lat": 38.5005,
"lon": -97.995
},
"zone_id": "east-gate",
"name": "East gate motion sensor 2"
},
"created_at": "2026-10-19T21:34:46.141Z"
}List reports
Reports, newest first, in short form.
Query{"data": [...]}, each with id, mission_id, title, outcome, summary and created_at.
curl "$OCHIO_URL/v1/reports" \
-H "Authorization: Bearer $OCHIO_API_KEY"import os
import requests
r = requests.get(
f"{os.environ['OCHIO_URL']}/v1/reports",
headers={"Authorization": f"Bearer {os.environ['OCHIO_API_KEY']}"},
)
print(r.status_code, r.json())const res = await fetch(`${process.env.OCHIO_URL}/v1/reports`, {
headers: { Authorization: `Bearer ${process.env.OCHIO_API_KEY}` },
});
console.log(res.status, await res.json());{
"data": [
{
"id": "rpt_91632184d289",
"mission_id": "msn_ea2ec77fdfaa",
"title": "Inspection: North fence motion sensor",
"outcome": {
"status": "completed",
"reason": "Drone 2 landed back on its dock"
},
"summary": "Drone 2 checked on North fence motion sensor, which had stopped checking in, and saw no one. It landed back on its dock with 20% battery after flying 1.1 km.",
"created_at": "2026-10-19T21:35:12.126Z"
},
{
"id": "rpt_97ba18de7a7a",
"mission_id": "msn_ac7bd7106919",
"title": "Inspection: Generator yard",
"outcome": {
"status": "completed",
"reason": "Drone 1 landed back on its dock"
},
"summary": "Drone 1 inspected Generator yard after a request from key:partner (Check the generator yard before the shift change) and saw no one. It landed back on its dock with 84% battery after flying 722 m.",
"created_at": "2026-10-19T21:35:01.666Z"
},
{
"id": "rpt_3d5775dba56f",
"mission_id": "msn_7c755ad98d22",
"title": "Inspection: Generator yard door",
"outcome": {
"status": "cancelled",
"reason": "key:operator cancelled it (Maintenance crew on site)"
},
"summary": "The inspect mission to Generator yard door after a medium door_open alert from Generator yard door was cancelled: key:operator cancelled it (Maintenance crew on site).",
"created_at": "2026-10-19T21:34:46.533Z"
}
]
}Get a report
One report, as JSON, or as a page a person can read and print. See an example page.
Pathrpt_….json (the default) or html for the printable page with a map of the flight.The report, or the HTML page.
Errors| Status | Code | When |
|---|---|---|
404 | not_found | No report with this id. |
curl "$OCHIO_URL/v1/reports/rpt_ba61bdbb7b36" \
-H "Authorization: Bearer $OCHIO_API_KEY"import os
import requests
r = requests.get(
f"{os.environ['OCHIO_URL']}/v1/reports/rpt_ba61bdbb7b36",
headers={"Authorization": f"Bearer {os.environ['OCHIO_API_KEY']}"},
)
print(r.status_code, r.json())const res = await fetch(`${process.env.OCHIO_URL}/v1/reports/rpt_ba61bdbb7b36`, {
headers: { Authorization: `Bearer ${process.env.OCHIO_API_KEY}` },
});
console.log(res.status, await res.json());{
"id": "rpt_ba61bdbb7b36",
"mission_id": "msn_e58e7523d2b5",
"title": "Inspection: East gate motion sensor 2",
"outcome": {
"status": "completed",
"reason": "Drone 2 landed back on its dock"
},
"summary": "Drone 2 checked a critical motion alert from East gate motion sensor 2 and saw 1 person. It landed back on its dock with 90% battery after flying 1.0 km.",
"trigger": {
"kind": "alert",
"text": "A critical motion alert from East gate motion sensor 2",
"rule_id": "perimeter-motion",
"sensor_id": "east-gate-pir-02",
"alert_ids": [
"alt_5037deb6aeee"
],
"requested_by": "rule:perimeter-motion",
"time": "2026-10-19T21:33:03.883Z"
},
"timeline": [
{
"time": "2026-10-19T21:33:03.882Z",
"text": "Motion alert (critical) from East gate motion sensor 2"
},
{
"time": "2026-10-19T21:33:03.883Z",
"text": "Mission requested by rule:perimeter-motion"
},
{
"time": "2026-10-19T21:33:03.883Z",
"text": "Drone 2 launched toward East gate motion sensor 2"
},
{
"time": "2026-10-19T21:33:47.392Z",
"text": "Drone 2 on scene"
},
{
"time": "2026-10-19T21:33:47.392Z",
"text": "Person detected (83%), 34 m from the target"
},
{
"time": "2026-10-19T21:34:02.486Z",
"text": "Drone 2 heading home"
},
{
"time": "2026-10-19T21:34:46.141Z",
"text": "Drone 2 landed; mission complete"
}
],
"detections": [
{
"id": "det_ff3034b71f11",
"class": "person",
"confidence": 0.83,
"location": {
"lat": 38.5007,
"lon": -97.9953
},
"zone_id": "east-gate",
"source": "vehicle:drone-2",
"mission_id": "msn_e58e7523d2b5",
"vehicle_id": "drone-2",
"expired": false,
"expires_at": "2026-10-19T21:43:47.392Z",
"created_at": "2026-10-19T21:33:47.392Z"
}
],
"vehicle": {
"id": "drone-2",
"name": "Drone 2",
"battery_start_pct": 100.0,
"battery_end_pct": 89.8,
"distance_flown_m": 1047,
"flight_time_s": 102
},
"recommendations": [
"Have security confirm the 1 person seen near East gate (first sighting at 38.50070, -97.99530, 21:33:47 UTC)."
],
"target": {
"kind": "alert",
"alert_id": "alt_5037deb6aeee",
"sensor_id": "east-gate-pir-02",
"location": {
"lat": 38.5005,
"lon": -97.995
},
"zone_id": "east-gate",
"name": "East gate motion sensor 2"
},
"created_at": "2026-10-19T21:34:46.141Z"
}