Upload Asset
upload_assetUploads one illustration, logo, background, panorama, font, recording, image, video or audio asset. Maximum 25 MB per file. HTTPS URLs and base64 data are supported; local paths are npm/stdio-only. Returns a project-relative storage path and available media metadata. Font registration is enabled by default. Upload alone does not apply an asset to a design or change the project icon.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | The file source — provide an HTTPS URL or base64 data, or a local file path for npm/stdio, with an appropriate filename. | |
| fileType | Yes | Use mockup-media for mockup screens/recordings and mockup soundtracks, promo-media for promo video/audio footage, font for TTF/OTF/WOFF/WOFF2, or an image category. Mockup recordings are checked on upload (H.264, ≤1080 px short side, keyframe every ≤2 s, ≤60 fps) and rejected with an ffmpeg command when unsuitable. | |
| projectId | Yes | ||
| fontFamily | No | Font uploads only: family name to register instead of the one derived from the filename. Upload each weight file with the same fontFamily. | |
| registerFont | No | Font uploads only (default true): add the file to the project's custom fonts (metadata.customFonts) like the editor's font upload. Family, weight and style come from the filename (e.g. Inter-BoldItalic.ttf). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| message | No | ||
| success | Yes | ||
| widgetDataJson | No |