Skip to main content
POST

Import media from URL

Send application/json with a list of URLs. The API downloads or resolves each URL (same pipeline as the in-app URL importer: direct image/video/document links, supported social post URLs, Unsplash, etc.) and creates media library rows in the given workspace. The URL’s Content-Type decides whether it is imported: images, video, and documents (PDF, DOC, DOCX, PPT, PPTX) are stored, anything else is skipped. Documents publish to LinkedIn only - see Media overview. Response is 200 with media (array of created items) and count_stored. Some inputs produce more than one media object. URLs that fail validation or fetch may be skipped - media can be empty while still returning 200. For binary uploads from disk, use Upload from file instead.

Request

integer
required
Workspace that will own the imported files
string[]
required
List of URLs to import (each must be a valid URL, max 2048 characters)
integer
Optional media library folder id belonging to workspace_id

Response

array
Created library items; each includes id for use in POST /posts … content[].media
integer
Number of items in media

See also