Upload API
Upload files to your Send Shed account from scripts, apps and tools like ShareX. You get a share link back, plus a direct image link for pictures. A free account is all you need.
Authentication
Create a key in your dashboard under ShareX, then send it on every request:
Authorization: Bearer ss_your_key_here
Each key has a scope, chosen when you create it: upload only (enough for ShareX),
read only (the GET requests below), or full access
(everything, including edit and delete). A request the key's scope doesn't cover gets a
403.
The key works like a password: keep it out of public code. Creating a new key replaces the old one, and you can revoke it in the dashboard. Accounts must have confirmed their email address.
Upload a file
POST https://sendshed.com/api/v1/upload
Content-Type: multipart/form-data
| Field | Required | What it does |
|---|---|---|
file | Yes | The file. Send other fields before it. |
filename | No | Name to use instead of the uploaded file’s own name (max 255 characters). |
expiryHours | No | Hours until the link expires, 1 to 720 (30 days). Default 168 (7 days) with an API key. Without one, the file stays up until nobody has used it for 45 days; send keep to ask for that explicitly. |
downloadLimit | No | Delete after this many downloads. |
idleExpiryHours | No | Also delete after this many hours without a download. |
password | No | Require a password to download. |
?folder=ID | No | Query parameter: add the file to one of your folders (the id from /f/ID). |
Each file can be up to 3 GB, and counts against your account’s storage (10 GB on a free account).
Response
{
"id": "Ab3dE6gH9jK2mN5p",
"url": "https://sendshed.com/d/Ab3dE6gH9jK2mN5p/screenshot.png",
"directUrl": "https://sendshed.com/i/Ab3dE6gH9jK2mN5p/screenshot_sendshed.com.png",
"link": "https://sendshed.com/i/Ab3dE6gH9jK2mN5p/screenshot_sendshed.com.png",
"thumbnailUrl": "https://sendshed.com/t/Ab3dE6gH9jK2mN5p.jpg",
"deletionUrl": "https://sendshed.com/delete/Ab3dE6gH9jK2mN5p/q8Wn...",
"deleteToken": "q8Wn...",
"expiresAt": 1792369682824,
"filename": "screenshot.png"
}
| Field | Meaning |
|---|---|
url | The download page. Share this one. |
directUrl | Only for public PNG, JPEG, GIF and WebP images: the image itself, for embedding in forums and chat. |
link | directUrl when there is one, otherwise url. Handy for screenshot tools. |
thumbnailUrl | Only for public images and videos: a preview picture (JPEG, up to 1200 px wide). |
deletionUrl | A link that deletes the file after a confirmation click. Anyone with it can delete the file, so keep it private. |
deleteToken | Keep it to delete the file later (see below). |
expiresAt | When the link expires, in milliseconds since 1970 (UTC). |
Images and videos with no password or download limit also get a real preview picture when the link is posted in Discord, X, WhatsApp or iMessage, and MP4 and WebM videos play inline.
Delete a file
DELETE https://sendshed.com/api/file/ID
X-Delete-Token: the deleteToken from the upload
You can also delete any of your files from the dashboard.
Manage your files and folders
With the same key you can list, change and tidy up everything on your account. Requests and responses are JSON. These calls only accept an API key (read only or full access), and are limited to 120 a minute.
| Request | What it does |
|---|---|
GET /api/v1/account | Email, storage used and quota, largest file allowed, file and folder counts. |
GET /api/v1/files | All your files, newest first, with links, sizes, downloads and expiry. |
GET /api/v1/files/ID | One file. |
PATCH /api/v1/files/ID | Change filename, password ("" removes it), recipients (a list of emails), downloadLimit (null for none) or expiryHours (or "never" on the paid plan). |
DELETE /api/v1/files/ID | Moves the file to Trash for 7 days. Add ?forever=1 to delete it straight away. |
POST /api/v1/files/ID/restore | Brings a file back from Trash. |
GET /api/v1/files/ID/stats | Downloads per day for the last 30 days, and top referring sites. |
GET /api/v1/files/ID/log | The latest 200 downloads: time, browser and referring site. |
POST /api/v1/files/bulk | {"action": "trash" | "restore" | "delete" | "folder", "ids": [...], "folderId": "..."} |
GET /api/v1/files/zip?ids=A,B | Several Quick Share files as one .zip. |
GET /api/v1/folders | Your folders. POST with {"name": "..."} creates one. |
GET /api/v1/folders/ID | A folder and the files in it. |
PATCH /api/v1/folders/ID | Change name, password or expiresInDays. |
DELETE /api/v1/folders/ID | Deletes the folder (the files stay on your account). |
POST /api/v1/folders/ID/files | Adds files: {"fileIds": ["...", "..."]}. DELETE /api/v1/folders/ID/files/FILE_ID removes it. |
Your password, email address, two-factor settings and the account itself can only be changed while signed in on the site.
Errors and limits
Errors come back as JSON: {"error": "message"}.
| Status | Meaning |
|---|---|
| 401 | Missing or wrong API key. |
| 403 | Account suspended, email address not confirmed yet, or the key's scope doesn’t cover this request. |
| 404 | The folder you named isn’t one of yours. |
| 413 | File too large, or not enough storage left on the account. |
| 429 | Too many uploads: the limit is 120 per hour per account. |
Examples
curl
curl -H "Authorization: Bearer $SENDSHED_KEY" \
-F expiryHours=24 \
-F "file=@clip.mp4" \
https://sendshed.com/api/v1/upload
Python
import os, requests
with open("report.pdf", "rb") as f:
r = requests.post(
"https://sendshed.com/api/v1/upload",
headers={"Authorization": "Bearer " + os.environ["SENDSHED_KEY"]},
data={"expiryHours": "72"},
files={"file": f},
)
r.raise_for_status()
print(r.json()["url"])
ShareX
Download a ready-made config from the dashboard; see the ShareX setup guide.