Uploads
Start an upload
Start uploading a file from your device
POST
Reserves the file's size in your storage and returns how to split it: send each part with PUT /v1/uploads/{id}/parts/{n} (every part partSize bytes but the last), then POST /v1/uploads/{id}/complete. Fastwater then processes it like a downloaded file (media info, MP4, subtitles), as a transfer with sourceType: "upload". Files up to 5 TiB. An upload left unfinished for 2 days is dropped.
bearer transfers:writeheader
AuthorizationBearer <token>An API key, an OAuth access token, or a signed-in session token.
Scope: transfers:write
application/json- body
name*stringLength
1 <= length <= 255sizeBytes*integerRange
0 < value <= 5497558138880mimeType?stringLength
length <= 255folder?stringLength
length <= 2560Upload started
application/json- response
id*stringpartSize*integerpartCount*integeruploadedParts*array<integer>curl -X POST 'https://fastwater.app/v1/uploads' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "sizeBytes": 1}'Example Response
{ "id": "string", "partSize": 0, "partCount": 0, "uploadedParts": [ 0 ]}