files
Request Upload Url
Request a presigned upload URL for direct client-side upload to R2.
This is the recommended upload flow:
- Client calls this endpoint with filename and content_type
- Backend creates a pending file record and returns presigned POST URL
- Client uploads directly to R2 using the presigned URL
- Client calls /confirm to verify upload and get actual file size
POST
Request Upload Url
Documentation Index
Fetch the complete documentation index at: https://documentation.datalab.to/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Body
application/json
Response
Successful Response
Response with presigned PUT URL for direct R2 upload.
Previous
Confirm UploadConfirm that a file was successfully uploaded to R2.
Call this endpoint after successfully uploading a file using the presigned URL
from /upload. This will verify the file exists in R2, get the actual file size,
and mark it as completed.
Accepts either integer file_id (e.g., "4") or hashid (e.g., "npl94jxy").
This makes the file available for use in workflows.
Next
Request Upload Url