Build on FileSplash
Send files, share links and collect files from your own scripts, apps and AI agents, with the command line client or the REST API.
Two ways in
- The command line client.
filesplash upload ./photoshashes, uploads and prints a share link. It does the chunking, hashing, retries and resuming for you, and every command has--jsonoutput. Get it on the downloads page. - The REST API at
/api/v1, described in OpenAPI at /api/v1/openapi.yaml. Use it when you build your own integration.
Both use your FileSplash account. Sign up and confirm your email on the website first: accounts cannot be created through the API.
Quick start with the command line
On Linux, download the binary and put it on your PATH. The Windows and macOS installers do this for you.
curl -fLo filesplash https://filesplash.com/downloads/filesplash-0.1.0-linux-amd64
chmod +x filesplash && sudo mv filesplash /usr/local/bin/filesplash login --email [email protected]
filesplash upload ./final-cut.mp4 ./stills --name "Final cut" --expiry 2w --password hunter22
# → https://filesplash.com/d/01J…
filesplash download https://filesplash.com/d/01J… -o ~/Downloads --password hunter22
filesplash requests create "Logo files" --description "SVG or EPS please"
# → https://filesplash.com/r/01J…Expiry takes 1h, 3d, 2w, 1m, 1y, never (plans without expiry) or seconds. The default is a week, or your plan's maximum if that is shorter. Folders are uploaded as their files, side by side; names that clash get a number.
Command reference
filesplash login | Log in (verified accounts only) and save an API key on this device. |
filesplash whoami | The account, workspace and upload limits. |
filesplash upload PATH... [--name] [--expiry 7d] [--password] | Upload files and folders and print the share link. |
filesplash upload PATH... --request ID|URL | Send files to a file request instead. |
filesplash download LINK [-o DIR] [--password] | Download every file of a share link. Interrupted downloads resume. |
filesplash uploads ls | show ID | rm ID | List, inspect and delete the workspace's uploads. |
filesplash links create UPLOAD_ID --name ... | Add a share link (--expiry, --password, --max-downloads, --description). |
filesplash links update UPLOAD_ID LINK_ID ... | Change a link; only the flags you give change (--remove-password). |
filesplash links rm UPLOAD_ID LINK_ID | Delete a share link. |
filesplash requests ls | show ID | rm ID | List file requests, see what people sent, delete a request. |
filesplash requests create TITLE [--description] [--email] | Create a request and print the link to send. |
filesplash autostart on | off | status | Start the tray app when you log in to the computer. |
filesplash logout | Sign this device out (its key stops working). |
Global flags: --json prints one JSON object with a status on stdout (progress goes to stderr), and --server URL talks to another FileSplash site. Exit codes: 0 ok, 1 error, 2 usage, 3 not logged in or the key was revoked.
Scripts and AI agents
The command line is the easiest way for an agent to send a file: it needs no browser and handles the upload protocol. Log in once on the machine, or set FILESPLASH_API_KEY for a key you already have (from filesplash login; FILESPLASH_PASSWORD works for a non-interactive login). Then:
$ filesplash upload report.pdf --json
{
"status": "ok",
"upload_id": "01J…",
"link_id": "01J…",
"url": "https://filesplash.com/d/01J…",
"files": 1,
"size": 482113,
"failed": []
}A short summary for language models is at /llms.txt, and the API is listed for discovery at /.well-known/api-catalog.
API: authentication
Exchange an email and password for an API key, then send it as a Bearer token. Keys last until they are revoked.
curl -s https://filesplash.com/api/v1/auth/login \
-H 'Content-Type: application/json' \
-d '{"email":"[email protected]","password":"…","device_name":"build-server"}'
{"status":"ok","key":"fsk_3hT9…","key_id":"01J…"}
curl -s https://filesplash.com/api/v1/me -H 'Authorization: Bearer fsk_3hT9…'- Only verified accounts get a key (
email_unverifiedotherwise). There is no sign-up endpoint. - A key acts in one workspace. If your account is in several, login answers
workspace_requiredwith the list: log in again withworkspace_id. - Every device with a key is listed on Profile → Devices, where you can sign it out. Changing your password signs out every device.
- Ten failed logins per IP or email in 15 minutes are refused with HTTP 429.
API: answers and errors
Every JSON answer has a status. "ok" is success; anything else is an expected outcome with a message, such as not_found, forbidden (your role lacks the permission), validation_failed (with per-field fields) or link_expired. These answer HTTP 200, so always check status.
HTTP error codes mean protocol problems: 400 malformed JSON, 401 missing or invalid key (unauthorized, invalid_key), 404 unknown endpoint, 413 body too large, 429 rate limited and 500.
{"status":"validation_failed","message":"Please correct the highlighted fields.","fields":{"expiry":"That expiry is longer than your plan allows."}}API: endpoints
| Method | Path | What it does |
|---|---|---|
| POST | /api/v1/auth/login | Email and password → API key |
| POST | /api/v1/auth/logout | Revoke the key in use |
| GET | /api/v1/me | User, workspace, permissions and upload limits |
| GET | /api/v1/uploads | The workspace's uploads |
| POST | /api/v1/uploads | Start an upload (file names, sizes and hashes) |
| GET | /api/v1/uploads/{id} | An upload with its files, links and totals |
| DELETE | /api/v1/uploads/{id} | Delete an upload |
| POST | /api/v1/uploads/{id}/complete | Report files the storage nodes stored |
| POST | /api/v1/uploads/{id}/files/{file_id}/resume | Fresh tokens for an unfinished file |
| POST | /api/v1/uploads/{id}/links | Add a share link |
| GET / PATCH / DELETE | /api/v1/uploads/{id}/links/{link_id} | Read, change or delete a share link |
| GET | /api/v1/links/{link_id} | A share link's files and download URLs (no key needed) |
| GET | /api/v1/download/{link_id}/{file_id}/{token} | Download one file (302 to the storage node) |
| GET / POST | /api/v1/requests | List or create file requests |
| GET / PATCH / DELETE | /api/v1/requests/{id} | Read (with the files people sent), change or delete a request |
Field-by-field details are in the OpenAPI description. Links and requests use PATCH: only the fields you send change.
API: uploading
Files go straight to a storage node in blocks. Every file and block is identified by its SHA-256, so a file that is already stored is never sent again and an interrupted upload resumes.
- Read
limits.block_sizefromGET /api/v1/me. Split each file into blocks of that size (the last one may be shorter; an empty file is one empty block).block_hashis the lowercase hex SHA-256 of a block.file_hashis the SHA-256 of the raw 32-byte block hashes joined in order, also for a single block. POST /api/v1/uploadswithname,expiry(seconds; 0 for never on plans that allow it) and the files'name,size,file_hashandblock_hashes. The answer has the upload'slink_urland, for each file, anupload_endpointwith tokens.POST {upload_endpoint}/api/take-file/{file_id}/{file_hash}/{file_token}with{"blocks": [{"block_hash", "block_token"}, …]}. The node answersokorfile_existswith acomplete_token, ormissing_blockswith the hashes it still needs.- Send each missing block as the raw request body to
POST {upload_endpoint}/api/take-block/{file_id}/{file_hash}/{block_hash}/{block_token}(answersok,block_exists,file_existsorhash_mismatch: send it again), then call take-file again. POST /api/v1/uploads/{id}/completewith thecomplete_tokens. To protect the share link,PATCHit with apassword.
Store tokens last 48 hours. For a file that did not finish in time, hash it again and call the resume endpoint for fresh ones.
API: downloading
The id of a share link is the last part of its URL (https://filesplash.com/d/{link_id}). Reading a link needs no key; send X-Link-Password for protected links.
curl -s https://filesplash.com/api/v1/links/01J… -H 'X-Link-Password: hunter22'
{"status":"ok","link":{"name":"Final cut","files":[{"file_name":"final-cut.mp4","size":734003200,"url":"https://filesplash.com/api/v1/download/…"}]},…}
curl -fLo final-cut.mp4 'https://filesplash.com/api/v1/download/…'Download URLs last 24 hours and every request counts as a download against the link's limit. The storage nodes support Range requests, so curl -C - resumes.