Reserve organization storage quota and return a short-lived signed TUS transport. File bytes are uploaded directly to Storage.
Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
In: cookie
uuidapplication/json
File metadata and destination for the upload reservation.
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/organizations/123/files/uploads" \ -H "Content-Type: application/json" \ -d '{ "driveId": "e2a27b28-2bdf-4a04-91ba-ccbfe56585e5", "expectedBytes": 1, "fileName": "string", "idempotencyKey": "string", "mediaType": "string", "nodeId": null, "parentId": null }'{ "bucket": "string", "expiresAt": "string", "path": "string", "reservationId": "54c41ef9-5629-4a9c-bb0d-10f615966bd0", "token": "string", "tusEndpoint": "http://example.com"}uuid0 < value1 <= length <= 2401 <= length <= 2001 <= length <= 240uuidnulluuidnull