Fetch media from a URL
const url = 'https://api.dropslate.top/v1/media/from-url';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"url":"https://example.com/clip.mp4"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.dropslate.top/v1/media/from-url \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "url": "https://example.com/clip.mp4" }'Https only; private and link-local addresses are refused (10_SECURITY.md §8).
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Example
{ "url": "https://example.com/clip.mp4"}Responses
Section titled “Responses”Accepted; processing happens in the background.
object
A pinned file is never removed after publishing.
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.
Example
{ "kind": "image", "status": "uploading"}No valid key, session or MCP token was sent (unauthenticated).
object
Where the code is explained: the errors page of the API reference, at the code.
The code again, for readers of RFC 9457.
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.
quota_exceeded only: what the plan includes.
quota_exceeded only: what is in use.
quota_exceeded only: where the plans and what each includes are listed.
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).
object
Where the code is explained: the errors page of the API reference, at the code.
The code again, for readers of RFC 9457.
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.
quota_exceeded only: what the plan includes.
quota_exceeded only: what is in use.
quota_exceeded only: where the plans and what each includes are listed.
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 key is missing the “write” scope, or this route needs a signed-in session instead of a key.
object
Where the code is explained: the errors page of the API reference, at the code.
The code again, for readers of RFC 9457.
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.
quota_exceeded only: what the plan includes.
quota_exceeded only: what is in use.
quota_exceeded only: where the plans and what each includes are listed.
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."}More than 600 requests in ten minutes for this key, or the workspace hit 60 post requests in an hour.
object
Where the code is explained: the errors page of the API reference, at the code.
The code again, for readers of RFC 9457.
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.
quota_exceeded only: what the plan includes.
quota_exceeded only: what is in use.
quota_exceeded only: where the plans and what each includes are listed.
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."}Headers
Section titled “Headers”Seconds to wait.