List media
GET
/media
const url = 'https://api.dropslate.top/v1/media?kind=image&status=uploading&scheduled=true&page=1&perPage=50';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.dropslate.top/v1/media?kind=image&status=uploading&scheduled=true&page=1&perPage=50' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”folderId
string
kind
string
status
string
q
string
scheduled
string
false: only posts with no time yet; true: only posts with one (1.4.0).
page
integer
perPage
integer
Responses
Section titled “ Responses ”A page of the library, newest first.
Media typeapplication/json
object
media
Array<object>
object
id
string
kind
string
originalName
string
mime
string
size
integer
status
string
failReason
string
width
integer
height
integer
durationMs
integer
folderId
string
tags
Array<string>
pinned
A pinned file is never removed after publishing.
boolean
publishedAt
string format: date-time
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
thumbnailUrl
string
createdAt
string format: date-time
page
integer
perPage
integer
total
integer
Example
{ "media": [ { "kind": "image", "status": "uploading" } ]}