---
title: "`GET /styles`: the CALLER'S hosted styles with their latest versions."
method: GET
path: "/styles"
tags: ["styles"]
---

# \`GET /styles\`: the CALLER'S hosted styles with their latest versions.

`GET /styles`

## Request

- Base URL: `https://api.mapmap.ai`
- URL: `https://api.mapmap.ai/styles`
- Auth: one of:
  - HTTP bearer
  - API key in query parameter `api_key`

Authenticated and scoped: a key sees the styles it (or a sibling key of
the same identity) created, and nothing else. It was previously public
and unscoped, which published every style id and name on the deployment
to anyone who asked: see the module docs.

## Response `200`

The calling key's hosted styles

- StyleSummary[]
  - `id` string, required: Style id.
  - `latest_version` integer, required: Highest published version.
  - `name` string, required: Human-readable style name.
  - `style_url` string, required: Immutable URL of the latest compiled style.

## Other responses

- `401`: Missing or invalid API key
- `404`: Hosted styles not configured on this gateway

---

[API](https://skmtc.dev/mapmap/apis/sn-gateway.md) · [All operations](https://skmtc.dev/mapmap/apis/sn-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/mapmap/apis/sn-gateway/revisions/2293be8b4c38?raw)
