Media Object Storage API
Get File Metadata
get /v1/media/{file_id}Retrieve metadata for a specific file.
File identifier
{ "file_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "content_type": "image/jpeg", "file_size": 2048576, "entity_type": "shipment_item", "entity_id": "1RT823V93|SKU-001|DAMAGED|51076f94-b531-483c-884b-35ad67afa113", "status": "ready", "created_at": 1673369400, "updated_at": 1673369400, "download_url": "https://d123456789.cloudfront.net/uploads/f47ac10b-58cc-4372-a567-0e02b2c3d479?Expires=...", "download_expires_at": 1673373000, "thumbnail_url": "https://d123456789.cloudfront.net/uploads/f47ac10b-58cc-4372-a567-0e02b2c3d479-thumb.jpg?Expires=...", "thumbnail_expires_at": 1673373000}| 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
{ "files": [ { "file_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "content_type": "image/jpeg", "file_size": 2048576, "entity_type": "shipment_item", "entity_id": "1RT823V93|SKU-001|DAMAGED|51076f94-b531-483c-884b-35ad67afa113", "status": "ready", "created_at": 1673369400, "updated_at": 1673369400, "download_url": "https://d123456789.cloudfront.net/uploads/f47ac10b-58cc-4372-a567-0e02b2c3d479?Expires=...", "download_expires_at": 1673373000, "thumbnail_url": "https://d123456789.cloudfront.net/uploads/f47ac10b-58cc-4372-a567-0e02b2c3d479-thumb.jpg?Expires=...", "thumbnail_expires_at": 1673373000 } ], "cursor": "eyJmaWxlSWQiOiJmNDdhYzEwYi01OGNjLTQzNzIifQ=="}| 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
Errorobject
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