Upload asset
upload_assetUpload an image or video the user wants to post, so it can be attached to a post. Provide either sourceUrl (a public http(s) URL of the media) or contentBase64. The file is stored in the user's SocialClaw media library and the result includes an asset id and a public URL to use as media_link in schedules.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Filename including extension, e.g. launch.png. | |
| sourceUrl | No | Public http(s) URL of the image or video. | |
| contentBase64 | No | Base64-encoded file content (alternative to sourceUrl). |