---
title: "`GET /admin/styles`: every hosted style with its owner, including the ownerless ones left by gateway versions that did not record one."
method: GET
path: "/admin/styles"
tags: ["admin"]
---

# \`GET /admin/styles\`: every hosted style with its owner, including the ownerless ones left by gateway versions that did not record one.

`GET /admin/styles`

## Request

- Base URL: `https://api.mapmap.ai`
- URL: `https://api.mapmap.ai/admin/styles`
- Auth: HTTP bearer

The operator's view of the migration: what still needs adopting, and by
whom. Behind the admin bearer token like every other `/admin/*` route.

## Response `200`

Every hosted style with its owner

- StyleMeta[]
  - `created_at` string, required: RFC 3339 creation timestamp.
  - `id` string, required: Style id (kebab-case slug + 6 hex chars).
  - `latest_version` integer, required: Highest published version; `GET /styles/{id}.json` serves it.
  - `name` string, required: Human-readable style name.
  - `owner` StyleOwner: Who owns a hosted style: the API key that created it, and the identity that key belongs to when it is a self-served key. The identity is what ownership is really checked against wherever it exists, a self-served account may hold up to five sibling keys and they share one quota, so they must share one set of styles too, or rotating a key would silently strand every style it had published. Operator-issued keys have no identity and fall back to the key id.
    - `identity_id` string, nullable: Owning identity id, for self-served keys. `None` for operator-issued keys, which have no identity.
    - `key_id` string, required: Id of the API key that created the style.
  - `updated_at` string, required: RFC 3339 timestamp of the latest publish.

## Other responses

- `401`: Missing or invalid admin token
- `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)
