{"openapi":"3.1.0","info":{"title":"MapRust API","version":"1.0.0","summary":"Make Rust maps, follow them by id, fetch the image, the facts and the .map file.","description":"Authenticate each call with your API key in an `X-API-Key` header (made and reset on your account page; one key per account, a reset stops the old key at once). Signing in on the site is not enough: the API reads only the header.\n\nThe flow is always the same: create a map (`POST /maps`, `POST /maps/custom` or `POST /maps/upload`) → you get its `id` and its state at once → poll `GET /maps/{id}` (every 10 s is plenty) until `state` is `done` → use `urls`, `monuments`, `biomes`, or fetch the files.\n\nEvery JSON answer — errors included — is the same envelope: `meta.status` (`Success` / `Failed`) says whether the call worked, `meta.errors` says why not (each with a stable `code`), `data` holds the result. A map that is still being made is not an error: `GET /maps/{id}` answers 200 and `data.state` tells you where it is.\n\nNumbers may be sent as JSON numbers or as strings holding a whole number (`\"3500\"`). Times are UTC, ISO 8601. Positions are metres from the map centre on Rust's world axes: `x` east, `z` north.\n\nIn the examples, `$MAPRUST_URL` is this site's address and `$MAPRUST_KEY` your key."},"servers":[{"url":"https://maprust.com/api/v1"}],"security":[{"apiKey":[]}],"tags":[{"name":"Maps","description":"Create, follow, list, cancel and delete maps."},{"name":"Files","description":"A finished map's image, thumbnail and .map file."},{"name":"Account","description":"Your plan's limits and saved profiles."},{"name":"Reference","description":"Monument ids, your templates and this document."}],"x-guide":{"whichCall":[{"need":"A map of a seed + size, nothing edited (the game's own map)","call":"POST /maps"},{"need":"A map with moved / added monuments, painted biomes, our terrain generator","call":"POST /maps/custom"},{"need":"A map you saved as a profile in the editor, generated again","call":"POST /maps/profile"},{"need":"A levelurl for a .map you made elsewhere (RustEdit …)","call":"POST /maps/upload"},{"need":"Is my map ready? Where is it in the queue? What went wrong?","call":"GET /maps/{id} — the only status call; 200 in every state"},{"need":"The image, the thumbnail or the .map file","call":"GET /maps/{id}/image · /thumbnail · /map (or the keyless links in urls)"},{"need":"The line for my server's config","call":"GET /maps/{id} → urls.download (the levelurl)"},{"need":"Monuments on a finished map, biome shares, land share","call":"GET /maps/{id} → monuments, biomes, landPercent"},{"need":"All my maps","call":"GET /maps?page=0"},{"need":"Stop a map that has not started","call":"POST /maps/{id}/cancel"},{"need":"Remove a map and its files","call":"DELETE /maps/{id}"},{"need":"How many maps I have left in these 24 hours / running at once","call":"GET /limits"},{"need":"Valid monument ids for a custom map","call":"GET /monuments"}],"freeTier":[{"call":"POST /maps — Default map (seed + size)","free":"yes","paid":"yes"},{"call":"POST /maps/custom — Custom map, by what it contains","free":"seed + size only (else 403 plan)","paid":"Pro: world, generator, rules, flatmap; Ultra, Enterprise: everything"},{"call":"POST /maps/upload — host a .map","free":"yes","paid":"yes"},{"call":"GET /maps, GET /maps/{id}, the file calls","free":"yes","paid":"yes"},{"call":"POST /maps/{id}/cancel, DELETE /maps/{id}","free":"yes","paid":"yes"},{"call":"GET /limits, GET /monuments","free":"yes","paid":"yes"},{"call":"Maps in 24 hours, fair use (shared with the site)","free":"10","paid":"30 / 60 / 150 (Pro / Ultra / Enterprise)"},{"call":"Maps being made at once, the rest wait (at most 5; shared with the site)","free":"1","paid":"1 / 2 / 5"},{"call":"Hosted uploads at once","free":"5","paid":"10 / 20 / 220"},{"call":"Hosted uploads kept","free":"40 days","paid":"while your plan lasts"},{"call":"Generated custom maps kept","free":"2 force wipes or 60 days","paid":"2 force wipes or 60 days"},{"call":"API calls a minute per key","free":"60","paid":"60"}],"rate":{"perMinute":60}},"paths":{"/maps":{"post":{"tags":["Maps"],"operationId":"createMap","summary":"Create a Default map (seed + size)","description":"The game's own map of a seed and size, nothing edited. When anyone already made this exact map, you get your own copy at once: the answer is still 201, with `state: done`. A map made for you counts toward your 24-hour limit like a map made on the site (a copy does not, a queued map you cancel neither), and runs when your plan has room: the rest wait in the queue.","x-codeSamples":[{"lang":"curl","label":"curl","source":"curl -s -X POST \"$MAPRUST_URL/api/v1/maps\" -H \"X-API-Key: $MAPRUST_KEY\" -H \"content-type: application/json\" -d '{\"size\": 3500, \"seed\": 1485949543, \"name\": \"Wipe 42\"}'"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDefault"},"example":{"size":3500,"seed":1485949543,"name":"Wipe 42"}}}},"responses":{"201":{"description":"Queued (or already done when the same map existed).","headers":{"X-Rate-Limit-Limit":{"$ref":"#/components/headers/X-Rate-Limit-Limit"},"X-Rate-Limit-Remaining":{"$ref":"#/components/headers/X-Rate-Limit-Remaining"},"X-Rate-Limit-Reset":{"$ref":"#/components/headers/X-Rate-Limit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapAnswer"},"example":{"meta":{"status":"Success","statusCode":201,"errors":null},"data":{"id":"m3f9a1c2b7d40","kind":"default","vanilla":true,"name":"Wipe 42","size":3500,"seed":1485949543,"state":"queued","queuePosition":2,"step":null,"error":null,"createdAt":"2026-10-29T12:00:03.120Z","finishedAt":null,"expiresAt":null,"public":true,"warnings":[],"urls":null,"monuments":null,"biomes":null,"landPercent":null}}}}},"400":{"$ref":"#/components/responses/Invalid"},"401":{"$ref":"#/components/responses/Unauthorized"},"413":{"$ref":"#/components/responses/TooLarge"},"429":{"$ref":"#/components/responses/TooMany"},"500":{"$ref":"#/components/responses/Server"}}},"get":{"tags":["Maps"],"operationId":"listMaps","summary":"List my maps","description":"Your generated and uploaded maps, newest first, 50 a page. `meta` adds `page`, `itemsPerPage`, `totalItems` and `lastPage` (pages start at 0).","x-codeSamples":[{"lang":"curl","label":"curl","source":"curl -s \"$MAPRUST_URL/api/v1/maps?page=0\" -H \"X-API-Key: $MAPRUST_KEY\""}],"parameters":[{"name":"page","in":"query","required":false,"description":"Page number, from 0 (default 0).","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"One page of maps.","headers":{"X-Rate-Limit-Limit":{"$ref":"#/components/headers/X-Rate-Limit-Limit"},"X-Rate-Limit-Remaining":{"$ref":"#/components/headers/X-Rate-Limit-Remaining"},"X-Rate-Limit-Reset":{"$ref":"#/components/headers/X-Rate-Limit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapListAnswer"},"example":{"meta":{"status":"Success","statusCode":200,"errors":null,"page":0,"itemsPerPage":50,"totalItems":1,"lastPage":0},"data":[{"id":"m3f9a1c2b7d40","kind":"default","vanilla":true,"name":"Wipe 42","size":3500,"seed":1485949543,"state":"done","queuePosition":null,"step":null,"error":null,"createdAt":"2026-10-29T12:00:03.120Z","finishedAt":"2026-10-29T12:04:11.000Z","expiresAt":"2026-12-08T12:04:11.000Z","public":true,"warnings":[],"urls":{"page":"http://localhost:8780/m/5b1f0c9e2a7d4e6f8a9b0c1d","image":"http://localhost:8780/api/s/5b1f0c9e2a7d4e6f8a9b0c1d/files/map.png","thumbnail":"http://localhost:8780/api/s/5b1f0c9e2a7d4e6f8a9b0c1d/files/thumb.jpg","download":"http://localhost:8780/dl/9c4e2f1a0b3d5c7e9f1a2b3c4d5e6f70/maprust-m3f9a1c2b7d40.map"},"monuments":[{"id":"launch_site_1","name":"Launch Site","category":"large","x":-812.4,"z":1033.9,"rotation":270},{"id":"compound","name":"Outpost","category":"large","x":402.25,"z":-118.5,"rotation":45},{"id":"water_well_a","name":"Water Well","category":"tiny","x":1210,"z":-640.75,"rotation":180}],"biomes":{"arid":31.4,"temperate":38.2,"tundra":17.9,"arctic":12.5,"jungle":0},"landPercent":46.3}]}}}},"400":{"$ref":"#/components/responses/Invalid"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooMany"},"500":{"$ref":"#/components/responses/Server"}}}},"/maps/custom":{"post":{"tags":["Maps"],"operationId":"createCustomMap","summary":"Create a Custom map","description":"What the request contains decides the plan (403 `plan`, `needs` = pro / ultra): `world`, `generator`, `rules` and `gen` with only `flatmap: true` need Pro; anything else below (`gen` strokes or settings, `shape`, `pins`, `layout`, `swaps`, `customs`, `paths`, `monumentCounts`, `steps`, `fillRandom: false`) needs Ultra; seed + size alone is any plan's. The body is the same request the site's editor sends: `seed` and `size`, plus any of `world` (the game's world config), `generator` (switches), `gen` (our terrain generator: settings + brush strokes), `shape` (painted mask / biomes as PNG data URLs), `pins` (monuments you place: `{prefab, x, z, rotation?}` with `x` / `z` 0..1 across the map, west → east and south → north), `layout` + pin `ref` (move the game's own monuments), `swaps` (`{prefab, template}`: that template on every copy of the monument), `customs`, per-placement variants of the game's monuments (`pins[].template` and `layout.variants` `[{ref, template}]`, a template id of `GET /templates`: at most 10 swaps and variants in all, the variant's own footprint is kept clear of other monuments; 400 `variantPrefab` / `variantLocked` / `tooManyVariants` in the message's `reason`), `monumentCounts`, `fillRandom`, `rules` (the custom generator options, in the `CustomMapSettings` shape) or `settings` (a whole `CustomMapSettings` body as it is); and `name`. Monument `prefab`s are the ids of `GET /monuments`. Pins need the terrain's spots first (the editor's Check spots step); a request whose spots are not ready answers 409 `conflict`. A pin that does not fit its spot is moved or left out and named in `warnings` — the map is still made.","x-codeSamples":[{"lang":"curl","label":"curl","source":"curl -s -X POST \"$MAPRUST_URL/api/v1/maps/custom\" -H \"X-API-Key: $MAPRUST_KEY\" -H \"content-type: application/json\" -d '{\"size\": 3000, \"seed\": 77, \"name\": \"No rivers\", \"world\": {\"Rivers\": false}}'"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustom"},"example":{"size":3000,"seed":77,"name":"No rivers","world":{"Rivers":false}}}}},"responses":{"201":{"description":"Queued.","headers":{"X-Rate-Limit-Limit":{"$ref":"#/components/headers/X-Rate-Limit-Limit"},"X-Rate-Limit-Remaining":{"$ref":"#/components/headers/X-Rate-Limit-Remaining"},"X-Rate-Limit-Reset":{"$ref":"#/components/headers/X-Rate-Limit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapAnswer"},"example":{"meta":{"status":"Success","statusCode":201,"errors":null},"data":{"id":"m71c0d5e3a9b2","kind":"custom","vanilla":false,"name":"No rivers","size":3000,"seed":77,"state":"queued","queuePosition":1,"step":null,"error":null,"createdAt":"2026-10-29T12:10:00.000Z","finishedAt":null,"expiresAt":null,"public":false,"warnings":[],"urls":null,"monuments":null,"biomes":null,"landPercent":null}}}}},"400":{"$ref":"#/components/responses/Invalid"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Plan"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/TooLarge"},"429":{"$ref":"#/components/responses/TooMany"},"500":{"$ref":"#/components/responses/Server"},"503":{"$ref":"#/components/responses/Busy"}}}},"/maps/profile":{"post":{"tags":["Maps"],"operationId":"createMapFromProfile","summary":"Create a map from a saved profile","description":"Generates a profile you saved in the editor again (its rules: seed or random seed, size, world, generator options, `rules`, Flatmap; the editor's terrain and monument work stays in the project, never in a profile). A Default-shaped profile works on every plan, any other needs the plan its contents need (403 `plan` + `needs`). A random-seed profile (`randomSeed: true` in `GET /profiles`) is made on a new random seed every time unless the body has `seed`; `size` overrides its size too (the answer's `seed` / `size` say what was used). A draft profile (`ready: false`) answers 400 `invalid`, the error carries `why` (`[{code, text}]`: what is missing). If the game's monuments of the profile's terrain have to be prepared again (the game updated, the files expired) the map starts in state `waiting` (`step`: `preparing`) and begins by itself; pins that no longer fit move up to 25 m or are dropped, every such change is a `warnings` entry (`profilePinMoved`, `profilePinDropped`, `profileRefLost`, and `profileBuild` when the game updated since the profile was saved).","x-codeSamples":[{"lang":"curl","label":"curl","source":"curl -s -X POST \"$MAPRUST_URL/api/v1/maps/profile\" -H \"X-API-Key: $MAPRUST_KEY\" -H \"content-type: application/json\" -d '{\"profile\": \"f0a1b2c3d4e5\", \"name\": \"Wipe 12\"}'"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFromProfile"},"example":{"profile":"f0a1b2c3d4e5","name":"Wipe 12"}}}},"responses":{"201":{"description":"Queued (or waiting for the game's monuments).","headers":{"X-Rate-Limit-Limit":{"$ref":"#/components/headers/X-Rate-Limit-Limit"},"X-Rate-Limit-Remaining":{"$ref":"#/components/headers/X-Rate-Limit-Remaining"},"X-Rate-Limit-Reset":{"$ref":"#/components/headers/X-Rate-Limit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapAnswer"},"example":{"meta":{"status":"Success","statusCode":201,"errors":null},"data":{"id":"m71c0d5e3a9b2","kind":"custom","vanilla":false,"name":"Wipe 12","size":3000,"seed":77,"state":"waiting","queuePosition":null,"step":"preparing","error":null,"createdAt":"2026-11-01T12:10:00.000Z","finishedAt":null,"expiresAt":null,"public":false,"warnings":[],"urls":null,"monuments":null,"biomes":null,"landPercent":null}}}}},"400":{"$ref":"#/components/responses/Invalid"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Plan"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/TooLarge"},"429":{"$ref":"#/components/responses/TooMany"},"500":{"$ref":"#/components/responses/Server"}}}},"/maps/upload":{"post":{"tags":["Maps"],"operationId":"uploadMap","summary":"Host a .map file","description":"The raw `.map` file as the body (at most 100 MB; version 9 or 10, size 1000..6000, every terrain layer). It is kept like a generated map and gets a levelurl (`urls.download`); it is done at once and private until you make it public on the site. Uploads count toward the plan's hosted-uploads limit, not the monthly maps.","x-codeSamples":[{"lang":"curl","label":"curl","source":"curl -s -X POST \"$MAPRUST_URL/api/v1/maps/upload?name=My%20edit\" -H \"X-API-Key: $MAPRUST_KEY\" -H \"content-type: application/octet-stream\" --data-binary @mymap.map"}],"parameters":[{"name":"name","in":"query","required":false,"description":"The map's name (default \"Uploaded map\").","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/octet-stream":{"schema":{"type":"string","contentMediaType":"application/octet-stream"}}}},"responses":{"201":{"description":"Hosted.","headers":{"X-Rate-Limit-Limit":{"$ref":"#/components/headers/X-Rate-Limit-Limit"},"X-Rate-Limit-Remaining":{"$ref":"#/components/headers/X-Rate-Limit-Remaining"},"X-Rate-Limit-Reset":{"$ref":"#/components/headers/X-Rate-Limit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapAnswer"},"example":{"meta":{"status":"Success","statusCode":201,"errors":null},"data":{"id":"m0a4b8c2d6e1f","kind":"upload","vanilla":false,"name":"My edit","size":4000,"seed":null,"state":"done","queuePosition":null,"step":null,"error":null,"createdAt":"2026-10-29T12:20:00.000Z","finishedAt":"2026-10-29T12:20:00.000Z","expiresAt":"2026-12-08T12:20:00.000Z","public":false,"warnings":[],"urls":{"page":"http://localhost:8780/m/0d2e4f6a8b1c3d5e7f9a0b2c","image":null,"thumbnail":null,"download":"http://localhost:8780/dl/1a3c5e7f9b0d2f4a6c8e0b1d3f5a7c9e/maprust-m0a4b8c2d6e1f.map"},"monuments":null,"biomes":null,"landPercent":null}}}}},"400":{"$ref":"#/components/responses/Invalid"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/QuotaUploads"},"413":{"$ref":"#/components/responses/TooLarge"},"429":{"$ref":"#/components/responses/TooMany"},"500":{"$ref":"#/components/responses/Server"}}}},"/maps/{id}":{"parameters":[{"$ref":"#/components/parameters/MapId"}],"get":{"tags":["Maps"],"operationId":"getMap","summary":"Get a map (its state, and everything once done)","description":"The one call to follow a map: 200 in every state. While `queued` it has `queuePosition`, while `running` the generator's current `step`; once `done` it has `urls`, `monuments`, `biomes`, `landPercent` (uploads: no monuments / image). `failed` carries `error`. Poll every 10 s or slower; a map takes a few minutes.","x-codeSamples":[{"lang":"curl","label":"curl","source":"curl -s \"$MAPRUST_URL/api/v1/maps/m3f9a1c2b7d40\" -H \"X-API-Key: $MAPRUST_KEY\""}],"responses":{"200":{"description":"The map.","headers":{"X-Rate-Limit-Limit":{"$ref":"#/components/headers/X-Rate-Limit-Limit"},"X-Rate-Limit-Remaining":{"$ref":"#/components/headers/X-Rate-Limit-Remaining"},"X-Rate-Limit-Reset":{"$ref":"#/components/headers/X-Rate-Limit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapAnswer"},"examples":{"done":{"summary":"Done","value":{"meta":{"status":"Success","statusCode":200,"errors":null},"data":{"id":"m3f9a1c2b7d40","kind":"default","vanilla":true,"name":"Wipe 42","size":3500,"seed":1485949543,"state":"done","queuePosition":null,"step":null,"error":null,"createdAt":"2026-10-29T12:00:03.120Z","finishedAt":"2026-10-29T12:04:11.000Z","expiresAt":"2026-12-08T12:04:11.000Z","public":true,"warnings":[],"urls":{"page":"http://localhost:8780/m/5b1f0c9e2a7d4e6f8a9b0c1d","image":"http://localhost:8780/api/s/5b1f0c9e2a7d4e6f8a9b0c1d/files/map.png","thumbnail":"http://localhost:8780/api/s/5b1f0c9e2a7d4e6f8a9b0c1d/files/thumb.jpg","download":"http://localhost:8780/dl/9c4e2f1a0b3d5c7e9f1a2b3c4d5e6f70/maprust-m3f9a1c2b7d40.map"},"monuments":[{"id":"launch_site_1","name":"Launch Site","category":"large","x":-812.4,"z":1033.9,"rotation":270},{"id":"compound","name":"Outpost","category":"large","x":402.25,"z":-118.5,"rotation":45},{"id":"water_well_a","name":"Water Well","category":"tiny","x":1210,"z":-640.75,"rotation":180}],"biomes":{"arid":31.4,"temperate":38.2,"tundra":17.9,"arctic":12.5,"jungle":0},"landPercent":46.3}}},"running":{"summary":"Being made","value":{"meta":{"status":"Success","statusCode":200,"errors":null},"data":{"id":"m3f9a1c2b7d40","kind":"default","vanilla":true,"name":"Wipe 42","size":3500,"seed":1485949543,"state":"running","queuePosition":null,"step":"Terrain Erosion","error":null,"createdAt":"2026-10-29T12:00:03.120Z","finishedAt":null,"expiresAt":null,"public":true,"warnings":[],"urls":null,"monuments":null,"biomes":null,"landPercent":null}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooMany"},"500":{"$ref":"#/components/responses/Server"}}},"delete":{"tags":["Maps"],"operationId":"deleteMap","summary":"Delete a map","description":"Its files go at once (its levelurl stops working); a queued map is cancelled. A map that is being made cannot be deleted (409): cancel works only while queued, so wait until it is done. A deleted map still counts toward the 24 hours.","x-codeSamples":[{"lang":"curl","label":"curl","source":"curl -s -X DELETE \"$MAPRUST_URL/api/v1/maps/m3f9a1c2b7d40\" -H \"X-API-Key: $MAPRUST_KEY\""}],"responses":{"200":{"description":"Deleted.","headers":{"X-Rate-Limit-Limit":{"$ref":"#/components/headers/X-Rate-Limit-Limit"},"X-Rate-Limit-Remaining":{"$ref":"#/components/headers/X-Rate-Limit-Remaining"},"X-Rate-Limit-Reset":{"$ref":"#/components/headers/X-Rate-Limit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdAnswer"},"example":{"meta":{"status":"Success","statusCode":200,"errors":null},"data":{"id":"m3f9a1c2b7d40"}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooMany"},"500":{"$ref":"#/components/responses/Server"}}}},"/maps/{id}/cancel":{"parameters":[{"$ref":"#/components/parameters/MapId"}],"post":{"tags":["Maps"],"operationId":"cancelMap","summary":"Cancel a queued map","description":"Only while `queued`: the map becomes `cancelled` and does not count toward your quota. Any other state answers 409 `conflict`.","x-codeSamples":[{"lang":"curl","label":"curl","source":"curl -s -X POST \"$MAPRUST_URL/api/v1/maps/m3f9a1c2b7d40/cancel\" -H \"X-API-Key: $MAPRUST_KEY\""}],"responses":{"200":{"description":"Cancelled.","headers":{"X-Rate-Limit-Limit":{"$ref":"#/components/headers/X-Rate-Limit-Limit"},"X-Rate-Limit-Remaining":{"$ref":"#/components/headers/X-Rate-Limit-Remaining"},"X-Rate-Limit-Reset":{"$ref":"#/components/headers/X-Rate-Limit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapAnswer"},"example":{"meta":{"status":"Success","statusCode":200,"errors":null},"data":{"id":"m3f9a1c2b7d40","kind":"default","vanilla":true,"name":"Wipe 42","size":3500,"seed":1485949543,"state":"cancelled","queuePosition":null,"step":null,"error":null,"createdAt":"2026-10-29T12:00:03.120Z","finishedAt":"2026-10-29T12:00:09.000Z","expiresAt":null,"public":true,"warnings":[],"urls":null,"monuments":null,"biomes":null,"landPercent":null}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooMany"},"500":{"$ref":"#/components/responses/Server"}}}},"/maps/{id}/image":{"parameters":[{"$ref":"#/components/parameters/MapId"}],"get":{"tags":["Files"],"operationId":"getMapImage","summary":"The map image (PNG)","description":"The finished map's image, the same one the site shows. `urls.image` is the same file without the key (for embeds). 409 until the map is done; uploads have no image (404).","x-codeSamples":[{"lang":"curl","label":"curl","source":"curl -s \"$MAPRUST_URL/api/v1/maps/m3f9a1c2b7d40/image\" -H \"X-API-Key: $MAPRUST_KEY\" -o map.png"}],"responses":{"200":{"description":"The PNG.","headers":{"X-Rate-Limit-Limit":{"$ref":"#/components/headers/X-Rate-Limit-Limit"},"X-Rate-Limit-Remaining":{"$ref":"#/components/headers/X-Rate-Limit-Remaining"},"X-Rate-Limit-Reset":{"$ref":"#/components/headers/X-Rate-Limit-Reset"}},"content":{"image/png":{"schema":{"type":"string","contentMediaType":"image/png"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"Not done yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"example":{"meta":{"status":"Failed","statusCode":409,"errors":[{"code":"conflict","message":"the map is running: its files come when it is done"}]},"data":null}}}},"429":{"$ref":"#/components/responses/TooMany"},"500":{"$ref":"#/components/responses/Server"}}}},"/maps/{id}/thumbnail":{"parameters":[{"$ref":"#/components/parameters/MapId"}],"get":{"tags":["Files"],"operationId":"getMapThumbnail","summary":"The map thumbnail (JPEG, 512 px)","description":"The image at 512 px on its long side, JPEG. `urls.thumbnail` is the same file without the key. 409 until done; uploads have none (404).","x-codeSamples":[{"lang":"curl","label":"curl","source":"curl -s \"$MAPRUST_URL/api/v1/maps/m3f9a1c2b7d40/thumbnail\" -H \"X-API-Key: $MAPRUST_KEY\" -o thumb.jpg"}],"responses":{"200":{"description":"The JPEG.","headers":{"X-Rate-Limit-Limit":{"$ref":"#/components/headers/X-Rate-Limit-Limit"},"X-Rate-Limit-Remaining":{"$ref":"#/components/headers/X-Rate-Limit-Remaining"},"X-Rate-Limit-Reset":{"$ref":"#/components/headers/X-Rate-Limit-Reset"}},"content":{"image/jpeg":{"schema":{"type":"string","contentMediaType":"image/jpeg"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"Not done yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"example":{"meta":{"status":"Failed","statusCode":409,"errors":[{"code":"conflict","message":"the map is queued: its files come when it is done"}]},"data":null}}}},"429":{"$ref":"#/components/responses/TooMany"},"500":{"$ref":"#/components/responses/Server"}}}},"/maps/{id}/map":{"parameters":[{"$ref":"#/components/parameters/MapId"}],"get":{"tags":["Files"],"operationId":"getMapFile","summary":"The .map file","description":"The file a Rust server loads. For a server, use the levelurl in `urls.download` instead (`+server.levelurl \"<url>\"`): players download the map from it, no key needed. 409 until done.","x-codeSamples":[{"lang":"curl","label":"curl","source":"curl -s \"$MAPRUST_URL/api/v1/maps/m3f9a1c2b7d40/map\" -H \"X-API-Key: $MAPRUST_KEY\" -o maprust-m3f9a1c2b7d40.map"}],"responses":{"200":{"description":"The .map.","headers":{"X-Rate-Limit-Limit":{"$ref":"#/components/headers/X-Rate-Limit-Limit"},"X-Rate-Limit-Remaining":{"$ref":"#/components/headers/X-Rate-Limit-Remaining"},"X-Rate-Limit-Reset":{"$ref":"#/components/headers/X-Rate-Limit-Reset"}},"content":{"application/octet-stream":{"schema":{"type":"string","contentMediaType":"application/octet-stream"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"Not done yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"example":{"meta":{"status":"Failed","statusCode":409,"errors":[{"code":"conflict","message":"the map is expired: its files come when it is done"}]},"data":null}}}},"429":{"$ref":"#/components/responses/TooMany"},"500":{"$ref":"#/components/responses/Server"}}}},"/limits":{"get":{"tags":["Account"],"operationId":"getLimits","summary":"My plan's limits and what I used","description":"The same quotas the site uses: maps in the last 24 hours, maps being made or waiting now, hosted uploads, API calls a minute. `allowed: null` = no limit.","x-codeSamples":[{"lang":"curl","label":"curl","source":"curl -s \"$MAPRUST_URL/api/v1/limits\" -H \"X-API-Key: $MAPRUST_KEY\""}],"responses":{"200":{"description":"Limits.","headers":{"X-Rate-Limit-Limit":{"$ref":"#/components/headers/X-Rate-Limit-Limit"},"X-Rate-Limit-Remaining":{"$ref":"#/components/headers/X-Rate-Limit-Remaining"},"X-Rate-Limit-Reset":{"$ref":"#/components/headers/X-Rate-Limit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LimitsAnswer"},"example":{"meta":{"status":"Success","statusCode":200,"errors":null},"data":{"daily":{"used":7,"allowed":10},"running":{"current":1,"allowed":1},"uploads":{"current":0,"allowed":5},"rate":{"perMinute":60}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooMany"},"500":{"$ref":"#/components/responses/Server"}}}},"/profiles":{"get":{"tags":["Account"],"operationId":"listProfiles","summary":"Your saved profiles","description":"The map profiles you saved in the editor (newest first). `ready: false` = a draft: not generated yet.","x-codeSamples":[{"lang":"curl","label":"curl","source":"curl -s \"$MAPRUST_URL/api/v1/profiles\" -H \"X-API-Key: $MAPRUST_KEY\""}],"responses":{"200":{"description":"Profiles.","headers":{"X-Rate-Limit-Limit":{"$ref":"#/components/headers/X-Rate-Limit-Limit"},"X-Rate-Limit-Remaining":{"$ref":"#/components/headers/X-Rate-Limit-Remaining"},"X-Rate-Limit-Reset":{"$ref":"#/components/headers/X-Rate-Limit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfilesAnswer"},"example":{"meta":{"status":"Success","statusCode":200,"errors":null},"data":[{"id":"f0a1b2c3d4e5","name":"Wipe 12","ready":true,"updatedAt":"2026-11-01T11:00:00.000Z","madeWith":{"plugin":"0.14.0","build":"10721280:1792681252000"}}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooMany"},"500":{"$ref":"#/components/responses/Server"}}}},"/monuments":{"get":{"tags":["Reference"],"operationId":"listMonuments","summary":"Monument ids","description":"Every monument a map can hold. `id` is the prefab's file name — the id in a map's `monuments` and the `prefab` of a custom map's pins. `step` = the generator step that places it, `size` = its footprint in metres (`null` when the game gives none).","x-codeSamples":[{"lang":"curl","label":"curl","source":"curl -s \"$MAPRUST_URL/api/v1/monuments\" -H \"X-API-Key: $MAPRUST_KEY\""}],"responses":{"200":{"description":"Monuments.","headers":{"X-Rate-Limit-Limit":{"$ref":"#/components/headers/X-Rate-Limit-Limit"},"X-Rate-Limit-Remaining":{"$ref":"#/components/headers/X-Rate-Limit-Remaining"},"X-Rate-Limit-Reset":{"$ref":"#/components/headers/X-Rate-Limit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonumentsAnswer"},"example":{"meta":{"status":"Success","statusCode":200,"errors":null},"data":[{"id":"launch_site_1","name":"Launch Site","category":"large","step":"Main Monuments","size":{"x":400,"z":200}},{"id":"harbor_1","name":"Small Harbor","category":"large","step":"Harbors","size":{"x":280,"z":280}},{"id":"oilrig_1","name":"Large Oilrig","category":"large","step":"Offshore","size":null}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooMany"},"500":{"$ref":"#/components/responses/Server"}}}},"/templates":{"get":{"tags":["Reference"],"operationId":"listTemplates","summary":"Your templates","description":"The monument variants and custom monuments you can name in a request: yours, and ours when your plan has them (`locked: true` = your plan cannot use that one). Upload and download them on the site's Templates page. On a plan with our templates the list also holds one `builtin` entry per monument that has a MapRust custom version (`builtin:compound`, ...): no upload, the same id on every server; naming none is Rust native, the game's own.","x-codeSamples":[{"lang":"curl","label":"curl","source":"curl -s \"$MAPRUST_URL/api/v1/templates\" -H \"X-API-Key: $MAPRUST_KEY\""}],"responses":{"200":{"description":"Templates.","headers":{"X-Rate-Limit-Limit":{"$ref":"#/components/headers/X-Rate-Limit-Limit"},"X-Rate-Limit-Remaining":{"$ref":"#/components/headers/X-Rate-Limit-Remaining"},"X-Rate-Limit-Reset":{"$ref":"#/components/headers/X-Rate-Limit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplatesAnswer"},"example":{"meta":{"status":"Success","statusCode":200,"errors":null},"data":[{"id":"t3f9a1c2b4d5","kind":"swap","prefab":"compound","name":"Outpost with market","locked":false}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooMany"},"500":{"$ref":"#/components/responses/Server"}}}},"/openapi.json":{"get":{"tags":["Reference"],"operationId":"getOpenApi","summary":"This document","description":"This reference as OpenAPI 3.1 JSON, no key needed (not in the envelope). `servers` names this site.","security":[],"x-codeSamples":[{"lang":"curl","label":"curl","source":"curl -s \"$MAPRUST_URL/api/v1/openapi.json\""}],"responses":{"200":{"description":"The OpenAPI document.","content":{"application/json":{"schema":{"type":"object"},"example":{"openapi":"3.1.0","info":{"title":"MapRust API","version":"1.0.0"}}}}}}}}},"components":{"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"X-API-Key","description":"`mf_` + 40 hex characters, from your account page. One per account; a reset makes a new one and the old one stops at once."}},"parameters":{"MapId":{"name":"id","in":"path","required":true,"description":"The map's id (`m` + 12 hex), from a create call or the list.","schema":{"type":"string","pattern":"^m[0-9a-f]{12}$"},"example":"m3f9a1c2b7d40"}},"headers":{"X-Rate-Limit-Limit":{"description":"Calls allowed a minute for this key (each key counts its own minute: a reset key starts afresh).","schema":{"type":"integer"}},"X-Rate-Limit-Remaining":{"description":"Calls left in the current minute.","schema":{"type":"integer"}},"X-Rate-Limit-Reset":{"description":"Seconds until the minute starts over.","schema":{"type":"integer"}},"Retry-After":{"description":"Seconds to wait before the next call.","schema":{"type":"integer"}}},"schemas":{"Meta":{"type":"object","required":["status","statusCode","errors"],"properties":{"status":{"type":"string","enum":["Success","Failed"],"description":"Did the call work? (Not the map's state: that is `data.state`.)"},"statusCode":{"type":"integer","description":"The HTTP status, repeated."},"errors":{"type":["array","null"],"items":{"$ref":"#/components/schemas/Error"},"description":"null on success."}}},"PagedMeta":{"allOf":[{"$ref":"#/components/schemas/Meta"},{"type":"object","required":["page","itemsPerPage","totalItems","lastPage"],"properties":{"page":{"type":"integer"},"itemsPerPage":{"type":"integer","const":50},"totalItems":{"type":"integer"},"lastPage":{"type":"integer","description":"The last page number (0 when everything fits on one)."}}}]},"Error":{"type":"object","required":["code","message"],"properties":{"code":{"$ref":"#/components/schemas/ErrorCode"},"message":{"type":"string","description":"What happened, in plain English (may change; use `code` in your logic)."},"field":{"type":"string","description":"The request field at fault (`invalid` only, when it is known)."},"needs":{"type":"string","enum":["pro","ultra"],"description":"The plan that has this (`plan` only)."},"retryAfter":{"type":"integer","description":"Seconds until the next map fits the 24-hour limit (`quota` 429, also the `Retry-After` header)."}}},"ErrorCode":{"type":"string","enum":["unauthorized","plan","quota","rate_limited","invalid","not_found","conflict","too_large","server","busy","maintenance","staging_closed"],"description":"unauthorized (401): no key, or not a valid one. plan (403): your plan does not include this (`needs` says which: world / generator settings and rules need Pro; terrain edits, painting, paths, monument work and our templates need Ultra). quota (403): the hosted uploads are used up — delete one; quota (429): the fair use limit of maps in 24 hours is reached (`retryAfter` + `Retry-After`: the seconds until the oldest counted map leaves the window), or 5 of your maps are waiting already, wait until one is done. rate_limited (429): over the calls a minute — wait `Retry-After` seconds. invalid (400): a field is wrong (`field` names it when known). not_found (404): no such map (or not yours), no such call. conflict (409): not in the state this needs (cancel a running map, the files of an unfinished map, a custom map whose spots are not ready). too_large (413): the body is over the limit. busy (503): the server is rendering too many previews (custom maps with `shape` or `gen`) — wait `Retry-After` seconds (10) and send it again. maintenance (503): no generation server covers the map's size right now — try again later (the site shows the same notice). staging_closed (400): `staging: true` outside the last 7 days before a force wipe. server (500 / 502): our fault — try again later. A map from a profile that is still a draft answers 400 `invalid` (the message says why); a profile whose contents your plan does not cover 403 `plan`."},"Failure":{"type":"object","required":["meta","data"],"properties":{"meta":{"$ref":"#/components/schemas/Meta"},"data":{"type":"null"}}},"MapAnswer":{"type":"object","required":["meta","data"],"properties":{"meta":{"$ref":"#/components/schemas/Meta"},"data":{"$ref":"#/components/schemas/MapV1"}}},"MapListAnswer":{"type":"object","required":["meta","data"],"properties":{"meta":{"$ref":"#/components/schemas/PagedMeta"},"data":{"type":"array","items":{"$ref":"#/components/schemas/MapV1"}}}},"IdAnswer":{"type":"object","required":["meta","data"],"properties":{"meta":{"$ref":"#/components/schemas/Meta"},"data":{"type":"object","required":["id"],"properties":{"id":{"type":"string"}}}}},"LimitsAnswer":{"type":"object","required":["meta","data"],"properties":{"meta":{"$ref":"#/components/schemas/Meta"},"data":{"$ref":"#/components/schemas/Limits"}}},"MonumentsAnswer":{"type":"object","required":["meta","data"],"properties":{"meta":{"$ref":"#/components/schemas/Meta"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Monument"}}}},"CreateDefault":{"type":"object","required":["size","seed"],"properties":{"size":{"type":["integer","string"],"minimum":1000,"maximum":6000,"description":"Map size in metres, any whole number 1000..6000 (a string of digits is accepted)."},"seed":{"type":["integer","string"],"minimum":1,"maximum":2147483647,"description":"The seed, 1..2147483647 (a string of digits is accepted)."},"name":{"type":"string","maxLength":100,"description":"Optional name, shown on the site."},"staging":{"type":"boolean","description":"`true` = make the map on the next wipe's build (the staging branch). From 7 days before a force wipe on a paid plan, 24 hours before it on Free (else 400 `staging_closed`); no staging generation server for its size answers 503 `maintenance`."}}},"CreateCustom":{"type":"object","required":["size","seed"],"description":"The site's map request. Only `size` and `seed` are required; every other field is optional and leaves the game's behaviour when absent. `rules` / `settings` (round 5): the custom generator options.","properties":{"size":{"type":["integer","string"],"minimum":1000,"maximum":6000},"seed":{"type":["integer","string"],"minimum":1,"maximum":2147483647},"name":{"type":"string","maxLength":100},"staging":{"type":"boolean","description":"`true` = make the map on the next wipe's build (the staging branch), from 7 days before a force wipe on a paid plan, 24 hours before it on Free (else 400 `staging_closed`)."},"world":{"type":"object","description":"The game's world config: PercentageTier0..2, PercentageBiomeArid / Temperate / Tundra / Arctic / Jungle (each group all or none), MainRoads, SideRoads, Trails, Rivers, Powerlines, AboveGroundRails, BelowGroundRails, UnderwaterLabs (true / false), PrefabBlacklist (up to 50 prefab names)."},"generator":{"type":"object","description":"Generator switches: roadRingAnySize, railRingAnySize, uniqueEnvironments, roadsideMonuments, roadsideObjects, carWrecks (true / false), riverWidth (0.1..10)."},"gen":{"type":"object","description":"Our terrain generator: `flatmap: true` = a flat map inside the seed's own coast (the editor's Flatmap; leave out `rules.terrainConfiguration.mountainConfig` with it), its settings plus up to 300 brush strokes {tool, r, points [[x, z] 0..1]} (≤ 10000 points)."},"shape":{"type":"object","description":"landmasses, square, feather, mask / biomes (PNG data URLs ≤ 10 MB, ≤ 4096 px; painting in a map needs Ultra)."},"pins":{"type":"array","maxItems":50,"description":"Your monuments. Without `layout` each pin snaps to the centre of its 25 m spot cell at a rotation the game's own rules allow there (none there: 400 `invalid`). With `layout` (Custom): a pin of a harbour, fishing village, lighthouse, underwater lab, oil rig, cave or tunnel entrance still does; every other monument stands exactly at its `x` / `z` (a value off the map is put onto its edge), at its own rotation (0.1° steps) — even where the game would not put it (spacing, biome, slope) — as long as no two footprints overlap and at most a set share of its footprint is over water (beyond the map's edge counts as water) (else 400 `invalid`, the message naming the pin: \"would stand in the sea\"). Round 5: pins may touch (footprints that only meet are fine; any overlap is 400 `invalid`) and a placement is never dropped at run time (an overlap that only appears then is placed anyway: warning `forcedOverlap`). A harbour, fishing village, lighthouse or ferry terminal on a coast spot the game's own rules do not allow (the editor's light green, `masks.json` `coast`) is placed exactly there facing the sea. A gas station, supermarket or warehouse stands where it is put; off a road the generator joins it to the nearest road (within 500 m) or warns `noRoad`.","items":{"type":"object","required":["prefab","x","z"],"properties":{"prefab":{"type":"string","description":"A monument id (GET /monuments)."},"x":{"type":"number","minimum":0,"maximum":1},"z":{"type":"number","minimum":0,"maximum":1},"rotation":{"type":"number","minimum":0,"maximum":360},"ref":{"type":"string","description":"With `layout`: the game's own monument this pin moves."}}}},"layout":{"type":"object","properties":{"key":{"type":"string"},"removed":{"type":"array","items":{"type":"string"}}},"description":"The game's own layout of this terrain (the editor's Custom step) and the monuments removed from it. With it, pins (except the coast, cave and tunnel kinds) and custom monuments stand exactly where you put them (see `pins`)."},"swaps":{"type":"array","maxItems":10,"items":{"type":"object"}},"customs":{"type":"array","maxItems":20,"items":{"type":"object"}},"monumentCounts":{"type":"object","description":"Copies a monument step tries, by monument id (`GET /monuments`): 0 (none) .. 20. A monument the game places only one of (the Outpost, a harbor, a quarry, ...) is held to 1; the few it repeats (gas station, supermarket, warehouse 3; lighthouse 2; water wells 2 or 3; one small cave 2; ice lakes 2 or 3) to that most. More is lowered and named in `warnings` (`ruleUnsupported`, reason `count`)."},"paths":{"type":"array","maxItems":16,"description":"Round 9: roads and railways you draw. Each path is `{type: \"road\" | \"rail\", points: [[x, z], ...]}` with `x` / `z` 0..1 across the map (west -> east, south -> north) like pins; 2..64 points, consecutive points at least 25 m apart, at most 40 km of line in all. A refusal is 400 `invalid` with `reason`: `tooManyPaths`, `pathType`, `pathPoints`, `tooManyPoints`, `pathPoint`, `bounds`, `spacing` or `length`. A request with paths is never answered by a reused Default map.","items":{"type":"object","required":["type","points"],"properties":{"type":{"type":"string","enum":["road","rail"]},"points":{"type":"array","minItems":2,"maxItems":64,"items":{"type":"array","minItems":2,"maxItems":2,"items":{"type":"number","minimum":0,"maximum":1}}}}}},"fillRandom":{"type":"boolean","description":"false: only your pins, no random monuments after the rivers."},"rules":{"type":"object","description":"Round 5: every option of the custom generator in the `CustomMapSettings` shape (generateRingRoad, removeRivers, riverCount 0..8, riverWidth 2..20, riverMaxLength 800..3000, blockedPrefabs, terrainConfiguration {islandConfig (intensity 0..10: 0 = one big landmass, 5 = the game's own map, 10 = the most islands: necks cut, the sea up to 2.5 m higher), islandMap (ours: the land cut into an archipelago), islandSize (ours: 1..9, how big the island map's islands are; 5 = default), mountainConfig, tierConfig, biomeConfig, flattenShoreAndBay, biomeAxisAngle, lootAxisAngle}, oilRigConfigurations, safezones / largeMonuments / smallMonuments / harbors / waterWells / caves / mountains / quarries / icebergs / iceLakes / ruins (each entry: type, blocked, desired, amount 1..15 (held to what the game places of that kind: most kinds one, so `amount` says nothing there; the few it repeats up to 2 or 3, more is lowered with a `ruleUnsupported` warning, reason `count`), spacing 50..500, biomePreferences, tierPreferences, distanceRules, nearbyPrefabRules, flattenTerrain, customPrefab {enabled, id}: `builtin:<prefab>` = the monument's MapRust custom, else a template id; mountains take only `blocked`, an iceberg entry only `blocked` too: it becomes a blocklist entry), underwaterLabsConfiguration, lakesConfiguration, oasesConfiguration, canyonsConfiguration, fileName, webhook, heightmapResolution, splatmapResolution, embedCargoShipPath ...). Pro plan. A value that is the game's own behaviour (null, false, NoPreference) changes nothing; an out-of-range value is 400 `invalid` naming the field (`rules.riverCount`). What this site cannot honour is listed in the map's `warnings` as `ruleUnsupported` with the `path`. Options another option cancels are applied as the generator does and listed as `noEffect` with the `path` (e.g. `generator.roadRingAnySize` with `generateRingRoad` NotWanted: no ring road; a ring or `riverMaxLength` while its roads / rivers are off; `spacing` outside Gas Station, Supermarket, Warehouse, Lighthouse); `riverWidth` (metres) together with `generator.riverWidth` (×): the multiplier is used; `world.BelowGroundRails` false alone also gets `removeUndergroundTunnels` (the entrances go too). A count rule (`lakesConfiguration` …) with `generate` Wanted and no `minAmount` / `maxAmount` rolls 1..3. `webhook` {enabled, url}: a POST {id, seed, size, state, downloadUrl} when the map is done or failed (Discord webhook URLs get an embed); https on port 443 to a public host only. `fileName`: parts of the download file name (`{Date}`, `{ShortId}`, `{Size}`, `{Seed}`, `{Type}`, `{Id}`, `{_}`, `{Custom='text'}`); the map id is always part of it."},"settings":{"type":"object","description":"Instead of `rules` + our own fields: a `CustomMapSettings` body, as it is. What maps onto our own fields moves there (removeRivers, removeCarWrecks, removeUndergroundTunnels, ring road / rail ring 'Wanted', riverWidth, biome and tier percentages), the rest is `rules`. Combine with `seed`, `size`, `name`. The request shape `{mapParameters: {seed, size}, customMapSettings, fastMode}` is accepted too (`fastMode` is listed in `warnings`: there is none)."}}},"MapState":{"type":"string","enum":["waiting","queued","running","done","failed","cancelled","expired"],"description":"waiting: a map from a profile whose game monuments are being prepared first (`step` = `preparing`; it starts by itself). queued: waiting for a generator (see queuePosition). running: being made (see step). done: ready. failed: see error. cancelled: stopped before it started. expired: done, but its files were deleted after the plan's days."},"MapV1":{"type":"object","required":["id","kind","vanilla","name","size","seed","state","queuePosition","step","error","createdAt","finishedAt","expiresAt","public","warnings","urls","monuments","biomes","landPercent"],"properties":{"id":{"type":"string","pattern":"^m[0-9a-f]{12}$","description":"Stable for the map's life."},"kind":{"type":"string","enum":["default","custom","upload"],"description":"default: seed + size, nothing edited. custom: made with edits. upload: a hosted .map."},"vanilla":{"type":"boolean","description":"A Default map with the game's default world config too: any server with this seed + size gets the same map without a levelurl."},"name":{"type":"string"},"size":{"type":"integer"},"seed":{"type":["integer","null"],"description":"null for uploads."},"state":{"$ref":"#/components/schemas/MapState"},"queuePosition":{"type":["integer","null"],"description":"1 = next. Only while queued."},"step":{"type":["string","null"],"description":"The generator step running now, e.g. \"Terrain Erosion\". Only while running."},"error":{"type":["string","null"],"description":"Why it failed. Only when failed."},"createdAt":{"type":"string","format":"date-time"},"finishedAt":{"type":["string","null"],"format":"date-time"},"expiresAt":{"type":["string","null"],"format":"date-time","description":"When the files (and the levelurl) are deleted. Set once done."},"public":{"type":"boolean","description":"Anyone with its link may use it (download / levelurl); a private map's link only shows it. Switch it on the site."},"warnings":{"type":"array","items":{"type":"object","required":["code","text"],"properties":{"code":{"type":"string","description":"What happened, stable (e.g. `pinMoved`, `pinLost`, `pinTurned`, `pinGround`, `pinWater`; `text` = an older map's plain line). Act on this, not on `text`. Round 5: `forcedOverlap` (placed although it overlaps another placement), `noRoad` (a roadside monument with no road within reach), `ruleUnsupported` (a `rules` option this generator cannot honour; see `path`), `noEffect` (an option another one cancels, applied as the generator does; see `path`)."},"text":{"type":"string","description":"The same in plain English (may change)."},"pin":{"type":"integer","description":"The pin it is about (1-based, the request's `pins` order)."},"ref":{"type":"string","description":"The kept vanilla monument it is about (`layout` ref), instead of `pin`."},"other":{"type":["integer","string"],"description":"The other pin (or, with `otherKind`, the other monument's ref) involved."},"otherKind":{"type":"string","enum":["pin","custom","kept"],"description":"What `other` is."},"meters":{"type":"number","description":"How far it was moved."},"from":{"type":"number","description":"Before (e.g. the yaw it was asked for)."},"to":{"type":"number","description":"After (e.g. the yaw it got)."},"path":{"type":"string","description":"`ruleUnsupported` / `noEffect`: the option, e.g. `rules.caves[0].customPrefab`."},"reason":{"type":"string","description":"`ruleUnsupported`: why (`noPrefab`, `children`, `customPrefab`, `unsupported`, `size`, ...)."}}},"description":"Custom maps: monuments that were moved or left out, as objects with a stable `code` (fields beyond `code` / `text` only when they apply). The map is still done."},"urls":{"type":["object","null"],"description":"Only when done.","properties":{"page":{"type":"string","format":"uri","description":"The map's page on the site (its share link)."},"image":{"type":["string","null"],"format":"uri","description":"The map image, no key needed (embeds). null for uploads."},"thumbnail":{"type":["string","null"],"format":"uri","description":"512 px JPEG, no key needed. null for uploads."},"download":{"type":["string","null"],"format":"uri","description":"The levelurl: `+server.levelurl \"<url>\"`. Until expiresAt."}}},"monuments":{"type":["array","null"],"description":"Only when done (null for uploads).","items":{"type":"object","required":["id","name","category","x","z","rotation"],"properties":{"id":{"type":"string","description":"The prefab's file name (GET /monuments)."},"name":{"type":"string"},"category":{"type":"string","enum":["large","small","tiny","caves","unique"]},"x":{"type":"number","description":"Metres east of the map centre."},"z":{"type":"number","description":"Metres north of the map centre."},"rotation":{"type":["number","null"],"description":"Degrees, 0..360 (null when unknown)."}}}},"biomes":{"type":["object","null"],"description":"Share of the land per biome, %, sums to 100.","properties":{"arid":{"type":"number"},"temperate":{"type":"number"},"tundra":{"type":"number"},"arctic":{"type":"number"},"jungle":{"type":"number"}}},"landPercent":{"type":["number","null"],"description":"Land share of the map square, %."}}},"Limits":{"type":"object","required":["daily","running","uploads","rate"],"properties":{"daily":{"type":"object","properties":{"used":{"type":"integer"},"allowed":{"type":["integer","null"]}},"description":"Maps started in the last 24 hours (rolling) that did not fail or get cancelled; deleted ones count, copies of a map someone already made do not."},"running":{"type":"object","properties":{"current":{"type":"integer"},"allowed":{"type":["integer","null"]}},"description":"`current` = your maps queued or being made now; `allowed` = how many run at once, the rest wait (at most 5 waiting)."},"uploads":{"type":"object","properties":{"current":{"type":"integer"},"allowed":{"type":["integer","null"]}},"description":"Hosted uploads kept now."},"rate":{"type":"object","properties":{"perMinute":{"type":"integer"}}}}},"Monument":{"type":"object","required":["id","name","category","step","size"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"category":{"type":"string","enum":["large","small","tiny","caves","unique"]},"step":{"type":"string"},"size":{"type":["object","null"],"properties":{"x":{"type":"number"},"z":{"type":"number"}}}}},"Template":{"type":"object","required":["id","kind","prefab","name","locked"],"properties":{"id":{"type":"string","description":"The template id a request names (`pins[].template`, `layout.variants[].template`, `swaps[].template`, `customs[].template`, a monument rule's `customPrefab.id`). A `builtin:<prefab>` id is the monument's MapRust custom."},"kind":{"type":"string","enum":["swap","custom","builtin"],"description":"swap: a variant of one vanilla monument (`prefab`). custom: a monument of its own. builtin: the MapRust custom version of one monument (`prefab`), ours, Ultra, no upload; it carries RustEdit data (vending machines, wiring), so the player's server needs Oxide.Ext.RustEdit."},"prefab":{"type":["string","null"],"description":"The monument a swap is for (a `GET /monuments` id); null for a custom one."},"name":{"type":"string"},"locked":{"type":"boolean","description":"true: your plan cannot use it (our templates need Ultra)."}}},"TemplatesAnswer":{"type":"object","required":["meta","data"],"properties":{"meta":{"$ref":"#/components/schemas/Meta"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Template"}}}},"Profile":{"type":"object","required":["id","name","ready","updatedAt","madeWith"],"properties":{"id":{"type":"string","description":"Profile id (`f` + 12 hex), the `profile` of `POST /maps/profile`."},"name":{"type":"string"},"randomSeed":{"type":"boolean","description":"true: a random-seed profile — every `POST /maps/profile` makes it on a new random seed (it keeps the rules, size and settings, not one seed's monuments or painting)."},"ready":{"type":"boolean","description":"false: a draft saved at an early step of the editor — it cannot be generated yet."},"updatedAt":{"type":"string","format":"date-time"},"madeWith":{"type":"object","properties":{"plugin":{"type":"string"},"build":{"type":"string"}},"description":"The generator version and game build the profile was last saved under; a map made from it on another build carries the warning `profileBuild`."}}},"ProfilesAnswer":{"type":"object","required":["meta","data"],"properties":{"meta":{"$ref":"#/components/schemas/Meta"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Profile"}}}},"CreateFromProfile":{"type":"object","required":["profile"],"properties":{"profile":{"type":"string","description":"A profile id of `GET /profiles`."},"name":{"type":"string","maxLength":100,"description":"Optional name of the map (default: the profile's)."},"seed":{"type":"integer","minimum":1,"maximum":2147483647,"description":"Random-seed profiles only (`randomSeed: true`): the seed to use instead of a new random one. Any other profile: 400."},"size":{"type":"integer","minimum":1000,"maximum":6000,"description":"Random-seed profiles only: the map size instead of the profile's. Any other profile: 400."}}}},"responses":{"Invalid":{"description":"A field is wrong.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"example":{"meta":{"status":"Failed","statusCode":400,"errors":[{"code":"invalid","message":"size: a whole number 1000..6000","field":"size"}]},"data":null}}}},"Unauthorized":{"description":"No key, or not a valid one (the rate headers then show a fresh minute: the free plan's limit, all of it left).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"example":{"meta":{"status":"Failed","statusCode":401,"errors":[{"code":"unauthorized","message":"this API key is not valid (reset or deleted?)"}]},"data":null}}},"headers":{"X-Rate-Limit-Limit":{"$ref":"#/components/headers/X-Rate-Limit-Limit"},"X-Rate-Limit-Remaining":{"$ref":"#/components/headers/X-Rate-Limit-Remaining"},"X-Rate-Limit-Reset":{"$ref":"#/components/headers/X-Rate-Limit-Reset"}}},"Plan":{"description":"Not in your plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"example":{"meta":{"status":"Failed","statusCode":403,"errors":[{"code":"plan","message":"this map needs the Ultra plan (Forge: terrain edits, painting, paths, monument work)","needs":"ultra"}]},"data":null}}}},"QuotaUploads":{"description":"The hosted uploads are used up.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"example":{"meta":{"status":"Failed","statusCode":403,"errors":[{"code":"quota","message":"Free plan: 5 uploaded maps at once"}]},"data":null}}}},"TooMany":{"description":"The 24-hour limit of maps is reached or 5 maps are waiting (`quota`), or too many calls a minute (`rate_limited`); wait `Retry-After` seconds when it is there.","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-Rate-Limit-Remaining":{"$ref":"#/components/headers/X-Rate-Limit-Remaining"},"X-Rate-Limit-Reset":{"$ref":"#/components/headers/X-Rate-Limit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"examples":{"rate_limited":{"value":{"meta":{"status":"Failed","statusCode":429,"errors":[{"code":"rate_limited","message":"60 calls a minute: try again in 18 s"}]},"data":null}},"quota":{"value":{"meta":{"status":"Failed","statusCode":429,"errors":[{"code":"quota","message":"Free plan: 4 maps at once — wait for one to finish"}]},"data":null}}}}}},"NotFound":{"description":"No such map (or not yours).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"example":{"meta":{"status":"Failed","statusCode":404,"errors":[{"code":"not_found","message":"no such map"}]},"data":null}}}},"Conflict":{"description":"Not in the state this needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"example":{"meta":{"status":"Failed","statusCode":409,"errors":[{"code":"conflict","message":"only a queued map can be cancelled (this one is running)"}]},"data":null}}}},"TooLarge":{"description":"The body is too large.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"example":{"meta":{"status":"Failed","statusCode":413,"errors":[{"code":"too_large","message":"at most 100 MB"}]},"data":null}}}},"Server":{"description":"Our fault: try again later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"example":{"meta":{"status":"Failed","statusCode":500,"errors":[{"code":"server","message":"server error"}]},"data":null}}}},"Busy":{"description":"The preview renderer is full (a custom map with `shape` or `gen` renders its terrain first): wait `Retry-After` seconds and send it again.","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"},"example":{"meta":{"status":"Failed","statusCode":503,"errors":[{"code":"busy","message":"preview busy, the server is rendering other previews"}]},"data":null}}}}}}}