Generate signed upload URL
POST/v1/files/upload-url
Generates a time-limited signed URL for direct upload to cloud storage. The client must compute the SHA-256 hash of the file content before calling this endpoint.
If the file already exists (matching hash), the response will have exists: true and
no upload URL will be provided - the file can be used immediately via the returned fileRef.
Direct Upload Flow:
- Client computes SHA-256 hash of file content
- Call this endpoint with the hash and content type
- If
exists: false, upload file directly to theuploadUrlusing PUT - Use the
fileRefto reference the file in subsequent API calls
Project Scoping: For OAuth auth, requires X-Project-ID header.
Request
Responses
- 200
- 400
- 401
Signed upload URL generated
Bad request
Unauthorized