Upload a media file
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
Upload a media file
Authorizations
Enter your API key (starts with lindo_sk_)
Path Parameters
Unique identifier of the website
Example:
"ws_abc123"
Body
application/json
Base64 encoded file data (with or without data URL prefix)
Example:
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="
Name of the file including extension
Example:
"hero-image.jpg"
Type of media being uploaded
Available options:
images, videos, documents, fonts Example:
"images"
MIME type of the file
Example:
"image/jpeg"

