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.

The API, CLI, webhooks and MCP come with Pro, Team and Agency. See plans. Updated 26 November 2026.

Get an API key

  1. Open Developers in the app and create a key. It shows once, so copy it somewhere safe.
  2. Send it on every request as Authorization: Bearer sbl_live_...
  3. 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

  1. POST /api/v1/transfers with the path and size of every file. You get the transfer and its file ids back.
  2. POST /api/v1/transfers/{id}/uploads with those file ids. Every object comes back with its part plan and an upload token.
  3. PUT /_up/part/{n}?u={token} for each part, or PUT /_up/file?u={token} for the whole object when multipart is false. Keep the receipt from every answer.
  4. POST /api/v1/transfers/{id}/files/{fid}/complete with those receipts, once per file.
  5. POST /api/v1/transfers/{id}/finalize and 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

MethodPathWhat it does
GET/api/v1/meShow the account, workspace, plan and limits a key acts for
POST/api/v1/transfersCreate a transfer and reserve its files
GET/api/v1/transfersList 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}/finalizeFinalize a transfer so its link goes live
POST/api/v1/transfers/{id}/uploadsGet 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}/partsList the parts already stored for one object
POST/api/v1/transfers/{id}/files/{fid}/completeComplete a file once all its parts are stored
PUT/api/v1/transfers/{id}/manifestStore the sealed file list of an end-to-end encrypted transfer
POST/api/v1/t/{slug}/unlockOpen a link's password, email code or key gate; a key stands in for the human check
POST/api/v1/t/{slug}/claimGet 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.

EventWhen it fires
transfer.createdA transfer finished uploading and its link works.
transfer.downloadedA recipient downloaded every file of a transfer.
transfer.expiredA transfer reached its expiry date and its link stopped working.
submission.receivedSomeone sent files through one of your receive links.
payment.receivedA 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.

ToolWhat it does
create_transfer_from_urlsCreate 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_transferRead 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_transfersList the workspace's transfers, newest first. Pass next_cursor back as cursor for the next page.
create_receive_linkCreate 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.

StatusCodeWhat it means
401token_invalidThe key is malformed, unknown or revoked.
403forbiddenKeys can't call this endpoint. Billing, account and key settings stay in the app.
403plan_limitThe workspace plan doesn't include the API.
429rate_limitedToo many requests. Back off and try again.