API guide
The SimplShare API lets your own applications and automations work with a workspace: list and download files, upload new ones, create folders, and hear about changes as they happen. It speaks JSON over https. It is included with the Business plan and higher.
Get a key
Open Settings > API in your workspace and choose Create a key. Pick Read only or Read and write, and whether it expires. The key is shown once. A key works as the person who made it, in that one workspace, and can never do more than that person can. It stops working if the person leaves the workspace, the account is suspended, or the workspace leaves the plan.
Sign your requests
Send the key in the Authorization header of every request. Never put it in a web address, a page that runs in a browser, or a public repository: anyone who has it can act as you.
curl https://simplshare.com/api/v1/me \
-H "Authorization: Bearer ssk_your_key_here"If your host removes the Authorization header, send X-API-Key: ssk_... instead. Requests must use https.
Libraries, folders and files
Every workspace has a personal library (only you see it) and a team library (every member does). Calls take library (personal, the default, or team) and path, the folder inside that library, such as Trips/Spain (empty for the top). A file has an id, a short text that stands for it in addresses such as /files/{id}. Ids change if a file is moved or its privacy setting is changed, so look a file up again by listing its folder.
Endpoints
Base address: https://simplshare.com/api/v1
| Method | Address | What it does | Needs |
|---|---|---|---|
GET | /me | Who the key is, the workspace, its plan and limits. Add ?usage=1 for storage used and available. | Any key |
GET | /folders | Folders inside path, with how many items each holds. | Any key |
POST | /folders | Make a folder. Body: library, path (the parent) and name. | Read and write |
DELETE | /folders | Move the folder at path to the Trash (or delete it, if the plan has no Trash). | Read and write |
GET | /files | Files in a folder, newest first. Options: q (name contains), limit (1 to 100, default 50) and cursor (from next_cursor). | Any key |
POST | /files | Upload a file (see below). | Read and write |
GET | /files/{id} | One file: name, size, type, dates, privacy, view and download counts, and its share link in url. | Any key |
GET | /files/{id}/content | Download the file itself. | Any key |
GET | /files/{id}/comments | The comments on a file. | Any key |
DELETE | /files/{id} | Move the file to the Trash. | Read and write |
GET | /activity | The workspace activity log. Options: limit (up to 100) and before (from next_before). | Any key |
Upload a file
Send a form with the file in a field called file, or send the raw bytes and name the file with ?name=. The same rules as the website apply: allowed file types, the plan's largest file, the storage limit, and encrypted folders. The answer is the new file, with status 201.
curl https://simplshare.com/api/v1/files \
-H "Authorization: Bearer ssk_your_key_here" \
-F library=team -F path=Reports -F file=@invoice.pdf
curl "https://simplshare.com/api/v1/files?name=report.csv&library=personal" \
-H "Authorization: Bearer ssk_your_key_here" \
-H "Content-Type: application/octet-stream" --data-binary @report.csvReading a folder
curl "https://simplshare.com/api/v1/files?library=team&path=Reports&limit=20" \
-H "Authorization: Bearer ssk_your_key_here"
{
"data": [{
"id": "dGVhbTpSZXBvcnRzL2E2MWY...",
"name": "invoice.pdf",
"library": "team", "folder": "Reports",
"size": 48213, "content_type": "application/pdf",
"modified": "2026-10-21T14:03:00+00:00",
"privacy": "link", "views": 3, "downloads": 1,
"url": "https://your-site/?view=..."
}],
"total": 1, "next_cursor": null
}
Errors and limits
A failed request has a status code and a body like {"error": {"code": "read_only_key", "message": "..."}}. Use code in your program and show message to people.
| Status | Meaning |
|---|---|
| 400 | The request is malformed, or not over https. |
| 401 | No key, or the key is wrong, revoked or expired. |
| 403 | The key can not do this: it is read only, the person left the workspace, or the plan does not include the API. |
| 404 / 405 | No such address, file or folder / the address does not take that method. |
| 409 / 413 / 415 / 422 | Already exists / file too large / file type not accepted / a rule was not met (storage full, name not allowed). |
| 429 | Too many requests. Each key may make 120 a minute; X-RateLimit-Remaining and Retry-After tell you where you are. Wrong keys are also limited. |
| 503 | The site is in maintenance. Try again after Retry-After seconds. |
Webhooks
Instead of asking again and again, let SimplShare call you. Add an address under Settings > API > Webhooks and choose the events you want. It must be a public https address. Each event is sent once as a POST with a JSON body, and your server should answer with any 2xx status within a few seconds. There are no retries, and a webhook that fails 20 times in a row is switched off (turn it back on in the settings).
| Event | Sent when |
|---|---|
file.uploaded | A file is uploaded |
file.deleted | A file or folder is deleted |
comment.added | A comment is added |
request.received | Files arrive through a Request |
{
"id": "eb4e4fb01bf2a6d79ead4c2f",
"event": "file.uploaded",
"created": "2026-10-21T21:07:17+00:00",
"workspace": { "id": 12 },
"data": {
"library": "team", "folder": "Reports", "name": "invoice.pdf",
"size": 48213, "by": "Dana Lee"
}
}Messages never contain the file itself, only its name, size and place. Something that happens in a person's personal library is only sent to that person's webhooks. comment.added also carries the comment, and request.received the sender's name and the file names.
Check the signature
Every message has the headers X-SimplShare-Event, X-SimplShare-Delivery (a unique id, handy for ignoring repeats) and X-SimplShare-Signature, which looks like t=1792616837,v1=0f78.... To check it, compute the HMAC-SHA256 of t + "." + the raw body with the webhook's signing secret (shown once, when you add it), compare it with v1, and reject old t values (for example more than five minutes).
// PHP
$raw = file_get_contents('php://input');
[$t, $v1] = array_map(fn($p) => explode('=', $p, 2)[1], explode(',', $_SERVER['HTTP_X_SIMPLSHARE_SIGNATURE']));
$ok = hash_equals(hash_hmac('sha256', $t . '.' . $raw, $secret), $v1) && abs(time() - (int)$t) < 300;
// Node.js
const [t, v1] = req.headers['x-simplshare-signature'].split(',').map(p => p.split('=')[1]);
const calc = crypto.createHmac('sha256', secret).update(t + '.' + rawBody).digest('hex');
const ok = crypto.timingSafeEqual(Buffer.from(calc), Buffer.from(v1)) && Math.abs(Date.now() / 1000 - t) < 300;
Keeping it safe
- Use the smallest access that works: a key that only reads can not delete anything.
- Make one key per application, so you can revoke one without stopping the others. Revoke a key at once if it may have leaked.
- The API does not allow calls from web pages, so a key is never needed in a browser. Call it from a server or an automation tool.
- Everything a key does appears in the workspace's Activity log as "API key: its name".
