> For the complete documentation index, see [llms.txt](https://docs.earthscale.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.earthscale.ai/http-api/dynamic-tiler-http-api/styles.md).

# Styles

## Get vector dataset style

> Returns a style definition corresponding to the latest visualization settings used in\
> the Earthscale app for the dataset version.\
> \
> If \`map\_id\` is provided, only visualization settings from that specific map are\
> returned. Returns 204 (No Content) if the dataset version is not in that map or has\
> no visualization settings.

```json
{"openapi":"3.1.0","info":{"title":"Earthscale Dynamic Tiler API v1","version":"1.0.0"},"servers":[{"url":"/v1"}],"paths":{"/vector/{dataset_version_id}/style":{"get":{"tags":["Styles"],"summary":"Get vector dataset style","description":"Returns a style definition corresponding to the latest visualization settings used in\nthe Earthscale app for the dataset version.\n\nIf `map_id` is provided, only visualization settings from that specific map are\nreturned. Returns 204 (No Content) if the dataset version is not in that map or has\nno visualization settings.","operationId":"get_vector_style_vector__dataset_version_id__style_get","parameters":[{"name":"dataset_version_id","in":"path","required":true,"schema":{"type":"string","description":"UUID of the dataset version to query. Each dataset can have multiple versions representing different states of the data over time","title":"Dataset Version Id"},"description":"UUID of the dataset version to query. Each dataset can have multiple versions representing different states of the data over time"},{"name":"api_key","in":"query","required":true,"schema":{"type":"string","description":"Earthscale API key used to authenticate requests and determine which datasets you have access to. API keys can be managed in the [Earthscale Web App](https://app.earthscale.ai) under the user menu (top-right) -> 'API Settings'","title":"Api Key"},"description":"Earthscale API key used to authenticate requests and determine which datasets you have access to. API keys can be managed in the [Earthscale Web App](https://app.earthscale.ai) under the user menu (top-right) -> 'API Settings'"},{"name":"format","in":"query","required":false,"schema":{"const":"mapbox","type":"string","description":"Style specification format. 'mapbox' returns a MapLibre/Mapbox GL style JSON with sources and layers configured for this dataset","default":"mapbox","title":"Format"},"description":"Style specification format. 'mapbox' returns a MapLibre/Mapbox GL style JSON with sources and layers configured for this dataset"},{"name":"map_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Restrict to visualization settings from a specific Earthscale map. If omitted, returns the most recently used style for this dataset globally","title":"Map Id"},"description":"Restrict to visualization settings from a specific Earthscale map. If omitted, returns the most recently used style for this dataset globally"}],"responses":{"200":{"description":"Mapbox/MapLibre style JSON","content":{"application/json":{"schema":{}}}},"204":{"description":"If the dataset version is not in that map or has no defined visualization."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}
```


---

# 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.earthscale.ai/http-api/dynamic-tiler-http-api/styles.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.
