Openapi
Reserve organization storage quota and return a short-lived signed TUS transport. File bytes are uploaded directly to Storage.
sb-auth-token<token>Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
organizationId*stringuuidFile metadata and destination for the upload reservation.
application/jsondriveId*stringuuidexpectedBytes*integer0 < valuefileName*string1 <= length <= 240idempotencyKey*string1 <= length <= 200mediaType*string1 <= length <= 240nodeId*|uuidnullparentId*|uuidnullReturns the signed direct Storage upload transport.
application/jsonbucket*string1 <= length <= 80expiresAt*stringpath*string1 <= length <= 1024reservationId*stringuuidtoken*string1 <= lengthtusEndpoint*stringuricurl -X POST 'https://app.localhost/api/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"}