Skip to content

50,000 free calls a month, card-free. Get an API key →

Documentation menu
docs / api / post-styles
styles

POST/styles

API key required, sent as Authorization: Bearer snk_… or ?api_key=snk_….

Call it

bash
curl -fsS -X POST "https://api.mapmap.ai/styles" \
  -H "Authorization: Bearer $MAPMAP_KEY" \
  -H "Content-Type: application/json" \
  -d @request.json

Request body

application/json · CreateStyleRequest

FieldTypeRequiredDescription
namestringyesHuman-readable style name (1–120 characters); its kebab-case slug seeds the style id.
themenot statednoOptional sn-style theme document. Omitted, version 1 is the default theme carrying name.

Responses

201Style created as version 1
FieldTypeRequiredDescription
idstringyesThe generated style id.
style_urlstringyesImmutable URL of the compiled style.
themenot statedyesThe theme document that was stored.
versionintegeryesThe published version (always 1 on create).
400Malformed request or name
404Hosted styles not configured on this gateway
422Theme failed sn-style validation; the body's problems list names the offending slot or layer

Error bodies follow the shared problem model documented on API conventions.

Also under styles

Generated from https://api.mapmap.ai/openapi.json on 2026-09-17 · operationId create_style