Add Asset
add_assetAdds an image, video or PDF to the library from a public URL, or starts a file upload. A PDF becomes kind document and attaches to LinkedIn posts only. For a public https URL, pass source url plus url. For a local file, pass source upload to get a one-time token; after the file is in storage, call again with source upload plus blobUrl, mime and size. Related: search_assets, save_post.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public https URL when source is url. | |
| mime | No | MIME type when registering an upload. | |
| name | No | Optional display name. | |
| size | No | Byte size when registering an upload. | |
| width | No | Pixel width when registering an uploaded image or video. | |
| height | No | Pixel height when registering an uploaded image or video. | |
| source | Yes | url imports a public file; upload returns a one-time client token. | |
| blobUrl | No | After a client upload, the private Blob URL to register. | |
| fileName | No | Original file name when source is upload. | |
| durationMs | No | Duration in milliseconds when registering an uploaded video. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | No | ||
| upload | No |