> 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/rasters.md).

# Rasters

Raster datasets: import, tiles, WMTS and downloads

## POST /rasters/import

> Create a raster import task

```json
{"openapi":"3.1.0","info":{"title":"LumiDB HTTP API","version":"0.0.1"},"tags":[{"name":"rasters","description":"Raster datasets: import, tiles, WMTS and downloads"}],"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"}}}},"paths":{"/rasters/import":{"post":{"tags":["rasters"],"description":"Create a raster import task","operationId":"handle_raster_import","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportManifest"}}},"required":true},"responses":{}}}}}
```

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

> Check the status of a raster import task

```json
{"openapi":"3.1.0","info":{"title":"LumiDB HTTP API","version":"0.0.1"},"tags":[{"name":"rasters","description":"Raster datasets: import, tiles, WMTS and downloads"}],"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":{"/rasters/import_status/{version_id}":{"get":{"tags":["rasters"],"description":"Check the status of a raster import task","operationId":"handle_raster_import_status","parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{}}}}}
```

## DELETE /rasters/{raster\_name}

> Delete a raster dataset and all of its versions' merged COGs

```json
{"openapi":"3.1.0","info":{"title":"LumiDB HTTP API","version":"0.0.1"},"tags":[{"name":"rasters","description":"Raster datasets: import, tiles, WMTS and downloads"}],"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":{"/rasters/{raster_name}":{"delete":{"tags":["rasters"],"description":"Delete a raster dataset and all of its versions' merged COGs","operationId":"handle_raster_delete","parameters":[{"name":"raster_name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{}}}}}
```

## GET /rasters/{raster\_name}/MapServer

> ArcGIS cached map service metadata for a raster, in the WGS84 Web Mercator tiling scheme. ArcGIS Online picks the layer type from the URL suffix, and accepts \`MapServer\` where it rejects a WMTS capabilities URL.

```json
{"openapi":"3.1.0","info":{"title":"LumiDB HTTP API","version":"0.0.1"},"tags":[{"name":"rasters","description":"Raster datasets: import, tiles, WMTS and downloads"}],"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":{"/rasters/{raster_name}/MapServer":{"get":{"tags":["rasters"],"description":"ArcGIS cached map service metadata for a raster, in the WGS84 Web Mercator tiling scheme. ArcGIS Online picks the layer type from the URL suffix, and accepts `MapServer` where it rejects a WMTS capabilities URL.","operationId":"handle_raster_map_service","parameters":[{"name":"raster_name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{}}}}}
```

## GET /rasters/{raster\_name}/MapServer/tile/{z}/{y}/{x}

> Serve one EPSG:3857 tile to ArcGIS clients. Path order follows the Esri convention {level}/{row}/{col}.

```json
{"openapi":"3.1.0","info":{"title":"LumiDB HTTP API","version":"0.0.1"},"tags":[{"name":"rasters","description":"Raster datasets: import, tiles, WMTS and downloads"}],"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":{"/rasters/{raster_name}/MapServer/tile/{z}/{y}/{x}":{"get":{"tags":["rasters"],"description":"Serve one EPSG:3857 tile to ArcGIS clients. Path order follows the Esri convention {level}/{row}/{col}.","operationId":"handle_raster_map_service_tile","parameters":[{"name":"raster_name","in":"path","required":true,"schema":{"type":"string"}},{"name":"z","in":"path","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"y","in":"path","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"x","in":"path","required":true,"schema":{"type":"integer","format":"int32","minimum":0}}],"responses":{}}}}}
```

## GET /rasters/{raster\_name}/cog

> Presigned URL for the merged COG

```json
{"openapi":"3.1.0","info":{"title":"LumiDB HTTP API","version":"0.0.1"},"tags":[{"name":"rasters","description":"Raster datasets: import, tiles, WMTS and downloads"}],"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":{"/rasters/{raster_name}/cog":{"get":{"tags":["rasters"],"description":"Presigned URL for the merged COG","operationId":"handle_raster_cog","parameters":[{"name":"raster_name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{}}}}}
```

## GET /rasters/{raster\_name}/download/{file\_id}

> Presigned download URL for one original source file

```json
{"openapi":"3.1.0","info":{"title":"LumiDB HTTP API","version":"0.0.1"},"tags":[{"name":"rasters","description":"Raster datasets: import, tiles, WMTS and downloads"}],"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":{"/rasters/{raster_name}/download/{file_id}":{"get":{"tags":["rasters"],"description":"Presigned download URL for one original source file","operationId":"handle_raster_download","parameters":[{"name":"raster_name","in":"path","required":true,"schema":{"type":"string"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","format":"int32","minimum":0}}],"responses":{}}}}}
```

## GET /rasters/{raster\_name}/metadata

> Full metadata for a raster dataset

```json
{"openapi":"3.1.0","info":{"title":"LumiDB HTTP API","version":"0.0.1"},"tags":[{"name":"rasters","description":"Raster datasets: import, tiles, WMTS and downloads"}],"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":{"/rasters/{raster_name}/metadata":{"get":{"tags":["rasters"],"description":"Full metadata for a raster dataset","operationId":"handle_raster_metadata","parameters":[{"name":"raster_name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{}}}}}
```

## PATCH /rasters/{raster\_name}/metadata

> Patch user metadata for a raster dataset using json merge patch (RFC 7386). Returns the merged user metadata.

```json
{"openapi":"3.1.0","info":{"title":"LumiDB HTTP API","version":"0.0.1"},"tags":[{"name":"rasters","description":"Raster datasets: import, tiles, WMTS and downloads"}],"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":{"/rasters/{raster_name}/metadata":{"patch":{"tags":["rasters"],"description":"Patch user metadata for a raster dataset using json merge patch (RFC 7386). Returns the merged user metadata.","operationId":"handle_raster_metadata_patch","parameters":[{"name":"raster_name","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{}}},"required":true},"responses":{}}}}}
```

## POST /rasters/{raster\_name}/reimport

> Imports the raster 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":"rasters","description":"Raster datasets: import, tiles, WMTS and downloads"}],"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":{"/rasters/{raster_name}/reimport":{"post":{"tags":["rasters"],"description":"Imports the raster again with the manifest of its newest version, and makes a new head version. Poll the returned `status_url`.","operationId":"handle_raster_reimport","parameters":[{"name":"raster_name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{}}}}}
```

## GET /rasters/{raster\_name}/tiles/{z}/{x}/{y}

> Serve an XYZ raster tile (PNG by default)

```json
{"openapi":"3.1.0","info":{"title":"LumiDB HTTP API","version":"0.0.1"},"tags":[{"name":"rasters","description":"Raster datasets: import, tiles, WMTS and downloads"}],"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":{"/rasters/{raster_name}/tiles/{z}/{x}/{y}":{"get":{"tags":["rasters"],"description":"Serve an XYZ raster tile (PNG by default)","operationId":"handle_raster_tile","parameters":[{"name":"raster_name","in":"path","required":true,"schema":{"type":"string"}},{"name":"z","in":"path","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"x","in":"path","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"y","in":"path","required":true,"schema":{"type":"integer","format":"int32","minimum":0}}],"responses":{}}}}}
```

## GET /rasters/{raster\_name}/wmts/1.0.0/WMTSCapabilities.xml

> WMTS 1.0.0 Capabilities document for a single raster (served in its native table\_proj)

```json
{"openapi":"3.1.0","info":{"title":"LumiDB HTTP API","version":"0.0.1"},"tags":[{"name":"rasters","description":"Raster datasets: import, tiles, WMTS and downloads"}],"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":{"/rasters/{raster_name}/wmts/1.0.0/WMTSCapabilities.xml":{"get":{"tags":["rasters"],"description":"WMTS 1.0.0 Capabilities document for a single raster (served in its native table_proj)","operationId":"handle_raster_wmts_capabilities","parameters":[{"name":"raster_name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{}}}}}
```

## GET /rasters/{raster\_name}/wmts/tile/{style}/{tile\_matrix\_set}/{z}/{y}/{x}

> Serve a single WMTS tile in the raster's native table\_proj. Path order follows WMTS REST: {Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}\[.png]. Only the \`default\` style is defined.

```json
{"openapi":"3.1.0","info":{"title":"LumiDB HTTP API","version":"0.0.1"},"tags":[{"name":"rasters","description":"Raster datasets: import, tiles, WMTS and downloads"}],"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":{"/rasters/{raster_name}/wmts/tile/{style}/{tile_matrix_set}/{z}/{y}/{x}":{"get":{"tags":["rasters"],"description":"Serve a single WMTS tile in the raster's native table_proj. Path order follows WMTS REST: {Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}[.png]. Only the `default` style is defined.","operationId":"handle_raster_wmts_tile","parameters":[{"name":"raster_name","in":"path","required":true,"schema":{"type":"string"}},{"name":"style","in":"path","required":true,"schema":{"type":"string"}},{"name":"tile_matrix_set","in":"path","required":true,"schema":{"type":"string"}},{"name":"z","in":"path","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"y","in":"path","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"x","in":"path","required":true,"schema":{"type":"string"}}],"responses":{}}}}}
```


---

# 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/rasters.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.
