Maps Database

API

A JSON API for tools and agents. Read endpoints need no account. The full description is in openapi.json; a plain-text summary for language models is at /llms.txt.

How it fits together

A map is a .map file. A mission is a named scenario on one map, such as Coliseum, made of one or more mission DLLs, one per game mode (Coliseum has a Last One Standing DLL and a Midas DLL) or version. Each DLL can have renders: its map with every object it places at start. A package is a folder of files installed to OPU/maps/<folder>/.

Read

GET /api/v1/packages?q=&type=&players=&origin=stock|opu|community&author=&sort=newest&page=&per_page=
GET /api/v1/packages/{slug}
GET /api/v1/packages/{slug}/versions/{version}
GET /api/v1/maps?q=&size=64x64&wraps=1&tileset=well0004&stock=0
GET /api/v1/maps/{sha256}
GET /api/v1/missions?q=&mode=last_one_standing&kind=multiplayer&players=4&origin=&series=&sort=newest
GET /api/v1/missions/{slug}             a mission, its map and one DLL per game mode
GET /api/v1/series                      campaigns, tutorials, demos, Exiles, Pursued
GET /api/v1/series/{slug}
GET /api/v1/dlls?q=&type=&players=&map=   one mission DLL each
GET /api/v1/dlls/{sha256}               a DLL in full: DescBlock, exports, imports
GET /api/v1/lookup?md5={md5}   or   ?sha256={sha256}
GET /api/v1/files/{sha256}            download (not for stock files)
GET /api/v1/blobs/{sha256}.png|.jpg  map previews and DLL renders
GET /api/v1/manifest                  signed list of installable packages
GET /api/v1/manifest/key              the signing public key

Lists return {"data": [...], "meta": {"page", "per_page", "total", "pages"}}; errors return {"error": {"code", "message"}}. Reads are limited to 300 requests a minute per IP.

Write

Create a token on your account page and send Authorization: Bearer <token>.

# 1. upload each file (returns its sha256 and what op2tool found)
curl -H "Authorization: Bearer $T" -F file=@ml4_mine.dll https://mapsdb.outpostuniverse.org/api/v1/uploads
# 2. create the package
curl -H "Authorization: Bearer $T" -H "Content-Type: application/json" \
     -d '{"title":"My Map","summary":"4P LoS","authors":"me","install_dir":"MyMap"}' https://mapsdb.outpostuniverse.org/api/v1/packages
# 3. create a version from uploaded files and submit it
curl -H "Authorization: Bearer $T" -H "Content-Type: application/json" \
     -d '{"version":"1.0","files":[{"sha256":"…","path":"ml4_mine.dll"},{"sha256":"…","path":"mine.map"}],"submit":true}' \
     https://mapsdb.outpostuniverse.org/api/v1/packages/my-map/versions

Render server

Pictures of each mission DLL at start are drawn by a separate program that works through a job queue: POST /api/v1/render-jobs/claim, download the files, POST /api/v1/dlls/{sha256}/renders (multipart image), then POST /api/v1/render-jobs/{id} with {"status":"done"}. It needs a token of a renderer account; see docs/render-server.md and openapi.json.

Signed manifest

/api/v1/manifest returns {"format","key_id","manifest","signature"}: manifest is the base64 of a JSON document and signature an ed25519 signature over exactly those bytes. Verify it with a public key you trust before reading it.