API docs
API reference

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.

FieldHolds
idThe detection's id, det_….
classWhat it is, like person.
confidenceHow sure the AI is, 0 to 1.
locationWhere it is: {"lat", "lon"}.
zone_idThe zone it's in.
sourceWhat saw it, like vehicle:drone-2.
mission_id, vehicle_idThe mission and the vehicle.
expires_at, expiredDetections go stale: after 10 minutes, by default, expired turns true.
created_atWhen it was seen.
The detection object
{
  "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

GET/v1/detections
AccessAPI key · read

Detections, newest first. A detection.created event announces each one as it happens.

Query
mission_idstring
Only this mission's detections.
limitinteger
How many to return, 1 to 1,000. Default 100.
Returns

{"data": [...]} with a detection for each.

Request
curl "$OCHIO_URL/v1/detections?mission_id=msn_e58e7523d2b5" \
  -H "Authorization: Bearer $OCHIO_API_KEY"
Response
{
  "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.

PartHolds
title, summaryA headline, and two or three plain sentences: what triggered it, what flew, what it found.
outcomestatus and reason.
triggerThe alert or silent sensor, or who requested it, with a sentence in text.
timelineEach step with its time: the alert, the request, approval, launch, arrival, detections, landing.
detectionsWhat was seen, where, when and how sure.
vehicleWhich vehicle flew, its battery at launch and at the end, distance and flight time.
recommendationsNext steps, like having security confirm a person, or checking a silent sensor's power.
targetWhat the mission flew to.
The report object
{
  "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

GET/v1/reports
AccessAPI key · read

Reports, newest first, in short form.

Query
limitinteger
How many to return, 1 to 1,000. Default 100.
Returns

{"data": [...]}, each with id, mission_id, title, outcome, summary and created_at.

Request
curl "$OCHIO_URL/v1/reports" \
  -H "Authorization: Bearer $OCHIO_API_KEY"
Response
{
  "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

GET/v1/reports/{report_id}
AccessAPI key · read

One report, as JSON, or as a page a person can read and print. See an example page.

Path
report_idstringrequired
The report's id, rpt_….
Query
formatstring
json (the default) or html for the printable page with a map of the flight.
Returns

The report, or the HTML page.

Errors
StatusCodeWhen
404not_foundNo report with this id.
Request
curl "$OCHIO_URL/v1/reports/rpt_ba61bdbb7b36" \
  -H "Authorization: Bearer $OCHIO_API_KEY"
Response
{
  "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"
}