Media Object Storage API
Generate upload URL
post /v1/media/upload-urlGenerate a pre-signed URL for direct file upload to S3. All processed images and thumbnails are converted to JPEG format regardless of input format.
| HTTP Status Code Summary | |
|---|---|
| 200 | Pre-signed upload URL generated successfully |
| 400 | Bad request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not found |
| 409 | Conflict |
| 500 | Internal server error |
Get file metadata
get /v1/media/{file_id}Retrieve metadata for a specific file.
File identifier
| HTTP Status Code Summary | |
|---|---|
| 200 | File metadata retrieved successfully |
| 400 | Bad request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not found |
| 409 | Conflict |
| 500 | Internal server error |
Search files
get /v1/media/searchSearch for files by entity type and ID with pagination support.
Filter by entity type
- shipment_item
Entity identifier, there are different formats for each entityType
- shipment_item: shipment_id|sku|reason_code|discrepancy_id
- Examples:
- "1RT823V93|SKU-001|DAMAGED|51076f94-b531-483c-884b-35ad67afa113"
- "EC9UNVLDH|PROD-123|SHORTAGE|f2a18161-c2d4-4834-9133-2466c9b702ad"
- Examples:
Maximum number of results per page
Pagination cursor from previous response
| HTTP Status Code Summary | |
|---|---|
| 200 | Files retrieved successfully |
| 400 | Bad request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not found |
| 409 | Conflict |
| 500 | Internal server error |
Objects
UploadUrlResponseobject
Unique file identifier
Pre-signed upload URL
Additional form fields required for upload. See the AWS documentation for more details
Upload URL expiration time, UNIX timestamp in seconds
Errorobject
UploadUrlRequestobject
Original filename with extension
MIME type of the file
| VALUES |
|---|
| image/jpeg |
| image/png |
| image/webp |
| image/gif |
Entity type for logical file grouping
| VALUES |
|---|
| shipment_item |
Entity identifier, there are different formats for each entityType
- shipment_item: shipment_id|sku|reason_code|discrepancy_id
- Examples:
- "1RT823V93|SKU-001|DAMAGED|51076f94-b531-483c-884b-35ad67afa113"
- "EC9UNVLDH|PROD-123|SHORTAGE|f2a18161-c2d4-4834-9133-2466c9b702ad"
- Examples:
FileMetadataResponseobject
Information about a file
Unique file identifier
MIME type of the file
| VALUES |
|---|
| image/jpeg |
| image/png |
| image/webp |
| image/gif |
File size in bytes
Entity type for logical grouping
| VALUES |
|---|
| shipment_item |
Entity identifier, there are different formats for each entityType
- shipment_item: shipment_id|sku|reason_code|discrepancy_id
- Examples:
- "1RT823V93|SKU-001|DAMAGED|51076f94-b531-483c-884b-35ad67afa113"
- "EC9UNVLDH|PROD-123|SHORTAGE|f2a18161-c2d4-4834-9133-2466c9b702ad"
- Examples:
File processing status
| VALUES |
|---|
| uploading |
| uploaded |
| processing |
| ready |
| failed |
File metadata creation, UNIX timestamp in seconds
File metadata last updated, UNIX timestamp in seconds
Pre-signed download URL (only present when status is 'ready')
Download URL expiration time, UNIX timestamp in seconds (only present when download_url is provided)
Pre-signed thumbnail download URL (only present for supported image files when thumbnail exists)
Thumbnail URL expiration time, UNIX timestamp in seconds (only present when thumbnail_url is provided)
FileSearchResponseobject
A paginated response containing file metadata
Array of file metadata objects
Pagination cursor for next page