API reference
Save to a destination
POST /v1/destinations/upload. Get a 15-minute address to send a file straight to your bucket.
GET /v1/destinations lists the destinations an account has connected.
json
{ "destinations": [{ "name": "invoices", "kind": "s3", "bucket": "my-company-files", "prefix": "ferry/" }] }POST /v1/destinations/upload
{ "destination": "invoices", "filename": "invoice.pdf", "size": 48213, "content_type": "application/pdf" }Send the file to url with the returned method (PUT for S3 and Google Drive, POST for Dropbox), exactly the headers returned, and a body of exactly size bytes. An S3 address works for 15 minutes, a Dropbox one for 4 hours, and a Google Drive one for a week.
Errors: not-found (no destination with that name), too-big, bad-size, slow-down, wrong-scope, bad-key.