Upload Asset
upload_assetUpload image bytes to Dayze storage, re-encoding to WebP to strip EXIF/AI metadata, and get an asset_id. Use for inventory item photos by passing entity_type, entity_id, role, and image_base64, or upload then attach the asset.
Instructions
Upload image bytes to Dayze storage (WebP re-encode strips EXIF/AI metadata). Returns asset_id. For inventory item photos: pass entity_type=inventory, entity_id=inventory_id, role=photo, image_base64 from chat images. Or upload then attach_asset. ($0.15; API key required)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| role | No | original | cover | thumbnail | … | |
| filename | No | ||
| metadata | No | ||
| entity_id | No | ||
| mime_type | No | ||
| asset_type | No | photo | receipt | certificate | document | thumbnail | … | |
| request_id | No | Client idempotency key (retries return original result). | |
| description | No | ||
| entity_type | No | inventory_item maps to inventory | |
| image_base64 | No | ||
| idempotency_key | No | Alias for request_id. | |
| parent_asset_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | No | ||
| message | No | ||
| asset_id | No | ||
| metadata_stripped | No |