Get a media item
GET
/media/{id}
const url = 'https://api.dropslate.top/v1/media/example';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/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “ Responses ”One media row.
Media typeapplication/json
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
Example
{ "kind": "image", "status": "uploading"}Does not exist, or belongs to a different workspace - the two look identical from here.
Media typeapplication/json
object
code
required
string
message
required
string
hint
string
Example
{ "code": "not_found", "message": "The post does not exist.", "hint": "Check the id and try again."}