For developers
SendByLink API
Send large files by link from your own code. Create a transfer, upload the files, finalize it and you get the share link back. Signed webhooks tell your systems when files go out, get downloaded or expire, and the MCP server lets AI agents send files for you.
Get an API key
- Open Developers in the app and create a key. It shows once, so copy it somewhere safe.
- Send it on every request as
Authorization: Bearer sbl_live_... - A key acts as the account that made it, in that account's workspace. Each account keeps up to 10 live keys and can revoke any of them from the same page.
curl https://sendbylink.com/api/v1/me \
-H "Authorization: Bearer sbl_live_..."Send a file in five calls
POST /api/v1/transferswith the path and size of every file. You get the transfer and its file ids back.POST /api/v1/transfers/{id}/uploadswith those file ids. Every object comes back with its part plan and an upload token.PUT /_up/part/{n}?u={token}for each part, orPUT /_up/file?u={token}for the whole object whenmultipartis false. Keep the receipt from every answer.POST /api/v1/transfers/{id}/files/{fid}/completewith those receipts, once per file.POST /api/v1/transfers/{id}/finalizeand the link is live.
Uploads resume. GET /api/v1/uploads/{object_id}/parts lists the parts already stored, so a script that crashed picks up where it stopped.
Endpoints
| Method | Path | What it does |
|---|---|---|
| GET | /api/v1/me | Show the account, workspace, plan and limits a key acts for |
| POST | /api/v1/transfers | Create a transfer and reserve its files |
| GET | /api/v1/transfers | List transfers, newest first |
| GET | /api/v1/transfers/{id} | Get a transfer with its files and downloads |
| DELETE | /api/v1/transfers/{id} | Delete a transfer and end its link |
| POST | /api/v1/transfers/{id}/finalize | Finalize a transfer so its link goes live |
| POST | /api/v1/transfers/{id}/uploads | Get upload URLs for the files of a transfer |
| GET | /api/v1/uploads/{object_id} | Renew the upload URL of one object |
| GET | /api/v1/uploads/{object_id}/parts | List the parts already stored for one object |
| POST | /api/v1/transfers/{id}/files/{fid}/complete | Complete a file once all its parts are stored |
| PUT | /api/v1/transfers/{id}/manifest | Store the sealed file list of an end-to-end encrypted transfer |
| POST | /api/v1/t/{slug}/unlock | Open a link's password, email code or key gate; a key stands in for the human check |
| POST | /api/v1/t/{slug}/claim | Get download URLs for a link's files; a key stands in for the human check |
Every field and response is in one OpenAPI 3.1 document at /api/v1/openapi.json. Load it into Postman, Insomnia or your client generator.
Webhooks
Add up to 5 HTTPS endpoints per workspace, each with its own events and signing secret. We POST a JSON event to each one as things happen.
| Event | When it fires |
|---|---|
transfer.created | A transfer finished uploading and its link works. |
transfer.downloaded | A recipient downloaded every file of a transfer. |
transfer.expired | A transfer reached its expiry date and its link stopped working. |
submission.received | Someone sent files through one of your receive links. |
payment.received | A payment for a pass or a subscription went through. |
Every request carries a sendbylink-signature header like t=1700000000,v1=5257a8.... The v1 value is the hex HMAC-SHA256 of the timestamp, a dot and the raw body, keyed with the endpoint secret. Refuse a request whose t is more than five minutes off your clock, so a captured request can't be replayed.
import { createHmac, timingSafeEqual } from "node:crypto";
export function verify(header, rawBody, secret) {
const fields = Object.fromEntries(header.split(",").map((field) => field.split("=")));
const expected = createHmac("sha256", secret).update(`${fields.t}.${rawBody}`).digest("hex");
const given = String(fields.v1 ?? "");
const fresh = Math.abs(Date.now() / 1000 - Number(fields.t)) < 300;
return fresh && given.length === expected.length &&
timingSafeEqual(Buffer.from(given), Buffer.from(expected));
}Answer with a 2xx. Anything else, redirects included, counts as a failure and we try again after 10 seconds, 1 minute, 10 minutes, 1 hour and 6 hours. The idempotency-key header carries the event id and stays the same on every retry. An endpoint that keeps failing for 3 days gets turned off, and we email you.
MCP server
Connect any MCP client to https://sendbylink.com/mcp over Streamable HTTP, with an API key as the Bearer token. There is no session to keep.
| Tool | What it does |
|---|---|
create_transfer_from_urls | Create a SendByLink transfer from up to 20 HTTPS file URLs. Returns the transfer id and share link right away; the files are copied in the background, so call get_transfer until its state is active before sharing the link. |
get_transfer | Read one transfer: state, share link, files, download counts and, for URL imports, how far the copy is and why it failed if it did. |
list_transfers | List the workspace's transfers, newest first. Pass next_cursor back as cursor for the next page. |
create_receive_link | Create an upload link other people can send you files through. Returns the link to share; what they send shows up under Received in the app. |
Errors
Errors come back as JSON with a stable code, a readable message and a request_id to quote to support.
| Status | Code | What it means |
|---|---|---|
| 401 | token_invalid | The key is malformed, unknown or revoked. |
| 403 | forbidden | Keys can't call this endpoint. Billing, account and key settings stay in the app. |
| 403 | plan_limit | The workspace plan doesn't include the API. |
| 429 | rate_limited | Too many requests. Back off and try again. |