Upload Media
Endpoints
Upload Media
Upload images and videos to your Imperial account
POST
Upload Media
Request
Headers
Your authentication token in one of these formats: - API Key (Pro/Business):
Bearer imperial_live_xxxxxxxxxxxxx - Upload Key (Free/Starter): Bearer imperial_upload_xxxxxxxxxxxxx See Authentication for more details.Must be
multipart/form-data for file uploadsBody
The image or video file to upload. Supports: - Images: JPEG, PNG, WebP, GIF - Videos: MP4,
WebM, MOV, AVI
Response
Unique identifier for the upload
Direct CDN URL to access the uploaded file
Thumbnail URL (generated automatically for videos)
The stored filename
The original filename before upload
File size in bytes
MIME type of the uploaded file (e.g.,
image/jpeg, video/mp4)Whether the file was compressed (only for images with auto-compress enabled)
ISO 8601 timestamp of upload
Example Requests
Example Response
Video Upload Response
When uploading a video, a thumbnail is automatically generated:Error Responses
Storage Limit Exceeded
Invalid File Type
Unauthorized
Features
Auto-Compression
Enable auto-compression in your Dashboard Settings to automatically compress images on upload:- JPEG: Compressed with customizable quality (default: 80%)
- PNG: Optimized compression level 9
- WebP: Compressed with quality setting
Batch Uploads
You can upload multiple files in a single request by including multiplefile fields:
Storage Management
Uploads count towards your storage limit based on your subscription tier:| Tier | Storage | Monthly Operations |
|---|---|---|
| Free | 1 GB | 10,000 |
| Starter | 5 GB | 100,000 |
| Pro | 10 GB | 1,000,000 |
| Business | 200 GB | 5,000,000 |

