Authentication by Tier
Imperial offers different authentication types based on your subscription tier:- Free & Starter
- Pro & Business
Upload Keys OnlyFree and Starter tiers receive an upload key that can only be used for uploading images and videos. Upload keys cannot access other API endpoints.
- Limited to
POST /images/uploadendpoint only - Perfect for ShareX, Imperial Shot, and other custom uploaders
- Manage in Settings → Security section
Want full API access? Upgrade to Pro or Business to unlock all API endpoints, create multiple API keys, and access detailed request analytics.
Upload Keys (Free & Starter)
Upload keys are restricted authentication tokens that only allow file uploads.Getting Your Upload Key
- Log into your Dashboard
- Navigate to Settings → Security
- Your upload key is displayed (starts with
imperial_upload_) - Click Regenerate Upload Key if you need a new one
Upload keys don’t provide request analytics or detailed logging. Upgrade to Pro to access API keys with full analytics, latency tracking, and request logs.
Using Upload Keys
API Keys (Pro & Business)
API keys provide full access to all Imperial endpoints.Creating an API Key
- Log into your Dashboard
- Navigate to Settings → API Keys
- Click Create API Key
- Give your key a descriptive name
- Copy the key immediately (it’s only shown once)
Authentication Methods
Imperial supports two authentication methods:API Key (Recommended for API usage)
Include your API key in theAuthorization header:
JWT Token (For dashboard/web apps)
JWT tokens are obtained through login and used internally by the dashboard. For API integrations, use API keys instead.Base URL
All API endpoints are relative to:Rate Limits
Rate limits depend on your subscription tier and authentication type:| Tier | Authentication | Requests per Minute |
|---|---|---|
| Free | Upload Key | 60 |
| Starter | Upload Key | 120 |
| Pro | API Key | 300 |
| Business | API Key | 1000 |
Error Responses
Imperial uses standard HTTP status codes:| Code | Meaning |
|---|---|
| 200 | Success |
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Invalid or missing API key |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found |
| 413 | Payload Too Large - File exceeds storage limit |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Internal Server Error |
Error Response Format
CORS
The API supports CORS for browser-based applications. All origins are allowed for GET requests. POST/DELETE requests require authentication.Content Types
- Upload endpoints accept
multipart/form-data - All other endpoints accept and return
application/json

