Skip to navigation

Push category scan from edge device

View as Markdown

Receive a cargo-category scan from an edge device after on-device inference. Updates container.categoryScan and computes a manifest match if the container has a manifest attached. See /v1/edge/containers/identify for user_email semantics.

Authentication

X-API-Keystring
API key for edge device authentication

Path parameters

containerNumberstringRequired

Request

This endpoint expects an object.
detectionslist of objectsRequired
imagestringRequiredformat: "byte"

Base64-encoded JPEG (raw or data URL). Body limit 50MB.

visualizationstringOptionalformat: "byte"

Optional base64-encoded annotated image

user_emailstringOptionalformat: "email"

Operator email; falls back to edge-device@cargovision.app

camera_idstringOptional
device_idstringOptional
timestampdatetimeOptional

Response

Category scan recorded

Errors

400
Bad Request Error
401
Unauthorized Error