API Documentation: Upload via HTTP
Learn how to upload files to imageserver.pw using simple HTTP requests.
Quick Start
1
Get Your API Key
Find your key in the Dashboard under "User Key".
2
Send a POST Request
Upload to POST /api/v1/upload with your file as multipart/form-data.
3
Get Your Link
Receive a JSON response with your encrypted file URL.
Endpoint
POST https://imageserver.pw/api/v1/upload
Content-Type:
multipart/form-data
Auth Header:
X-IMAGESERVER-AUTH-KEY
Form Fields
| Field | Required | Description |
|---|---|---|
file |
Yes | The file to upload |
color |
No | Embed color (hex), e.g. #ef7c3b |
title |
No | Embed title (default: imageserver.pw) |
urlStyle |
No | embed or direct — controls returned URL type |
domains |
No | JSON array of domains, e.g. ["default"] or ["own"] |
Code Examples
Linux / macOS
curl -X POST \
-H "X-IMAGESERVER-AUTH-KEY: YOUR_USER_KEY" \
-F "file=@/path/to/image.png" \
-F "urlStyle=embed" \
-F "color=#ef7c3b" \
https://imageserver.pw/api/v1/upload
Response
Success
{
"url": "https://imageserver.pw/abc123.png?key=...",
"deletionUrl": "https://imageserver.pw/delete/xyz789"
}
Error Codes
| Code | Reason |
|---|---|
400 |
Missing auth key or file |
401 |
Invalid user key |
403 |
Account suspended |
400 |
Unsupported file type for your plan |
413 |
File size exceeds your plan limit |
413 |
Storage quota exceeded |
ShareX Setup
- Open ShareX → Destinations → Custom Uploader Settings
- Create a new uploader with:
- URL:
https://imageserver.pw/api/v1/upload - Method: POST
- Body: Form data (multipart)
- URL:
- Add header:
X-IMAGESERVER-AUTH-KEY: YOUR_KEY - Set file form name to
file - URL field:
$json:url$
Postman Setup
- Create new request:
POST https://imageserver.pw/api/v1/upload - Headers tab: Add
X-IMAGESERVER-AUTH-KEY - Body tab → Select form-data
- Add key
file(type: File) - Add optional keys:
urlStyle,color, etc. - Send and check JSON response
Encryption
All uploaded files are automatically encrypted at rest using AES-256. The decryption key is included in your file URL.
Learn more about how encryption worksSkip the API — Use Our Desktop Client
Take screenshots and upload them instantly with a single hotkey. No code required — just capture, upload, and share.
- Global hotkey capture
- Auto-copy link to clipboard
- Region & fullscreen capture
- Upload history
Download Client
Windows macOS Linux