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.
filename | string, required |
|---|---|
contentType | string, required |
fileSize | number, bytes |
shortId | string, 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 size | 100 MB per file |
|---|---|
| Files per request | 100 |
| Upload URL | Valid for 900 seconds |
| Rate | 100 requests per minute per IP |
Errors
Errors are JSON: { "error": "…" }.
| 400 | Missing fields, invalid shortId, file over 100 MB, more than 100 files |
|---|---|
| 401 | Missing or invalid API key |
| 402 | subscription_required, with signupUrl |
| 403 | no_account, or the shortId belongs to someone else |
| 429 | Too 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