API Docs/Reference/Upload Media
API Reference
Upload Media
Re-host an image, video, or PDF for use in a post. Provide either url or file_base64, not both. Requires a paid Creator or Lifetime plan.
POSThttps://api.linkedmash.com/v1/media/upload
Header parameters
AuthorizationstringRequired
Your secret API key as a Bearer token.
Body parameters
urlstringOptional
Remote http(s) URL to re-host. Provide either url or file_base64.
file_base64stringOptional
Base64-encoded file bytes — an alternative to url.
file_namestringOptional
Original file name.
mime_typestringOptional
MIME type of the file (e.g., 'image/png').
Response
{
"status": true,
"data": {
"url": "https://media.linkedmash.com/uploads/9c1f0b2e/diagram.png",
"file_type": "image",
"file_name": "diagram.png",
"mime_type": "image/png"
}
}