Fileport API

Upload files from your code or your AI assistant

Quick start

1

Create a key

In your account, open API and click Create Key. Keys come with every paid plan.

2

Start the upload

Send the names and sizes of your files. You get the link and an address for each file.

3

Send the files

Send each file to its address. People can download while it uploads.

# Start the upload
curl https://api.fileport.io/v1/uploads \
  -H "Authorization: Bearer $FILEPORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"files": [{"name": "report.pdf", "size": 48213377}]}'

# Send the file to the uploadUrl in the answer
curl -T report.pdf "$UPLOAD_URL"
Answer
{
  "id": "Kd7pQx3mRt9a",
  "product": "send",
  "name": "report.pdf",
  "link": "https://fileport.io/Kd7pQx3mRt9a",
  "expiresAt": "2026-12-17T12:00:00.000Z",
  "files": [
    {
      "index": 0,
      "name": "report.pdf",
      "size": 48213377,
      "parts": 1,
      "uploadUrl": "https://eu-central-3f9a12c4.fileport.io/v1/files/eyJ…/eyJ…"
    }
  ]
}

API keys

Permission
Can use
Full Access
Every call
Upload Only
Upload, Add Files to its own uploads and Account
Read Only
Get, List and Account

Sending your key

Send it in the Authorization header after Bearer: Authorization: Bearer fpk_…

Use keys on your servers only. Browsers can't call the API, so a key in a web page never works.

Uploading files

Files up to 100 MB go in one request, and bigger ones in 100 MB parts

Large files

Send parts to the file's address with ?part=1, ?part=2 and on, in any order and several at once. The file finishes when every part is in.

Many files

Every file has its own address. Send them one after another or several at once.

Dropped connections

Send that part again. A GET on the address lists the parts that arrived, so a script that restarts can carry on.

# Cut a 2.5 GB file into 100 MB parts, then send part 1, 2, 3 and on
split -b 100000000 video.mov part-
n=1
for part in part-*; do
  curl -T "$part" "$UPLOAD_URL?part=$n"
  n=$((n + 1))
done

An upload ends when no bytes arrive for 4 hours, or for 24 hours from 2 GB up

Method
Address
Call
What it does
POST
/v1/uploads
Upload
Starts a Send upload or a photobook
POST
/v1/uploads/{id}/files
Add Files
Adds files to an upload
GET
/v1/uploads/{id}
Get
An upload's details and download link
GET
/v1/uploads
List
Your uploads, newest first, 100 at a time
PATCH
/v1/uploads/{id}
Edit
Name, expiry, password and more
DELETE
/v1/uploads/{id}/files/{indices}
Remove Files
Removes files from an upload
DELETE
/v1/uploads/{id}
Delete
Deletes an upload
GET
/v1/account
Account
Plan, storage and uploads left today
GET /v1/uploads/Kd7pQx3mRt9a
{
  "id": "Kd7pQx3mRt9a",
  "product": "send",
  "name": "Q3 report",
  "link": "https://fileport.io/Kd7pQx3mRt9a",
  "size": 48213377,
  "expiresAt": "2026-12-17T12:00:00.000Z",
  "finished": true,
  "downloads": 3,
  "downloadUrl": "https://fileport.io/get/eyJ…",
  "downloadUrlExpiresAt": "2026-11-19T12:00:00.000Z",
  "files": [
    { "index": 0, "name": "report.pdf", "size": 48213377, "finished": true }
  ]
}

Once finished is true, the download link is the file itself, or a ZIP of every file, and works for 2 days without counting as a download. A photobook's answer has its album link only.

Limits and errors

Limit
On your plan
Upload size
1 TB on Pro, 2 TB on Ultra
Files in an upload
2,000, or 4,000 in a photobook
Uploads a day
10,000
Calls
300 a minute per key
Parts
100 MB each, the last one the rest of the file
Upload addresses
Work for 7 days

Errors

An error answers with its status and {"error": {"code": "…", "message": "…"}}. A 429 says in Retry-After how many seconds to wait.

Code
Status
Message
key.missing
401
Send your API key as Authorization: Bearer <key>
key.invalid
401
This API key is wrong or was revoked
key.paused
403
API keys work while the account is on a paid plan
Show All
key.permission
403
This key's permission doesn't allow this call
account.locked
403
This account is locked
api.notfound
404
No such call
api.method
405
This address doesn't take this method
api.invalidparams
400
A field is missing or wrong
api.invalidjson
400
The body isn't JSON
api.toolarge
413
The body is over 2 MB
api.ratelimited
429
Too many calls. Wait as long as Retry-After says
api.failed
500
Something went wrong. Try again
upload.notfound
404
This account has no upload with this id
upload.invalidparams
400
A field is missing or wrong
upload.toomanyfiles
400
Too many files for one upload
upload.invalidlength
400
This upload has no room for more files
upload.notphotobook
400
A photobook needs mostly photos and videos
upload.lastfile
400
An upload needs one file at least. Delete the upload instead
upload.filetoobig
413
The upload is larger than your plan allows
upload.storageused
403
The account's storage is full
upload.suspended
403
The account's plan isn't active
upload.banned
403
This account can't upload
upload.vpndetected
403
Uploads through a VPN can't be made
upload.blockedfile
400
One of the files can't be uploaded
upload.ratelimited
429
Too many uploads today
upload.invalidadd
409
The upload changed meanwhile. Try again
upload.servernotavail
503
No upload server is available. Try again in a minute
upload.residencypaused
503
No upload server in your account's data residency region works right now
upload.nospace
507
The upload server is full. Start the upload again
upload.expired
410
This upload ended after hours without bytes. Start it again
upload.toomuchdata
413
Parts were sent again too often. Start the upload again
file.notfound
404
No file has this address. Addresses work for 7 days
file.part
400
part must be one of the file's parts, counted from 1
file.lengthrequired
411
Send each part with its Content-Length
file.partlength
400
Each part is 100 MB, the last one the rest of the file
file.done
409
This file is whole already

Command line and MCP

Terminal
export FILEPORT_API_KEY=fpk_…
npx @fileport/cli send ./build
claude mcp add fileport -e FILEPORT_API_KEY=fpk_… -- npx -y @fileport/cli mcp

Give an AI assistant an Upload Only key, so it can't see or delete your uploads