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 links, supported social post URLs, Unsplash, etc.) and creates media library rows in the given workspace. 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

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

Response

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

See also