Import data with the API
Upload point clouds and rasters and import them as datasets from your own code.
Use the API to import point clouds and rasters from scripts and pipelines. For a one-off upload, use the import dialog in the app. See Importing data. Vector files, such as GeoJSON, are imported in the app.
An import has three steps: upload the file, start the import, and wait until it is ready. All requests go to https://api.lumidb.com/api and need an API key. The API quickstart shows how to send one.
Before you start
Check that LumiDB accepts your file. See Supported formats and file requirements.
Find out the coordinate reference system of the file, and decide which one the dataset is stored in. See Coordinate systems and projections.
1. Upload the file
Create an asset. LumiDB returns a URL to upload the file to.
curl -X POST https://api.lumidb.com/api/assets/upload \
-H "Authorization: apikey lumi_your_key_here" \
-H "Content-Type: application/json" \
-d '{"filename": "scan.laz", "client_modified_at": "2026-10-25T08:00:00Z"}'{
"asset_id": "01a17233-2dcf-7f32-b498-5f53e1d6c844",
"expiration_seconds": 86400,
"upload_type": "single",
"upload_url": "https://storage.example/presigned-upload-url"
}Send the file to upload_url with a PUT request. Don't send your API key to this URL. It is already signed.
Then tell LumiDB that the upload is finished. This records the size of the file.
The upload URL works for 24 hours (expiration_seconds). To get a new upload URL for an asset, send GET /assets/{asset_id}/upload-url. LumiDB answers 409 once the file has been uploaded, or after the 24 hours have passed.
2. Start the import
Post a manifest that names the dataset and says which assets to import.
The response comes back at once. The import runs in the background.
table_name
The name of the dataset. If a dataset with this name exists, the import replaces it and doesn't create a second dataset. Use a new name to keep both.
table_proj
The coordinate reference system the dataset is stored in. LumiDB converts every input into it.
inputs[].id
The asset_id of an uploaded file.
inputs[].proj
The coordinate reference system of the file. If you leave it out, LumiDB uses the one the file declares, then input_proj, then table_proj.
input_proj
Optional. The system to assume for files that don't declare one.
strict_mode
Optional. When true, a file without a coordinate reference system fails the import, and LumiDB doesn't assume table_proj.
You can import several files into one dataset by listing more than one input. Write a coordinate reference system as an EPSG code, such as EPSG:3067.
3. Wait until the import is ready
Request the status_url until status is ready, failed or cancelled. Every few seconds is enough.
status
What it means
queued
The import is waiting to start.
processing
LumiDB is importing the file. progress is a percentage and phase says what it is doing, for example Finalizing dataset.
ready
The dataset is available.
failed
The import failed. error_msg says why.
cancelled
Someone cancelled the import.
When the status is ready, the dataset appears in the response of GET /datasets. See the API quickstart.
Import a raster
Rasters use the same upload and the same manifest. Start the import with POST /rasters/import.
The response names the raster and gives a status_url. Request it the same way as for a point cloud.
Import a dataset again
To run an import again with the manifest of the dataset's newest version, post to /tables/{table_name}/reimport for a point cloud or /rasters/{raster_name}/reimport for a raster. This is what Re-process does in the app. LumiDB makes a new version of the dataset, and the response has the same shape as an import response, with a status_url to request.
Names of datasets you import in the app
The app doesn't replace a dataset when you import a second one with the same name. It adds a date and time to the name that LumiDB stores, for example my-scan-20261113-103151, and shows the name you typed as display_name. GET /datasets returns both. Use name, not display_name, in requests such as DELETE.
Download an original file
Organization admins can download an uploaded file again. Send GET /assets/{asset_id}/download. The response has a url that works for one hour and keeps the original file name.
Large files
A single upload takes files up to 5 GiB. For larger files, create the asset with "mode": "multipart" and the exact content_length. LumiDB then returns one upload URL for each part. See POST /assets/upload in the API reference.
Delete a dataset
Delete a point cloud by its name, and a raster the same way. Take the name from GET /datasets.
A complete example
This Python script uploads a file, starts the import and waits for the result. It reads the key from the environment variable LUMIDB_API_KEY.

