Skip to main content
GET
Get a media file
Needs media:read. See Permissions.
Gives the file when it is in a workspace the key can reach. is_processing is true while the file is still being made, like an AI video: it can’t go on a post until it is ready. A picture has thumb_url and medium_url once they are made: see Picture copies.

Errors

Authorizations

Authorization
string
header
required

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

Path Parameters

media_id
integer
required

The file's id.

Response

The file.

A file in the media library: what list, get and the uploads give, and what posts and comments hold.

id
integer
required

The file's id. Posts take it in content[].media.

workspace_id
integer
required
folder_id
integer | null
required

The folder it is in; null at the top of the library.

name
string
required

The file name.

url
string<uri>
required

The file itself, at a public link.

mime_type
string | null
required

The file's type, like image/jpeg.

size
integer | null
required

The size in bytes.

is_processing
boolean
required

True while the file is still being made (an AI video, for example). It can't go on a post or be deleted until it is ready.

type
enum<string> | null
required

The kind of file, from mime_type: document is a PDF, Word or PowerPoint file. Null for any other type.

Available options:
image,
video,
audio,
document,
null
ai_generated_id
integer | null
required

Set when PostSyncer's AI made the file; null for uploads.

is_reference
boolean
required

True for a reference picture kept for AI video, not for posting.

progress
integer
required

Always 100.

alt
string | null
required

The alt text, when set.

duration_seconds
number | null
required

A video's or sound's length in seconds, read when it was uploaded. Null for pictures and documents, and for files stored before lengths were read.

thumb_url
string<uri>

A picture's small copy (about 400 px on its long edge) for cards and lists, or a video's still. Left out until one is made: use url then. See Picture copies.

medium_url
string<uri>

A picture's medium copy (about 800 px on its long edge) for large tiles and previews. Left out until one is made, and for a picture no bigger than 800 px on its long edge, which needs none: use url then. Videos, GIFs and documents have none.