#The Media object
A file in the workspace's media library: an image, a PDF document or an MP4 video. A media item only has a kind; where it is used is derived from its references. Any image can be used as a QR code logo, a page theme's background cover, badge or footer logo (up to 3 MB for those), and any media can be opened by an Open media workflow step. Every item counts toward the workspace's media storage allowance (PLAN_LIMIT_KEY_MEDIA_STORAGE_MB in allowances).
createdAt
When the file was created
fileName
The name of the file
id
The unique identifier of the media file (UUID)
kind
What kind of file this is
Allowed values
KIND_UNSPECIFIEDNot set
KIND_IMAGEA PNG, JPEG, WebP or SVG image
KIND_DOCUMENTA PDF document
KIND_VIDEOAn MP4 video
mediaType
Deprecated: the value recorded at upload, kept for older clients. See UploadOrigin.
Allowed values
TYPE_UNSPECIFIEDThe media type is not specified
TYPE_CENTRAL_QRCODE_IMAGEThe media type is a central QR code image
TYPE_BACKGROUND_COVERThe media type is a background cover for page themes
TYPE_BADGEThe media type is a badge image for page themes
TYPE_FOOTER_LOGOThe media type is a footer logo shown at the bottom of page theme pages
TYPE_OPEN_MEDIAThe media is handed to visitors by an Open media workflow step
mimeType
The MIME type of the file
references
Where this media is used: the Open media steps opening it, the page themes showing it and the QR code designs using it as their logo, each named by the link or the template it belongs to. Empty means it is not used anywhere. Filled by List and Get; Create, CreateUpload and CompleteUpload return it empty. Deleting media an Open media step or a page theme uses is refused with MEDIA_IN_USE; a QR code keeps its own copy of its logo, so deleting the media changes no QR code and only clears its link to it.
sha256
The SHA-256 of the file's bytes, 64 lowercase hexadecimal characters, computed by the server. A workspace holds each file once: uploading bytes with the same hash is refused with 409 MEDIA_ALREADY_EXISTS, naming this media in the error's existingMediaId and existingFileName metadata. Empty while pending, and for media stored before files were hashed.
signedUrl
Short-lived signed URL for downloading the media asset
size
The size of the file in bytes
status
Status says whether the file behind a media item is stored yet
Allowed values
STATUS_UNSPECIFIEDNot set
STATUS_PENDINGA direct upload that has not been completed: no file yet, not listed, cannot be used
STATUS_READYStored and checked, ready to use
updatedAt
When the file was last updated
uploadedBy
The member who uploaded the file If it was uploaded through the public API, or if the member was removed from the workspace, the uploaded_by will be null.
uploadedFrom
UploadOrigin is where in the product a media item was uploaded from. It is information only, so pickers can show a section's own uploads first; it never limits where the media can be used. To add a place, add a value here (next number), map it in core, and pass it from the screen that uploads.
Allowed values
UPLOAD_ORIGIN_UNSPECIFIEDNot set. Uploads that do not say where they come from are recorded as UPLOAD_ORIGIN_MEDIA_LIBRARY.
UPLOAD_ORIGIN_MEDIA_LIBRARYUploaded from the media library itself
UPLOAD_ORIGIN_QR_CODE_LOGOUploaded while picking a QR code's logo
UPLOAD_ORIGIN_BACKGROUND_COVERUploaded while picking a page theme's background cover
UPLOAD_ORIGIN_BADGEUploaded while picking a page theme's badge
UPLOAD_ORIGIN_FOOTER_LOGOUploaded while picking a page theme's footer logo
UPLOAD_ORIGIN_OPEN_MEDIAUploaded while picking the media an Open media step opens
UPLOAD_ORIGIN_ASSISTANTImported by the Assistant, from a file attached to a conversation or a URL
usage
Deprecated: the value recorded at upload, kept for older clients. It no longer limits anything. Uploads accept images (PNG, JPEG, WebP, SVG) up to 10 MB, PDF documents up to 25 MB and MP4 videos up to 50 MB, whatever the usage. Where media is used is checked when it is attached: a QR code logo, background cover, badge or footer logo must be an image of at most 3 MB; an Open media step takes any media.
Allowed values
USAGE_UNSPECIFIEDNot set
USAGE_CENTRAL_QRCODE_IMAGEThe logo in the center of a QR code
USAGE_BACKGROUND_COVERA page theme's background cover
USAGE_BADGEA page theme's badge image
USAGE_FOOTER_LOGOA page theme's footer logo
USAGE_OPEN_MEDIAMedia an Open media workflow step hands to visitors: a PDF menu or brochure, an image or an MP4 video
visibility
The media visibility is not specified
Allowed values
VISIBILITY_UNSPECIFIEDMedia visibility not specified
VISIBILITY_PUBLICThe media visibility is public
VISIBILITY_PRIVATEThe media visibility is private
workspaceId
The workspace ID the media file belongs to (UUID)