Device API
Upload Image
Upload an image from an edge device
POST
Uploads an image from an edge device to the platform. This is used in cloud mode where devices cannot directly access MinIO.
Authentication
Include the device API key in theX-Device-Key header:
Request
This endpoint acceptsmultipart/form-data:
The image file to upload (JPEG, PNG, etc.)
JSON string with annotation/model metadata
Response
Unique identifier for the uploaded image
ID of the batch the image was added to
MinIO object key for the uploaded image
Size Limits
- Maximum file size: 50MB
- Supported formats: JPEG, PNG
Notes
- Images are automatically added to the device’s current collecting batch
- If no active batch exists, a new one is created
- The data service is notified automatically after upload
- Duplicate images (by hash) may be rejected