API

Upload files to Files.taxi from your own apps.

Authentication

Base URL: https://api.files.taxi. Send your personal API key in the X-API-Key header. The key works while your subscription is active.

Create a key in Files.taxi Dropzone › Settings › API Keys. The full key is shown once and stored in the macOS Keychain.

X-API-Key: <your API key>

POST /presign

Returns a pre-signed upload URL for one file.

filenamestring, required
contentTypestring, required
fileSizenumber, bytes
shortIdstring, a-z0-9. Adds the file to one of your links.
{
  "uploadUrl": "https://…",
  "publicUrl": "https://files.taxi/k3x9qa",
  "s3Key": "k3x9qa/report.pdf",
  "shortId": "k3x9qa",
  "expiresIn": 900
}

PUT uploadUrl

Upload the file body to uploadUrl with the same Content-Type. The URL expires after 900 seconds. The file is then available at publicUrl.

POST /presign-multi

Up to 100 files under one link. Each file takes filename, contentType, fileSize and an optional contentDisposition.

{
  "files": [
    { "filename": "a.png",
      "contentType": "image/png" }
  ]
}
{
  "shortId": "k3x9qa",
  "publicUrl": "https://files.taxi/k3x9qa",
  "files": [
    { "filename": "a.png",
      "uploadUrl": "https://…",
      "s3Key": "k3x9qa/a.png" }
  ],
  "expiresIn": 900
}

GET /uploads/mine

Your uploads, newest first. Query: limit (1–500, default 50), cursor, from, to. Returns uploads and nextCursor.

DELETE /api-keys/self

Revokes the key in the X-API-Key header. Returns { "success": true, "id": "…" }.

Limits

File size100 MB per file
Files per request100
Upload URLValid for 900 seconds
Rate100 requests per minute per IP

Errors

Errors are JSON: { "error": "…" }.

400Missing fields, invalid shortId, file over 100 MB, more than 100 files
401Missing or invalid API key
402subscription_required, with signupUrl
403no_account, or the shortId belongs to someone else
429Too many requests

Example

curl https://api.files.taxi/presign \
  -H "X-API-Key: $FILESTAXI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"filename":"report.pdf",
       "contentType":"application/pdf",
       "fileSize":48213}'
curl -X PUT "$UPLOAD_URL" \
  -H "Content-Type: application/pdf" \
  --data-binary @report.pdf