Assets
Upload and manage files
List all assets
Long-lived API key configured in the server's auth file. The full header value is ApiKey <key> (note the literal ApiKey prefix, which is not standard HTTP — generated SDKs will need to prepend it).
GET /assets HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
Creates the asset metadata and returns presigned URLs for uploading the file bytes directly to storage. This endpoint accepts JSON, not multipart/form-data; do not send file bytes here.
Single: PUT the entire raw file to upload_url. The asset is then ready. Calling POST /assets/{asset_id}/complete afterwards is optional and records the uploaded size. A remote single upload is limited to 5 GiB.
Multipart: content_length is required. For each returned part, PUT bytes [(part_number - 1) * part_size, part_number * part_size) to its upload_url; the final part contains the remainder. Parts may be uploaded in parallel. Save each PUT response's ETag, then call POST /assets/{asset_id}/complete.
Presigned PUTs do not use LumiDB authorization. URLs expire after expiration_seconds (currently 86400). auto selects multipart only for remote files whose content_length is larger than 128 MiB; otherwise it selects single.
Long-lived API key configured in the server's auth file. The full header value is ApiKey <key> (note the literal ApiKey prefix, which is not standard HTTP — generated SDKs will need to prepend it).
Optional last modification time of the file on the client, as reported by the client.
2026-10-09T12:00:00ZExact file size in bytes. Required for multipart mode.
6442450944Optional SHA-256 of the file contents.
Original filename, without a directory path. name is accepted as a legacy alias.
survey.lazOptional application metadata stored with the asset.
Upload strategy. Defaults to single.
singlePossible values: Asset created and upload URLs generated
Invalid filename or upload parameters
POST /assets/upload HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 72
{
"content_length": 6442450944,
"filename": "survey.laz",
"mode": "multipart"
}{
"asset_id": "0195f4f2-0000-7000-8000-000000000000",
"expiration_seconds": 86400,
"part_size": 134217728,
"parts": [
{
"part_number": 1,
"upload_url": "https://storage.example/presigned-part-1"
},
{
"part_number": 2,
"upload_url": "https://storage.example/presigned-part-2"
}
],
"upload_id": "example-upload-id",
"upload_type": "multipart"
}Delete an asset by ID
Long-lived API key configured in the server's auth file. The full header value is ApiKey <key> (note the literal ApiKey prefix, which is not standard HTTP — generated SDKs will need to prepend it).
No content
DELETE /assets/{asset_id} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
No content
Finalizes an upload and records the uploaded size.
Multipart: required. Call this only after every part PUT succeeded. Use the same asset_id and upload_id, and send every part in ascending order with the exact ETag response header returned by its PUT (including surrounding quotes when present).
Single: optional. Call it without a request body after the PUT succeeded.
Repeating a completion that already succeeded also succeeds.
Long-lived API key configured in the server's auth file. The full header value is ApiKey <key> (note the literal ApiKey prefix, which is not standard HTTP — generated SDKs will need to prepend it).
Asset identifier returned by the upload endpoint
Upload identifier returned when the asset was created.
Upload completed and asset ready
Missing or invalid multipart upload ID or parts
Asset not found in the caller's organization
Single upload's file has not been uploaded yet
POST /assets/{asset_id}/complete HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 137
{
"parts": [
{
"etag": "\"etag-for-part-1\"",
"part_number": 1
},
{
"etag": "\"etag-for-part-2\"",
"part_number": 2
}
],
"upload_id": "example-upload-id"
}{
"asset_id": "text",
"completed": true
}Returns a fresh presigned PUT URL for a single upload, or for one multipart part when part_number is provided. URLs expire no later than 24 hours after asset creation. Expired assets cannot get new upload URLs. Presigned URLs can stop working earlier, so it's recommended to fetch the presigned URL just before starting the the upload.
Long-lived API key configured in the server's auth file. The full header value is ApiKey <key> (note the literal ApiKey prefix, which is not standard HTTP — generated SDKs will need to prepend it).
Asset identifier returned by the upload endpoint
Part to get a URL for. Required for multipart uploads, omitted for single uploads.
Asset data has already been uploaded or the upload deadline has passed
GET /assets/{asset_id}/upload-url HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"upload_url": "https://example.com"
}Get presigned download URLs for source files by file index
Long-lived API key configured in the server's auth file. The full header value is ApiKey <key> (note the literal ApiKey prefix, which is not standard HTTP — generated SDKs will need to prepend it).
POST /download_files HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 55
{
"table_downloads": [
{
"files": [
1
],
"table_name": "text"
}
]
}Last updated

