Skip to main content
POST
Needs media:create, and a role in the workspace that can add media. See Permissions.
Each link in urls is downloaded and stored now. A link can be:
  • a file: a picture, video, PDF, Word or PowerPoint file, up to 500 MB;
  • a Dropbox or Google Drive share link to a file (not a folder) that anyone with the link can view. Otherwise Dropbox or Drive answers with a page, and the link is refused;
  • an Unsplash photo;
  • a public social post: every photo and video in it is stored;
  • a download link from Get download links for a post’s media, while it still works.
The type is read from the file itself, not only from the server’s Content-Type. Documents publish to LinkedIn only: see Documents. It is all or nothing. When one link can’t be used (it can’t be reached, it is a web page or another type, it is over 500 MB, or the import takes longer than 75 seconds), nothing is stored, and the 422 names that link and why under urls.N. One link can give several files, so read count_stored and each media[].id.

Errors

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
workspace_id
integer
required

The workspace whose library gets the files. It must be one the key can reach.

urls
string<uri>[]
required

The links to import: files (pictures, videos, PDF, Word or PowerPoint), Dropbox and Google Drive share links, Unsplash photos, public social posts, and download links from a post.

Minimum array length: 1
Maximum string length: 2048
folder_id
integer | null

A folder of the same workspace to put the files in. Left out: the top of the library.

Response

Every link was stored.

media
object[]
required

The files stored, in the order of urls; a social post's videos come before its photos. A social post gives one for each of its files.

count_stored
integer
required

How many files were stored.