upload_media_from_url
Upload an image to LinkedIn by fetching it from a public URL. Returns a digitalmediaAsset URN (urn:li:digitalmediaAsset:…) that can be passed to create_post (single image) or create_multi_photo (multi-photo). Use this instead of upload-media when working as an agent — no binary file upload needed. Use before create_post when the post needs an image; returns the URN create_post expects. For several images, then create_multi_photo.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_url | Yes | Publicly accessible URL of the image to upload. | |
| account_id | Yes | Reach id of the LinkedIn account to act on, from list_accounts. | |
| idempotency_key | No | Optional. A key you choose (a UUID is fine) that names this exact call. If you retry with the same key and the same arguments, the first call's result is returned and nothing is done twice on LinkedIn. Reusing a key with different arguments is refused. Keys expire after 24 hours. | |
| media_upload_type | No | LinkedIn media upload type (default: IMAGE_SHARING). | IMAGE_SHARING |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urn | No | urn:li:digitalmediaAsset:… to pass as media_urn |