A file sharing API with webhooks: share links and read receipts from your code
Floppy's file sharing API turns a file into a short link like fpy.sh/k3x9 with one HTTP request, on every plan. Give each recipient their own link, read who opened it page by page, and register a webhook: Floppy POSTs a signed event to your server when someone opens a link, reads it to the end or downloads it.
fpy.sh/changelog/file-sharing-api-with-webhooks · Updated 20 November 2026 · This page as Markdown
How do I make a share link from my code?
Make an API key at fpy.sh/app/keys, then upload the file:
curl -T proposal.pdf -H "Authorization: Bearer $FLOPPY_KEY" \
"https://fpy.sh/api/drop/proposal.pdf?expiry=2W&label=Acme%20–%20Dana"The answer has share_url, the link to send. One request carries up to 100 MB; bigger files go up in parts with POST /api/v1/links. A file already online goes up with POST /api/v1/links/from-url. Every step is in the API guide.
How do I know when someone opens the file?
Register a webhook with your server's https URL:
curl -X POST -H "Authorization: Bearer $FLOPPY_KEY" -H "content-type: application/json" \
-d '{"url":"https://example.com/floppy-webhook"}' https://fpy.sh/api/v1/webhooksFloppy then POSTs each event to that URL, within about a minute:
| Event | When |
|---|---|
link.opened | Someone opened a link and read it |
link.returned | They came back to it |
link.completed | They read every page |
link.downloaded | They downloaded the file |
file.ready | A file passed the safety check and opens |
file.blocked | A file failed the safety check and won't open |
The link.* events follow Floppy's analytics rules: never your own visits, bots, email scanners or link previews.
How do I know a webhook really came from Floppy?
Each delivery has a Floppy-Signature header: t=<unix seconds>,v1=<hex HMAC-SHA256> of "<t>.<raw body>", made with the webhook's secret. The secret is shown once, when you make the webhook. Compute the same HMAC on your side and compare; reject timestamps older than five minutes. The API guide has a Node.js example.
Floppy-Delivery is the delivery's id and stays the same on every retry, so you can skip duplicates.
What happens if my server is down?
A 2xx answer within 10 seconds counts as delivered. Anything else is retried after 1, 5 and 15 minutes, then 1, 3, 6 and 12 hours. After 50 failed deliveries in a row the webhook switches itself off, and PATCH /api/v1/webhooks/<id> with { "active": true } turns it back on. GET /api/v1/webhooks/<id> shows the last 25 deliveries and how each went.
How do I keep each recipient apart?
Give each person a share: POST /api/v1/links/<id>/shares with { "label": "Acme – Dana" }. Each share has its own URL and its own analytics, and the webhook says which one was opened in who. Group links with folders (POST /api/v1/folders, then folderId on a new link), and replace a file without changing its link.
For AI agents
AI agents get the same features as MCP tools at https://fpy.sh/mcp (upload_file, create_share, get_link_analytics, who_viewed_since); see the agent docs. Webhooks and folders are REST only:
POST /api/v1/webhookswith{ url, events?, description? }returns{ webhook, secret, next }. Savesecret: it is shown once.POST /api/v1/webhooks/<id>/testsends apingand returns{ delivered, status, next }.GET /api/v1/folders,POST /api/v1/folderswith{ name, team? }.- A key with scope
ownmakes webhooks that hear only the links it created, and can't manage folders.
The whole API is in openapi.json.
Questions people ask
Is the Floppy API free?
Yes. The Floppy API and webhooks are on every plan, Free included. The plan sets storage, file size and how long links last: Free has 2 GB and 500 MB a file.
How many webhooks can I have?
Up to 10 per account. Each one can listen to all events or to a list you pick.
How fast does a webhook arrive?
Floppy sends webhooks every minute, so an event usually reaches your server within about a minute of the visit or the safety check.
Can I make API keys in Floppy for Mac?
Yes, from the next Floppy for Mac update: Settings › API makes, lists and revokes keys, as fpy.sh/app/keys does. A new key's secret is shown once.
What's the rate limit?
120 requests a minute per API key. Over it, Floppy answers 429 slow_down with retry_after in seconds.
What shipped in v1.58.0
- Build Floppy into your product: make share links from code, one per recipient, and read who opened what. Guide: fpy.sh/docs/api
- Webhooks: Floppy tells your server when a link is opened, read to the end or downloaded. Every delivery is signed and retried
- Folders in the API: make, list, rename and delete them, and file new links in one
- API keys from Floppy for Mac 1.17.0: make and revoke them under Settings › API, as fpy.sh/app/keys does