Skip to content

List media

GET
/public/v1/media
curl --request GET \
--url 'https://api.loomta.com/public/v1/media?mediaType=image' \
--header 'Authorization: Bearer <token>'
folderId
string

Filter by folder UUID, or the string null for the root folder.

mediaType
string
Allowed values: image video

The matching media objects.

Media typeapplication/json
object
media
required
Array<object>

A media object in the workspace library.

object
id
string format: uuid
storageKey
string
publicUrl
string format: uri
previewUrl
string format: uri
mimeType
string
size
integer | null
mediaType
string
Allowed values: image video audio file
originalFileName
string
status
string
Allowed values: PENDING READY
thumbnailMetadata
object | null
finalizedAt
string | null format: date-time
folderId
string | null format: uuid
createdAt
string format: date-time
Example
{
"media": [
{
"mimeType": "image/jpeg",
"mediaType": "image",
"status": "PENDING"
}
]
}

The API key is missing or invalid.

Media typeapplication/json
object
code
required

A stable, machine-readable error code to branch on.

string
message
required

A human-readable description.

string
details

Optional structured detail (for example Zod validation issues).

Examples
{
"code": "missing_api_key",
"message": "A Bearer API key is required."
}