List media
GET
/public/v1/media
const url = 'https://api.loomta.com/public/v1/media?mediaType=image';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.loomta.com/public/v1/media?mediaType=image' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”folderId
string
Filter by folder UUID, or the string null for the root folder.
mediaType
string
Responses
Section titled “Responses”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
originalFileName
string
status
string
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."}{ "code": "invalid_api_key", "message": "The API key is invalid."}