Skip to content

List media

GET
/media
curl --request GET \
--url 'https://api.dropslate.top/v1/media?kind=image&status=uploading&scheduled=true&page=1&perPage=50' \
--header 'Authorization: Bearer <token>'
folderId
string
kind
string
Allowed values: image video
status
string
Allowed values: uploading processing ready failed
q
string
scheduled
string
Allowed values: true false

false: only posts with no time yet; true: only posts with one (1.4.0).

page
integer
default: 1
perPage
integer
default: 50 <= 100

A page of the library, newest first.

Media typeapplication/json
object
media
Array<object>
object
id
string
kind
string
Allowed values: image video
originalName
string
mime
string
size
integer
status
string
Allowed values: uploading processing ready failed
failReason
string
nullable
width
integer
nullable
height
integer
nullable
durationMs
integer
nullable
folderId
string
nullable
tags
Array<string>
pinned

A pinned file is never removed after publishing.

boolean
publishedAt
string format: date-time
nullable
purgedAt

When the bytes were removed, 72 hours after a post with the file went live (1.3.0). The row, name and metadata stay; a post naming it is refused with media_purged.

string format: date-time
nullable
thumbnailUrl
string
nullable
createdAt
string format: date-time
page
integer
perPage
integer
total
integer
Example
{
"media": [
{
"kind": "image",
"status": "uploading"
}
]
}