Skip to content

Get a media item

GET
/media/{id}
curl --request GET \
--url https://api.dropslate.top/v1/media/example \
--header 'Authorization: Bearer <token>'
id
required
string

One media row.

Media typeapplication/json
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
Example
{
"kind": "image",
"status": "uploading"
}

No valid key, session or MCP token was sent (unauthenticated).

Media typeapplication/problem+json
object
type

Where the code is explained: the errors page of the API reference, at the code.

string format: uri
title

The code again, for readers of RFC 9457.

string
status
integer
code
required
string
message
required
string
hint
string
details

Facts some codes carry: retryAfterSeconds on rate_limited, rows on plan_has_issues, kind, plan, limit, used and upgradeUrl on quota_exceeded. A quota kind is one of accounts, posts, storage, file, members, groups, api and mcp; for groups, api and mcp (a plan without groups, without the public API, or one that lets an agent read but not publish) limit and used are 0.

limit

quota_exceeded only: what the plan includes.

number
used

quota_exceeded only: what is in use.

number
upgradeUrl

quota_exceeded only: where the plans and what each includes are listed.

string format: uri
Example
{
"type": "https://docs.dropslate.top/api-reference/errors/#not_found",
"status": 404,
"code": "not_found",
"message": "The post does not exist.",
"hint": "Check the id and try again."
}

The workspace’s plan does not include the public API (quota_exceeded, with upgradeUrl).

Media typeapplication/problem+json
object
type

Where the code is explained: the errors page of the API reference, at the code.

string format: uri
title

The code again, for readers of RFC 9457.

string
status
integer
code
required
string
message
required
string
hint
string
details

Facts some codes carry: retryAfterSeconds on rate_limited, rows on plan_has_issues, kind, plan, limit, used and upgradeUrl on quota_exceeded. A quota kind is one of accounts, posts, storage, file, members, groups, api and mcp; for groups, api and mcp (a plan without groups, without the public API, or one that lets an agent read but not publish) limit and used are 0.

limit

quota_exceeded only: what the plan includes.

number
used

quota_exceeded only: what is in use.

number
upgradeUrl

quota_exceeded only: where the plans and what each includes are listed.

string format: uri
Example
{
"type": "https://docs.dropslate.top/api-reference/errors/#not_found",
"status": 404,
"code": "not_found",
"message": "The post does not exist.",
"hint": "Check the id and try again."
}

Does not exist, or belongs to a different workspace - the two look identical from here.

Media typeapplication/problem+json
object
type

Where the code is explained: the errors page of the API reference, at the code.

string format: uri
title

The code again, for readers of RFC 9457.

string
status
integer
code
required
string
message
required
string
hint
string
details

Facts some codes carry: retryAfterSeconds on rate_limited, rows on plan_has_issues, kind, plan, limit, used and upgradeUrl on quota_exceeded. A quota kind is one of accounts, posts, storage, file, members, groups, api and mcp; for groups, api and mcp (a plan without groups, without the public API, or one that lets an agent read but not publish) limit and used are 0.

limit

quota_exceeded only: what the plan includes.

number
used

quota_exceeded only: what is in use.

number
upgradeUrl

quota_exceeded only: where the plans and what each includes are listed.

string format: uri
Example
{
"type": "https://docs.dropslate.top/api-reference/errors/#not_found",
"status": 404,
"code": "not_found",
"message": "The post does not exist.",
"hint": "Check the id and try again."
}