> For the complete documentation index, see [llms.txt](https://docs.lumidb.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lumidb.com/api-reference/tables.md).

# Tables

Tabular point-cloud datasets

## POST /query\_volume

> Compute the volume between a point cloud surface and a base plane defined by polygon vertices with Z heights

```json
{"openapi":"3.1.0","info":{"title":"LumiDB HTTP API","version":"0.0.1"},"tags":[{"name":"tables","description":"Tabular point-cloud datasets"}],"security":[{"ApiKey":[]},{"Bearer":[]},{"Basic":[]},{"Clerk":[]},{"Link":[]}],"components":{"securitySchemes":{"ApiKey":{"type":"apiKey","in":"header","name":"Authorization","description":"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)."},"Bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Scoped LumiDB JWT issued by `POST /create_token`. Send as `Authorization: Bearer <jwt>`."},"Basic":{"type":"http","scheme":"basic","description":"HTTP Basic where the password is an API key (username is ignored). Send as `Authorization: Basic base64(\"user:<api_key>\")`."},"Clerk":{"type":"apiKey","in":"header","name":"Authorization","description":"Clerk-issued session JWT (used by the web UI). The full header value is `Clerk <jwt>`."},"Link":{"type":"apiKey","in":"header","name":"Authorization","description":"Short-lived link token granting access to a shared project. The full header value is `Link <token>`."}},"schemas":{"QueryVolumeParams":{"type":"object","required":["table_names","boundary","base_heights"],"properties":{"base_heights":{"type":"array","items":{"type":"number","format":"double"},"description":"One Z value per polygon vertex, in absolute coordinates"},"boundary":{"$ref":"#/components/schemas/BoundaryFilter"},"boundary_proj":{"type":["string","null"]},"classification_filter":{"type":["array","null"],"items":{"type":"integer","format":"int32","minimum":0},"uniqueItems":true},"meta_filter":{"type":["array","null"],"items":{"type":"integer","format":"int32","minimum":0},"uniqueItems":true},"table_names":{"type":"array","items":{"type":"string"}}}},"BoundaryFilter":{"oneOf":[{"type":"object","required":["Aabb"],"properties":{"Aabb":{"$ref":"#/components/schemas/AABBf64"}}},{"type":"object","required":["Polygon"],"properties":{"Polygon":{"type":"array","items":{"type":"object"},"maxItems":2,"minItems":2}}}]},"AABBf64":{"type":"object","required":["min","max"],"properties":{"max":{"$ref":"#/components/schemas/Vec3"},"min":{"$ref":"#/components/schemas/Vec3"}}},"Vec3":{"type":"array","items":{"type":"number","format":"double"},"maxItems":3,"minItems":3}}},"paths":{"/query_volume":{"post":{"tags":["tables"],"description":"Compute the volume between a point cloud surface and a base plane defined by polygon vertices with Z heights","operationId":"handle_query_volume","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryVolumeParams"}}},"required":true},"responses":{}}}}}
```

## POST /render

> Render tables to a PNG image. The response body is the image.

```json
{"openapi":"3.1.0","info":{"title":"LumiDB HTTP API","version":"0.0.1"},"tags":[{"name":"tables","description":"Tabular point-cloud datasets"}],"security":[{"ApiKey":[]},{"Bearer":[]},{"Basic":[]},{"Clerk":[]},{"Link":[]}],"components":{"securitySchemes":{"ApiKey":{"type":"apiKey","in":"header","name":"Authorization","description":"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)."},"Bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Scoped LumiDB JWT issued by `POST /create_token`. Send as `Authorization: Bearer <jwt>`."},"Basic":{"type":"http","scheme":"basic","description":"HTTP Basic where the password is an API key (username is ignored). Send as `Authorization: Basic base64(\"user:<api_key>\")`."},"Clerk":{"type":"apiKey","in":"header","name":"Authorization","description":"Clerk-issued session JWT (used by the web UI). The full header value is `Clerk <jwt>`."},"Link":{"type":"apiKey","in":"header","name":"Authorization","description":"Short-lived link token granting access to a shared project. The full header value is `Link <token>`."}},"schemas":{"RenderParams":{"allOf":[{"$ref":"#/components/schemas/PointQuery"},{"type":"object","required":["output_proj","width","height","camera"],"properties":{"background":{"type":["array","null"],"items":{"type":"integer","format":"int32","minimum":0},"description":"RGBA, default opaque white."},"camera":{"$ref":"#/components/schemas/Camera"},"height":{"type":"integer","format":"int32","minimum":0},"output_proj":{"type":"string"},"point_size":{"type":["number","null"],"format":"float","description":"Pixels, default 2."},"width":{"type":"integer","format":"int32","minimum":0}}}]},"PointQuery":{"type":"object","required":["table_names"],"properties":{"boundary":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/BoundaryFilter"}]},"boundary_proj":{"type":["string","null"]},"classification_filter":{"type":["array","null"],"items":{"type":"integer","format":"int32","minimum":0},"uniqueItems":true},"meta_filter":{"type":["array","null"],"items":{"type":"integer","format":"int32","minimum":0},"uniqueItems":true},"table_names":{"type":"array","items":{"type":"string"}}}},"BoundaryFilter":{"oneOf":[{"type":"object","required":["Aabb"],"properties":{"Aabb":{"$ref":"#/components/schemas/AABBf64"}}},{"type":"object","required":["Polygon"],"properties":{"Polygon":{"type":"array","items":{"type":"object"},"maxItems":2,"minItems":2}}}]},"AABBf64":{"type":"object","required":["min","max"],"properties":{"max":{"$ref":"#/components/schemas/Vec3"},"min":{"$ref":"#/components/schemas/Vec3"}}},"Vec3":{"type":"array","items":{"type":"number","format":"double"},"maxItems":3,"minItems":3},"Camera":{"type":"object","required":["position","target","projection"],"properties":{"far":{"type":["number","null"],"format":"double"},"near":{"type":["number","null"],"format":"double"},"position":{"$ref":"#/components/schemas/Vec3"},"projection":{"$ref":"#/components/schemas/Projection"},"target":{"$ref":"#/components/schemas/Vec3"},"up":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/Vec3"}]}}},"Projection":{"oneOf":[{"type":"object","required":["Perspective"],"properties":{"Perspective":{"type":"object","required":["fov_y_deg"],"properties":{"fov_y_deg":{"type":"number","format":"double"}}}}},{"type":"object","required":["Orthographic"],"properties":{"Orthographic":{"type":"object","required":["height"],"properties":{"height":{"type":"number","format":"double"}}}}}]}}},"paths":{"/render":{"post":{"tags":["tables"],"description":"Render tables to a PNG image. The response body is the image.","operationId":"handle_render","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenderParams"}}},"required":true},"responses":{"200":{"description":"The rendered image","content":{"image/png":{}}},"400":{"description":"Invalid parameters"},"404":{"description":"Table not found"}}}}}}
```

## POST /search

> Find the point-cloud and raster datasets visible to the caller whose footprint intersects a WGS84 bounding box. Edge contact counts as an intersection. A point-cloud footprint is an approximate grid-based outline of the points. A raster footprint is the union of the bounding rectangles of its input files and can include NoData areas. A match does not prove full coverage of the box. Entries have the same shape as in \`GET /datasets\`. Results are ordered by \`id\`. Paging is not supported yet: the response contains all matches.

```json
{"openapi":"3.1.0","info":{"title":"LumiDB HTTP API","version":"0.0.1"},"tags":[{"name":"tables","description":"Tabular point-cloud datasets"}],"security":[{"ApiKey":[]},{"Bearer":[]},{"Basic":[]},{"Clerk":[]},{"Link":[]}],"components":{"securitySchemes":{"ApiKey":{"type":"apiKey","in":"header","name":"Authorization","description":"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)."},"Bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Scoped LumiDB JWT issued by `POST /create_token`. Send as `Authorization: Bearer <jwt>`."},"Basic":{"type":"http","scheme":"basic","description":"HTTP Basic where the password is an API key (username is ignored). Send as `Authorization: Basic base64(\"user:<api_key>\")`."},"Clerk":{"type":"apiKey","in":"header","name":"Authorization","description":"Clerk-issued session JWT (used by the web UI). The full header value is `Clerk <jwt>`."},"Link":{"type":"apiKey","in":"header","name":"Authorization","description":"Short-lived link token granting access to a shared project. The full header value is `Link <token>`."}},"schemas":{"DatasetSearchRequest":{"type":"object","description":"Request body of `POST /search`.","required":["bbox"],"properties":{"bbox":{"type":"array","items":{"type":"number","format":"double"},"description":"WGS84 bounding box `[west, south, east, north]` in degrees. `west` must be less than\n`east`. For an area that spans 180° longitude, search with two boxes.","maxItems":4,"minItems":4}},"additionalProperties":false},"DatasetSearchResponse":{"type":"object","description":"Response body of `POST /search`.","required":["datasets"],"properties":{"datasets":{"type":"array","items":{"$ref":"#/components/schemas/DatasetListItem"}}}},"DatasetListItem":{"type":"object","required":["id","name","display_name","kind","created_at","size_bytes"],"properties":{"bounds_wgs84":{"type":["array","null"],"items":{"type":"number","format":"double"},"description":"[west, south, east, north, low, high]"},"created_at":{"type":"string"},"display_name":{"type":"string","description":"User-edited display name, falling back to `name`."},"id":{"type":"string","format":"uuid"},"kind":{"type":"string"},"name":{"type":"string","description":"Internal name used by type-specific API endpoints."},"proj":{"type":["string","null"]},"proj4_string":{"type":["string","null"]},"project_id":{"type":["string","null"],"format":"uuid"},"size_bytes":{"type":"integer","format":"int64"}}}}},"paths":{"/search":{"post":{"tags":["tables"],"description":"Find the point-cloud and raster datasets visible to the caller whose footprint intersects a WGS84 bounding box. Edge contact counts as an intersection. A point-cloud footprint is an approximate grid-based outline of the points. A raster footprint is the union of the bounding rectangles of its input files and can include NoData areas. A match does not prove full coverage of the box. Entries have the same shape as in `GET /datasets`. Results are ordered by `id`. Paging is not supported yet: the response contains all matches.","operationId":"handle_search","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetSearchRequest"}}},"required":true},"responses":{"200":{"description":"Matching datasets","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetSearchResponse"}}}},"400":{"description":"Invalid bounding box"},"401":{"description":"Missing or invalid `Authorization` header"},"422":{"description":"Malformed request body or unsupported field"}}}}}}
```

## GET /tables

> List all tables visible to the caller, with their native projection, content bounding box, and WGS84 bounds. The \`name\` field is the value to pass as \`table\_name\` in subsequent requests.

```json
{"openapi":"3.1.0","info":{"title":"LumiDB HTTP API","version":"0.0.1"},"tags":[{"name":"tables","description":"Tabular point-cloud datasets"}],"security":[{"ApiKey":[]},{"Bearer":[]},{"Basic":[]},{"Clerk":[]},{"Link":[]}],"components":{"securitySchemes":{"ApiKey":{"type":"apiKey","in":"header","name":"Authorization","description":"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)."},"Bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Scoped LumiDB JWT issued by `POST /create_token`. Send as `Authorization: Bearer <jwt>`."},"Basic":{"type":"http","scheme":"basic","description":"HTTP Basic where the password is an API key (username is ignored). Send as `Authorization: Basic base64(\"user:<api_key>\")`."},"Clerk":{"type":"apiKey","in":"header","name":"Authorization","description":"Clerk-issued session JWT (used by the web UI). The full header value is `Clerk <jwt>`."},"Link":{"type":"apiKey","in":"header","name":"Authorization","description":"Short-lived link token granting access to a shared project. The full header value is `Link <token>`."}},"schemas":{"TableListResponse":{"type":"object","description":"Response body of `GET /tables`.","required":["tables"],"properties":{"tables":{"type":"array","items":{"$ref":"#/components/schemas/TableInfo"}}}},"TableInfo":{"type":"object","description":"One entry in [`TableListResponse`].","required":["name","table_proj","content_aabb","bounds_wgs84","id"],"properties":{"bounds_wgs84":{"type":"array","items":{"type":"number","format":"double"},"description":"Axis-aligned bounds of the dataset boundary in WGS84."},"content_aabb":{"$ref":"#/components/schemas/AABBf64","description":"Axis-aligned bounding box of the points, in `table_proj` coordinates."},"id":{"type":"string","format":"uuid","description":"Stable dataset identifier (unchanged across renames)."},"name":{"type":"string","description":"Table identifier used by `/tables/{table_name}`, `query_spatial`, etc."},"project_id":{"type":["string","null"],"format":"uuid","description":"Project this dataset belongs to, or `null` if it is unassigned."},"table_proj":{"type":"string","description":"Native projection of the stored points (PROJ string or EPSG code)."}}},"AABBf64":{"type":"object","required":["min","max"],"properties":{"max":{"$ref":"#/components/schemas/Vec3"},"min":{"$ref":"#/components/schemas/Vec3"}}},"Vec3":{"type":"array","items":{"type":"number","format":"double"},"maxItems":3,"minItems":3}}},"paths":{"/tables":{"get":{"tags":["tables"],"description":"List all tables visible to the caller, with their native projection, content bounding box, and WGS84 bounds. The `name` field is the value to pass as `table_name` in subsequent requests.","operationId":"handle_table_list","responses":{"200":{"description":"List of tables","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TableListResponse"}}}},"401":{"description":"Missing or invalid `Authorization` header"}}}}}}
```

## POST /tables/import

> Imports one or more point-cloud assets into a dataset version, reprojecting each input from its \`proj\` into \`table\_proj\`. The import is queued and returns immediately.\
> \
> \*\*Import process\*\*\
> 1\. Create assets with \`POST /assets/upload\` and upload the file bytes to the returned URLs.\
> 2\. POST the manifest to this endpoint.\
> 3\. Poll the returned \`status\_url\` until \`status\` is \`ready\` or \`failed\`.\
> \
> \*\*Minimal manifest\*\*\
> \`\`\`json\
> {\
> &#x20; "table\_name": "my\_scan",\
> &#x20; "table\_proj": "EPSG:3067",\
> &#x20; "inputs": \[{ "id": "\<asset-id>", "proj": "EPSG:3067" }]\
> }\
> \`\`\`\
> \
> For a custom PROJ grid, upload it as an asset, map its plain filename to the asset ID in \`custom\_grids\`, and reference the filename from an input \`proj\`. Custom grids cannot be used by \`table\_proj\`, \`valid\_bounds.proj\`, raster imports, queries, or exports.

````json
{"openapi":"3.1.0","info":{"title":"LumiDB HTTP API","version":"0.0.1"},"tags":[{"name":"tables","description":"Tabular point-cloud datasets"}],"security":[{"ApiKey":[]},{"Bearer":[]},{"Basic":[]},{"Clerk":[]},{"Link":[]}],"components":{"securitySchemes":{"ApiKey":{"type":"apiKey","in":"header","name":"Authorization","description":"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)."},"Bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Scoped LumiDB JWT issued by `POST /create_token`. Send as `Authorization: Bearer <jwt>`."},"Basic":{"type":"http","scheme":"basic","description":"HTTP Basic where the password is an API key (username is ignored). Send as `Authorization: Basic base64(\"user:<api_key>\")`."},"Clerk":{"type":"apiKey","in":"header","name":"Authorization","description":"Clerk-issued session JWT (used by the web UI). The full header value is `Clerk <jwt>`."},"Link":{"type":"apiKey","in":"header","name":"Authorization","description":"Short-lived link token granting access to a shared project. The full header value is `Link <token>`."}},"schemas":{"ImportManifest":{"type":"object","required":["table_name","table_proj","inputs"],"properties":{"custom_grids":{"type":"object","description":"Custom PROJ grid asset IDs keyed by plain file name. Each grid must be referenced by an\ninput's `proj`, never by `table_proj` or `valid_bounds.proj`. Not supported by raster imports.","additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}},"exclude_classes":{"type":"array","items":{"type":"integer","format":"int32","minimum":0}},"input_proj":{"type":["string","null"],"description":"The CRS to assume for any input that neither states a `proj` of its own nor declares one\nin its header. Falls back to `table_proj`."},"inputs":{"type":"array","items":{"$ref":"#/components/schemas/InputAsset"}},"project_id":{"type":["string","null"],"format":"uuid"},"strict_mode":{"type":["boolean","null"],"description":"Fail if any input is rejected. Inputs without their own, header, or manifest-level CRS\ndo not implicitly use `table_proj`."},"swap_xy":{"type":"boolean"},"table_name":{"type":"string"},"table_proj":{"type":"string","description":"A CRS that declares no height axis may be suffixed `+ellipsoidal`, as in\n`EPSG:3857+ellipsoidal`, to say that Z is ellipsoidal height in the CRS's horizontal unit.\nWithout it the table's Z keeps an unknown vertical datum and is never shifted, only\nrescaled."},"user_data":{"type":"object","additionalProperties":{},"propertyNames":{"type":"string"}},"valid_bounds":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/ExtentWithProjection"}]}}},"InputAsset":{"type":"object","required":["id"],"properties":{"id":{"type":"string"},"proj":{"type":["string","null"],"description":"The file's own CRS, `+ellipsoidal` included when its heights are ellipsoidal and the table\nstores them on a vertical datum of its own. Omit it to use the CRS the file declares in its\nheader, falling back to the manifest's `input_proj` and, when not strict, `table_proj`."}},"additionalProperties":{}},"ExtentWithProjection":{"type":"object","required":["extent","proj"],"properties":{"extent":{"$ref":"#/components/schemas/Extent"},"proj":{"type":"string"}}},"Extent":{"type":"array","items":{"type":"number","format":"double"}},"TableImportResponse":{"type":"object","required":["table_version","status","status_url"],"properties":{"status":{"$ref":"#/components/schemas/StatusResponse"},"status_url":{"type":"string"},"table_version":{"type":"string","format":"uuid"}}},"StatusResponse":{"type":"object","required":["status","updated_at"],"properties":{"error_msg":{"type":["string","null"]},"phase":{"type":["string","null"]},"progress":{"type":["number","null"],"format":"double"},"status":{"type":"string"},"updated_at":{"type":"string","format":"date-time"}}}}},"paths":{"/tables/import":{"post":{"tags":["tables"],"description":"Imports one or more point-cloud assets into a dataset version, reprojecting each input from its `proj` into `table_proj`. The import is queued and returns immediately.\n\n**Import process**\n1. Create assets with `POST /assets/upload` and upload the file bytes to the returned URLs.\n2. POST the manifest to this endpoint.\n3. Poll the returned `status_url` until `status` is `ready` or `failed`.\n\n**Minimal manifest**\n```json\n{\n  \"table_name\": \"my_scan\",\n  \"table_proj\": \"EPSG:3067\",\n  \"inputs\": [{ \"id\": \"<asset-id>\", \"proj\": \"EPSG:3067\" }]\n}\n```\n\nFor a custom PROJ grid, upload it as an asset, map its plain filename to the asset ID in `custom_grids`, and reference the filename from an input `proj`. Custom grids cannot be used by `table_proj`, `valid_bounds.proj`, raster imports, queries, or exports.","operationId":"handle_table_import","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportManifest"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TableImportResponse"}}}}}}}}}
````

## GET /tables/import\_status/{version\_id}

> Check the status of an import

```json
{"openapi":"3.1.0","info":{"title":"LumiDB HTTP API","version":"0.0.1"},"tags":[{"name":"tables","description":"Tabular point-cloud datasets"}],"security":[{"ApiKey":[]},{"Bearer":[]},{"Basic":[]},{"Clerk":[]},{"Link":[]}],"components":{"securitySchemes":{"ApiKey":{"type":"apiKey","in":"header","name":"Authorization","description":"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)."},"Bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Scoped LumiDB JWT issued by `POST /create_token`. Send as `Authorization: Bearer <jwt>`."},"Basic":{"type":"http","scheme":"basic","description":"HTTP Basic where the password is an API key (username is ignored). Send as `Authorization: Basic base64(\"user:<api_key>\")`."},"Clerk":{"type":"apiKey","in":"header","name":"Authorization","description":"Clerk-issued session JWT (used by the web UI). The full header value is `Clerk <jwt>`."},"Link":{"type":"apiKey","in":"header","name":"Authorization","description":"Short-lived link token granting access to a shared project. The full header value is `Link <token>`."}},"schemas":{"StatusResponse":{"type":"object","required":["status","updated_at"],"properties":{"error_msg":{"type":["string","null"]},"phase":{"type":["string","null"]},"progress":{"type":["number","null"],"format":"double"},"status":{"type":"string"},"updated_at":{"type":"string","format":"date-time"}}}}},"paths":{"/tables/import_status/{version_id}":{"get":{"tags":["tables"],"description":"Check the status of an import","operationId":"handle_table_import_status","parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}}}}}}}
```

## POST /tables/query\_spatial

> Query point data within a spatial boundary and other optional filters. Response encoding depends on \`output\_format\`: \`Binary\` returns LumiDB's internal point format (\`application/octet-stream\`), while \`Laz\` and \`E57\` return the corresponding file as a download.

```json
{"openapi":"3.1.0","info":{"title":"LumiDB HTTP API","version":"0.0.1"},"tags":[{"name":"tables","description":"Tabular point-cloud datasets"}],"security":[{"ApiKey":[]},{"Bearer":[]},{"Basic":[]},{"Clerk":[]},{"Link":[]}],"components":{"securitySchemes":{"ApiKey":{"type":"apiKey","in":"header","name":"Authorization","description":"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)."},"Bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Scoped LumiDB JWT issued by `POST /create_token`. Send as `Authorization: Bearer <jwt>`."},"Basic":{"type":"http","scheme":"basic","description":"HTTP Basic where the password is an API key (username is ignored). Send as `Authorization: Basic base64(\"user:<api_key>\")`."},"Clerk":{"type":"apiKey","in":"header","name":"Authorization","description":"Clerk-issued session JWT (used by the web UI). The full header value is `Clerk <jwt>`."},"Link":{"type":"apiKey","in":"header","name":"Authorization","description":"Short-lived link token granting access to a shared project. The full header value is `Link <token>`."}},"schemas":{"QuerySpatialParams":{"type":"object","required":["table_name"],"properties":{"boundary":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/BoundaryFilter","description":"Spatial filter. Omit to query the whole table (bounded by `max_points`/`max_density`)."}]},"boundary_proj":{"type":["string","null"],"description":"PROJ string or EPSG code that `boundary` is expressed in. Defaults to the\ntable's native projection."},"classification_filter":{"type":["array","null"],"items":{"type":"integer","format":"int32","minimum":0},"description":"Restrict to LAS classification codes in this set.","uniqueItems":true},"max_density":{"type":["number","null"],"format":"double","description":"Cap on the density of returned points (points per `boundary_proj` unit²).\nUseful for fast overview queries."},"max_points":{"type":["integer","null"],"description":"Cap on the number of points returned. Server may return fewer.","minimum":0},"meta_filter":{"type":["array","null"],"items":{"type":"integer","format":"int32","minimum":0},"description":"Restrict to points whose metadata index is in this set.","uniqueItems":true},"output_format":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PointResponseFormat","description":"Encoding of the returned points. Defaults to `Binary`."}]},"output_proj":{"type":["string","null"],"description":"Target projection for returned point coordinates. Defaults to the\ntable's native projection. Suffix a CRS that declares no height axis with\n`+ellipsoidal`, as in `EPSG:3067+ellipsoidal`, to have Z read and written as ellipsoidal\nheight in the CRS's horizontal unit; otherwise Z keeps its own vertical datum and only its\nunit is converted."},"table_name":{"type":"string","description":"Table to query (see `GET /tables` for available names)."}}},"BoundaryFilter":{"oneOf":[{"type":"object","required":["Aabb"],"properties":{"Aabb":{"$ref":"#/components/schemas/AABBf64"}}},{"type":"object","required":["Polygon"],"properties":{"Polygon":{"type":"array","items":{"type":"object"},"maxItems":2,"minItems":2}}}]},"AABBf64":{"type":"object","required":["min","max"],"properties":{"max":{"$ref":"#/components/schemas/Vec3"},"min":{"$ref":"#/components/schemas/Vec3"}}},"Vec3":{"type":"array","items":{"type":"number","format":"double"},"maxItems":3,"minItems":3},"PointResponseFormat":{"type":"string","enum":["Binary","Laz","E57"]}}},"paths":{"/tables/query_spatial":{"post":{"tags":["tables"],"description":"Query point data within a spatial boundary and other optional filters. Response encoding depends on `output_format`: `Binary` returns LumiDB's internal point format (`application/octet-stream`), while `Laz` and `E57` return the corresponding file as a download.","operationId":"handle_query_spatial","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuerySpatialParams"}}},"required":true},"responses":{"200":{"description":"Points in the requested encoding","content":{"application/octet-stream":{}}},"400":{"description":"Invalid query parameters"},"401":{"description":"Missing or invalid `Authorization` header"},"404":{"description":"Table not found"}}}}}}
```

## DELETE /tables/{table\_name}

> Delete a table

```json
{"openapi":"3.1.0","info":{"title":"LumiDB HTTP API","version":"0.0.1"},"tags":[{"name":"tables","description":"Tabular point-cloud datasets"}],"security":[{"ApiKey":[]},{"Bearer":[]},{"Basic":[]},{"Clerk":[]},{"Link":[]}],"components":{"securitySchemes":{"ApiKey":{"type":"apiKey","in":"header","name":"Authorization","description":"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)."},"Bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Scoped LumiDB JWT issued by `POST /create_token`. Send as `Authorization: Bearer <jwt>`."},"Basic":{"type":"http","scheme":"basic","description":"HTTP Basic where the password is an API key (username is ignored). Send as `Authorization: Basic base64(\"user:<api_key>\")`."},"Clerk":{"type":"apiKey","in":"header","name":"Authorization","description":"Clerk-issued session JWT (used by the web UI). The full header value is `Clerk <jwt>`."},"Link":{"type":"apiKey","in":"header","name":"Authorization","description":"Short-lived link token granting access to a shared project. The full header value is `Link <token>`."}}},"paths":{"/tables/{table_name}":{"delete":{"tags":["tables"],"description":"Delete a table","operationId":"handle_table_delete","parameters":[{"name":"table_name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":""}}}}}}
```

## POST /tables/{table\_name}/reimport

> Imports the dataset again with the manifest of its newest version, and makes a new head version. Poll the returned \`status\_url\`.

```json
{"openapi":"3.1.0","info":{"title":"LumiDB HTTP API","version":"0.0.1"},"tags":[{"name":"tables","description":"Tabular point-cloud datasets"}],"security":[{"ApiKey":[]},{"Bearer":[]},{"Basic":[]},{"Clerk":[]},{"Link":[]}],"components":{"securitySchemes":{"ApiKey":{"type":"apiKey","in":"header","name":"Authorization","description":"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)."},"Bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Scoped LumiDB JWT issued by `POST /create_token`. Send as `Authorization: Bearer <jwt>`."},"Basic":{"type":"http","scheme":"basic","description":"HTTP Basic where the password is an API key (username is ignored). Send as `Authorization: Basic base64(\"user:<api_key>\")`."},"Clerk":{"type":"apiKey","in":"header","name":"Authorization","description":"Clerk-issued session JWT (used by the web UI). The full header value is `Clerk <jwt>`."},"Link":{"type":"apiKey","in":"header","name":"Authorization","description":"Short-lived link token granting access to a shared project. The full header value is `Link <token>`."}},"schemas":{"TableImportResponse":{"type":"object","required":["table_version","status","status_url"],"properties":{"status":{"$ref":"#/components/schemas/StatusResponse"},"status_url":{"type":"string"},"table_version":{"type":"string","format":"uuid"}}},"StatusResponse":{"type":"object","required":["status","updated_at"],"properties":{"error_msg":{"type":["string","null"]},"phase":{"type":["string","null"]},"progress":{"type":["number","null"],"format":"double"},"status":{"type":"string"},"updated_at":{"type":"string","format":"date-time"}}}}},"paths":{"/tables/{table_name}/reimport":{"post":{"tags":["tables"],"description":"Imports the dataset again with the manifest of its newest version, and makes a new head version. Poll the returned `status_url`.","operationId":"handle_table_reimport","parameters":[{"name":"table_name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TableImportResponse"}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.lumidb.com/api-reference/tables.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
