Media Management
Upload a media file
Uploads a single media file (image, video, document, or font) to the website's CDN storage. Returns the public CDN URL.
post/v1/workspace/website/{website_id}/media/upload
Request
- Base URL: https://api.lindo.ai
- URL: https://api.lindo.ai/v1/workspace/website/{website_id}/media/upload
- Auth: HTTP bearer
Path parameters
website_idstring required
Unique identifier of the website
Example:ws_abc123
Request body
Example request
{
"file_base64": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==",
"file_name": "hero-image.jpg",
"media_type": "images",
"content_type": "image/jpeg"
}Response
File uploaded successfully
Example response
{
"success": true,
"result": {
"url": "https://cdn.ln-cdn.com/c/website_abc123/images/hero-image.jpg",
"file_name": "hero-image.jpg",
"media_type": "images"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.