Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Assets

Upload and manage files

get

List all assets

Authorizations
AuthorizationstringRequired

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).

Responses
get/assets
GET /assets HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*

Create an asset and get presigned upload URLs

post

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.

Authorizations
AuthorizationstringRequired

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).

Body
client_modified_atstring · date-timeRequired

Optional last modification time of the file on the client, as reported by the client.

Example: 2026-10-09T12:00:00Z
content_lengthinteger · nullableOptional

Exact file size in bytes. Required for multipart mode.

Example: 6442450944
content_sha256string · nullableOptional

Optional SHA-256 of the file contents.

filenamestringRequired

Original filename, without a directory path. name is accepted as a legacy alias.

Example: survey.laz
metadataobject · nullableOptional

Optional application metadata stored with the asset.

modestring · enum · nullableOptional

Upload strategy. Defaults to single.

Default: singlePossible values:
Responses
200

Asset created and upload URLs generated

application/json
anyOptional
or
and
post/assets/upload
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

Delete an asset by ID

Authorizations
AuthorizationstringRequired

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).

Path parameters
asset_idstringRequired
Responses
200Success

No content

delete/assets/{asset_id}
DELETE /assets/{asset_id} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success

No content

Complete an asset upload

post

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.

Authorizations
AuthorizationstringRequired

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).

Path parameters
asset_idstringRequired

Asset identifier returned by the upload endpoint

Body
upload_idstringRequired

Upload identifier returned when the asset was created.

Responses
200

Upload completed and asset ready

application/json
asset_idstringRequired
completedbooleanRequired
post/assets/{asset_id}/complete
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
}

Get a presigned upload URL

get

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.

Authorizations
AuthorizationstringRequired

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).

Path parameters
asset_idstringRequired

Asset identifier returned by the upload endpoint

Query parameters
part_numberinteger · nullableOptional

Part to get a URL for. Required for multipart uploads, omitted for single uploads.

Responses
200Success
application/json
upload_urlstring · uriRequired
get/assets/{asset_id}/upload-url
GET /assets/{asset_id}/upload-url HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
  "upload_url": "https://example.com"
}
post

Get presigned download URLs for source files by file index

Authorizations
AuthorizationstringRequired

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).

Body
Responses
post/download_files
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