API reference
REST API
Base URL https://api.omnizyro.com/v1 Preview, subject to change. JSON over HTTPS. Times are ISO 8601 in UTC; distances are metres.
Authentication
Send an API key as a bearer token. Keys belong to a workspace and carry scopes. Create and revoke keys in the console.
Authorization: Bearer wp_test_4f9c...| Scope | Allows |
|---|---|
sites:read | Read sites and map versions |
missions:read | List missions and robot metrics |
missions:write | Create missions |
rehearsals:write | Start rehearsals |
zones:propose | Propose zone changes (cannot approve) |
Approving a zone change is not possible with an API key. Approvals are made by a signed-in person with the Safety officer role.
Rate limits
Every response carries rate-limit headers. The preview limit is 600 requests per minute per key.
X-RateLimit-Limit: 600
X-RateLimit-Remaining: 587
X-RateLimit-Reset: 1764230460Errors
| HTTP | code | Meaning |
|---|---|---|
| 400 | invalid_request | A field is missing or malformed. |
| 401 | unauthorized | Missing or invalid API key. |
| 403 | forbidden | The key lacks the required scope. |
| 404 | not_found | The resource does not exist in this workspace. |
| 409 | approval_required | The change needs a human approval before it applies. |
| 429 | rate_limited | Too many requests; retry after the time in Retry-After. |
| 500 | server_error | Our fault; safe to retry with backoff. |
{
"error": {
"code": "approval_required",
"message": "Zone change zc_81f2 is pending approval.",
"request_id": "req_7d1a0c"
}
}Start a rehearsal
POST /rehearsals · scope rehearsals:write. Starts an asynchronous run; poll the returned resource or wait for a webhook.
{
"site_id": "site_bhw_02",
"map_version": 14,
"order_profile_id": "op_2026_11_28_shiftB",
"fleet": [
{ "robot_model": "amr-600-lift", "count": 18 },
{ "robot_model": "tugger-1t", "count": 4 }
],
"seeds": 8
}{
"id": "rh_5c2e91",
"status": "queued",
"site_id": "site_bhw_02",
"map_version": 14,
"seeds": 8,
"created_at": "2026-11-27T10:42:07Z",
"report_url": null
}List missions
GET /missions · scope missions:read. Cursor pagination. Filters: status, robot_id, zone_id, since, limit (max 200).
GET /v1/missions?status=failed&since=2026-11-27T00:00:00Z&limit=2{
"data": [
{
"id": "ms_90a1",
"robot_id": "rb_amr_07",
"status": "failed",
"from": "DOCK-03",
"to": "PACK-11",
"reason": "path_blocked",
"explanation": "Aisle C blocked by a stationary pallet for 95 s; no alternative route within time window.",
"updated_at": "2026-11-27T09:14:22Z"
},
{
"id": "ms_90b7",
"robot_id": "rb_tug_02",
"status": "failed",
"from": "KIT-01",
"to": "LINE-4",
"reason": "door_timeout",
"explanation": "Fire door FD-2 did not report open within 20 s.",
"updated_at": "2026-11-27T09:51:03Z"
}
],
"next_cursor": "c_ms_90b7",
"has_more": true
}Robot metrics
GET /robots/{robot_id}/metrics · scope missions:read. Query window: 1h, 24h or 7d.
{
"robot_id": "rb_amr_07",
"window": "24h",
"missions_completed": 211,
"missions_failed": 3,
"distance_m": 18420,
"wait_s": { "p50": 2.1, "p95": 14.8 },
"unplanned_stops": 9,
"battery_cycles": 2,
"model": { "name": "see-det", "version": "0.7.2", "drift_score": 0.04 }
}Propose a zone change
POST /zones/{zone_id}/changes · scope zones:propose. Creates a pending change. It never applies until a Safety officer approves it in the console; the response is 409 approval_required if you try to apply it directly.
{
"rules": { "speed_cap_mps": 0.6, "direction": "one_way_north" },
"active_hours": "06:00-14:00",
"reason": "Festive peak: pickers working both sides of aisle C"
}{
"id": "zc_81f2",
"zone_id": "zn_aisle_c",
"status": "pending_approval",
"proposed_by": "key_ops_integration",
"created_at": "2026-11-27T11:02:44Z"
}Webhooks
Register an HTTPS endpoint in the console. Each delivery is a POST with a JSON body and two headers: Waypoint-Timestamp and Waypoint-Signature, an HMAC-SHA256 of timestamp + "." + body using your endpoint secret, hex encoded.
mission.failed
{
"id": "evt_31c0",
"type": "mission.failed",
"created_at": "2026-11-27T09:14:23Z",
"data": {
"mission_id": "ms_90a1",
"robot_id": "rb_amr_07",
"reason": "path_blocked",
"zone_id": "zn_aisle_c"
}
}model.drift_detected
{
"id": "evt_31d4",
"type": "model.drift_detected",
"created_at": "2026-11-27T12:00:00Z",
"data": {
"model": "see-det",
"version": "0.7.2",
"site_id": "site_bhw_02",
"drift_score": 0.31,
"threshold": 0.25,
"top_shift": "loose_material share up vs validation profile"
}
}Verify the signature
import hmac, hashlib, time
def verify(secret: bytes, timestamp: str, body: bytes, signature: str) -> bool:
if abs(time.time() - int(timestamp)) > 300:
return False # reject replays older than five minutes
mac = hmac.new(secret, timestamp.encode() + b"." + body, hashlib.sha256).hexdigest()
return hmac.compare_digest(mac, signature)Retries. Respond with any 2xx within 10 seconds. Otherwise we retry with exponential backoff for up to 24 hours (about 8 attempts). Events can arrive more than once or out of order; deduplicate on id.