Skip to main content
The Asset type represents media files (images, videos, documents) stored in Metabind with CDN-delivered URLs.

Type Definition

Fields

FieldTypeDescription
idID!Unique identifier
nameString!File name
descriptionString!Asset description
typeString!MIME type
urlString!CDN URL for the asset
sizeInt!File size in bytes
widthIntImage width in pixels (images only)
heightIntImage height in pixels (images only)
tags[String!]!Tags for categorization
createdAtDateTime!Upload timestamp
updatedAtDateTime!Last update timestamp

Field Details

type

The MIME type of the asset:
TypeDescription
image/jpegJPEG images
image/pngPNG images
image/gifGIF images
image/webpWebP images
image/svg+xmlSVG graphics
video/mp4MP4 videos
video/webmWebM videos
application/pdfPDF documents

url

Assets are served from the Metabind CDN with automatic optimization:

width and height

Image dimensions are automatically extracted during upload. These fields are null for non-image assets.

Example Queries

List Assets

Get Single Asset

Response:

Filter by Size

  • Package - Assets can be bundled with packages
  • Tag - Tags for asset categorization