Returns a short-lived presigned S3 URL that allows you to upload a file directly to object storage without routing the file data through the Quark server. After the upload completes, call Ingest document to process the file.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/drona-gyawali/Quark/llms.txt
Use this file to discover all available pages before exploring further.
The presigned URL expires after 1 hour (3600 seconds). Upload the file before it expires.
Constraints
| Constraint | Value |
|---|---|
| Maximum file size | 50 MB |
| Allowed content types | application/pdf, image/jpeg, image/jpg |
| URL expiry | 3600 seconds (1 hour) |
Request body
The name of the file to upload (e.g.
report.pdf). Used to derive the storage key.MIME type of the file. Must be one of:
application/pdf, image/jpeg, image/jpg.Size of the file in bytes. Must not exceed 52,428,800 (50 MB).
Response
200 OK
Presigned upload details. Use the fields in this object to
PUT the file directly to object storage.400 Bad Request
Returned when the file fails size or type validation.A human-readable description of the validation failure — either
"Maximum file size limit exceed" (SizeError) or "Invalid File Type | Valid Type Are: ..." (TypeError).500 Internal Server Error
Always
"Internal Server Error".Machine-readable error code for debugging.
Example
Response
After receiving the presigned URL, upload the file with a
PUT request to uploadData.signedUrl, then pass uploadData.key as the key field to POST /api/v1/ingest/process.