Import image
import_imageUpload image files to the permanent workspace media library and receive a reusable asset with a public delivery URL. Add logos, photos, or graphics for slideshows and brands.
Instructions
Upload a new image file into the permanent workspace media library, storing the binary asset on Cloudflare R2 and registering metadata in Directus. Call to add reusable media assets (logos, photos, graphics) for use across slideshow runs and brands. Do NOT use for transient template draft canvas images (use import_template_image instead). Requires workspace write permissions. Returns created Image record with generated imageId and public delivery URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Base64-encoded image data or local file path. | |
| name | No | Human-readable asset title in media library. | |
| filename | No | Original filename with extension (e.g. header.png). | |
| sourceUrl | No | Original source URL if importing from web/unsplash/pinterest. | |
| rightsStatus | No | Rights ownership status: licensed_for_publish | user_owned | generated | rights_unknown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public delivery URL. | |
| imageId | No | Created image ID. |