Streams a chunk of file data to the underlying storage. Include a Content-Range header (e.g. bytes 0-1048575/5242880) and send the raw bytes as the request body. When the total is known and this is the final chunk, the upload completes and the status becomes completed.
Clerk session JWT or Unkey API key passed as Bearer token
Optional. Identifies the end-user when authenticating with an API key. Ignored when authenticating with a Clerk JWT (the user ID is extracted from the token).
"user_abc123"
Optional. Email of the external user, used for audit logging. Only applicable when authenticating with an API key.
"user@example.com"
Upload ID
Chunk accepted or upload completed