Skip to main content

MediaItem

Media library item (listMedia shape)

media_idstring<uuid>required
idstring<uuid>deprecated

Deprecated alias of media_id

media_statusMediaStatus (string)required

uploading until /complete is called; it never flips to ready on its own

Possible values: [uploading, ready, failed]

typestringrequired

Possible values: [image, video, document]

mime_typestring | nullnullable
file_sizeinteger | nullnullabledeprecated
file_size_bytesinteger | nullnullable
original_namestring | nullnullable
dimensions objectnull
widthinteger
heightinteger
widthinteger | nullnullable
heightinteger | nullnullable
aspect_rationumber | nullnullable
orientationstring | nullnullable

Possible values: [portrait, landscape, square, null]

created_atstring<date-time>required
MediaItem
{
"media_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"media_status": "uploading",
"type": "image",
"mime_type": "string",
"file_size_bytes": 0,
"original_name": "string",
"dimensions": "Unknown Type: object,null",
"width": 0,
"height": 0,
"aspect_ratio": 0,
"orientation": "portrait",
"created_at": "2024-07-29T15:51:28.071Z"
}