// api · version 1

The game API lets a menu bar, a widget or a script read your colonies as JSON. It is read-only: it shows your colonies and never acts on them. This page is for someone building such a client, and covers making a token and a first call, every endpoint a token can call, and a few ideas. How to play the game itself is in the guide.

getting started reference ideas

// getting started · make a token and a first call

You need a colony, and a browser signed in to it.

  1. Open your colony, choose [ account ], then [ all settings ].
  2. Under other apps, give the token a label you will recognise later, such as menu bar, and press [ new token ].
  3. Copy the token at once. It starts with mst_ and is shown only this one time: a reload offers the button again, never the token.
  4. Ask for your colonies, with the token in the Authorization header:
curl https://momentary.space/api/v1/colonies \
  -H "Authorization: Bearer mst_…"

The answer is a JSON array of your colonies, described under GET /api/v1/colonies.

A token reads your colonies and can't change them. It works until you revoke it: press [ revoke ] beside its line under [ all settings ], and its next request answers 401. You can hold up to 20 tokens and make up to 10 in an hour.

// reference

// conventions

base
Every endpoint lives under https://momentary.space/api/v1 and answers JSON.
tokens
Every request carries Authorization: Bearer mst_…. The API reads no cookie, and the web pages never accept a token.
scope
Everything is scoped to the player the token belongs to. A designation that isn't one of your colonies answers 404, whether or not another player holds it.
times
Times are UTC, in ISO 8601 with milliseconds, such as 2026-10-19T14:32:00.000Z. The server's clock is in the Date header.
units
Stocks and capacities are whole amounts. Every rate, and Energy's made and drawn, is per minute. The drone's root and cutoff are in hertz, and ambience levels run from 0 to 1.
settling
Every colony a response describes is settled to the current minute first, so its numbers are exact for that minute.
polling
next_change_at is when the colony next changes beyond a delivery: a completion, an event, a return, a level, an asteroid or, from Level 11, a stray rock. delivery.at is when the next delivery lands. Both are rounded up to the minute, and null means nothing is scheduled. A client that asks again at the earlier of the two, plus a second or two, sees every change the colony page sees.
etag
Every response carries an ETag and Cache-Control: max-age=0, private, must-revalidate. A request that sends the ETag back as If-None-Match answers 304 with no body while nothing has changed.
visits
A request never counts as looking in on a colony. It leaves the while-you-were-away notice for the page, and never holds back an email or a push.
version
Version 1 may add fields, kinds and endpoints, and never removes or renames one. Clients ignore what they don't know, an unknown kind included. Fields named name, label, hint, effect, notice or lines carry the colony page's own words, for showing rather than parsing, and their wording changes when the page's does.

// rate limits

Each token may make 60 requests a minute, counted across every endpoint. Requests with a missing or unknown token are limited to 20 every 3 minutes per IP address. Either limit answers 429 with Retry-After set to its window in seconds, 60 or 180, and a client must not ask again before that time has passed.

// errors

An error answers with its status and a short JSON body.

401
{ "error": "unauthorized" } with WWW-Authenticate: Bearer realm="Momentary Space". The token is missing, unknown or revoked.
404
{ "error": "not found" }. The designation isn't one of your colonies.
429
{ "error": "too many requests" } with Retry-After. A rate limit was reached.

GET /api/v1/player

The player the token belongs to: how many colonies it holds, its home colony, which is the first it founded, the colony it last had open, the pace it plays at, calm, lively or bold, which a change in the account reaches at the next half-hour window, and the relics, curios, notebooks, artefacts and crew projects it holds across its colonies. home_colony and last_colony are designations, or null without a colony, and notebook.next_at is null once all sixteen notebooks are filled. notebook.perks names the perks held, in the order chosen, such as second_bench or thrifty_crew, and curios counts the keepsake the crew saved in the descent, held from founding, and what the rover and the wreck buggy have brought home since. It never includes an email address, a session code or a device.

{
  "colonies_count": 2,
  "pace": "calm",
  "home_colony": "MS-0018-D",
  "last_colony": "MS-0090-D",
  "relics": {
    "held": 2,
    "total": 12
  },
  "curios": {
    "held": 0,
    "total": 18
  },
  "notebook": {
    "notes": 8,
    "filled": 0,
    "next_at": 10,
    "choice": false,
    "perks": []
  },
  "artefacts": {
    "held": [],
    "limit": 3
  },
  "projects": {
    "done": 0
  },
  "colonies_url": "https://momentary.space/api/v1/colonies",
  "created_at": "2026-10-11T09:14:02.511Z"
}

GET /api/v1/colonies

Your colonies as an array, in the order they were founded. last_open marks the colony you last had open, ready holds the ◆ counts of the colony page's tabs, which count what can start right now, and app_url is the colony's page on the web.

[
  {
    "designation": "MS-0017-D",
    "name": "Ember Hollow",
    "coordinates": "[2:17:4]",
    "level": 16,
    "home": true,
    "last_open": false,
    "ready": {
      "colony": 4,
      "research": 0,
      "explore": 0,
      "crew": 3
    },
    "next_change_at": "2026-10-19T14:33:00.000Z",
    "url": "https://momentary.space/api/v1/colonies/MS-0017-D",
    "app_url": "https://momentary.space/colonies/MS-0017-D"
  }
]

GET /api/v1/colonies/:designation

One colony's status, as the colony page shows it. The designation takes any letter case, so ms-0031-d reads the same colony as MS-0031-D.

delivery
state is delivering, with the next delivery at at, starting, with production starting at at, full, when every store the colony fills is full, or idle, when nothing produces. full lists the resources whose stores are full.
resources
The stored resources in the resource bar's order: Metal and Crystal always, components and Ara slime once the colony makes or holds some. stock is always the true figure, from the salvage's 250 Metal and 300 Crystal at founding, even while the page reads ? because the crew hasn't counted the salvage yet. rate is this minute's output, events and Energy included, and events lists the kinds of the running events that change it.
energy
Energy made and drawn, as whole numbers, and whether the colony is short.
events
The running timed events. good tells the ✦ events from the /!\ ones. A meteor strike or a tremor is listed while its building is damaged, with damage naming the building, the rig's region and the end of a repair under way. Every other event's damage is null.
under_way
Everything // now shows, soonest to end first, with the items waiting in the build and research queues under the item under way. kind is the item's kind in snake case, such as construction, research, expedition, trip or event. A chore is one of the three short things a new colony's crew does after the landing, such as » crew · counting the salvage, lasting 15 to 25 seconds. A trade_run is one trader's run, so a trading post with two or three traders out lists one for each, such as » trader · flying to the waystation beside » trader · unloading at MS-0421-D. A lead is a lead the crew is listening out for, such as § a signal from MS-0421-F · listening. automatic is true for a run that standing orders sent, whose name starts with ↻ in place of », such as ↻ rover · digging deep in region II. A project carries its bench, player for the player's bench or commons for the place a colony's commons gives it, whose name ends in · on the commons. A segment is the slipway's open segment while the world outposts or the Slime Vat feed it, such as + slipway · plating, whose ends_at is when its flow fills it at this minute's rate, and a fitting is a slipway fitting on a commons, such as * slipway · fitting the legs. A flight or a founding carries its lander, 1 or 2 once the slipway has built the second.
orders
The colony's standing orders from Level 16, one for each kind of vehicle, rovers, barges, traders and deep_space_probes: true while it is switched on, false while it is off, and null while the colony can't have it yet, or never, as a second colony's deep-space probes. The API reads the orders and never switches one.
berths
The colony's berths from the home colony's Level 16, null before: filled settlers living there, its total berths, and the settlers incoming on the shuttle. Each filled berth adds 1% to the colony's Metal, Crystal, components and Ara slime, up to 20%, which rate already includes.
slipway
The home colony's slipway from Level 18, null before and in every other colony: the segments done of twelve, and the open segment with its number, name, source, what it has delivered of what it needs, and whether its feed is on, or null while none is open. The API never switches a feed or starts a fitting.
leads
The leads open in the colony, from Level 5: something the crew noticed and wants to follow. state is offer while it waits to be followed or let go, step while a step waits on something the colony does, and choice while the crew waits for one of two ends. step counts from 1, or is null for an offer, lines holds the crew's latest lines, waits_on says what the step waits for, such as waiting for the lab's next research or listening, and goes_cold_at is null while the lead waits for as long as you take. The API reads leads and never follows, chooses or trades.
visitors
The visitor in the neighbourhood, if there is one: a freighter with one trade, whose offer reads like wants 4,000 components · pays 31,600 crystal · 158%, or a tinker with spare parts for one building's next upgrade. leaves_at is when it moves on.
next
The next level and its conditions, or null past the last level. brings names what the level brings as its notice will, such as a third rover, a relic or a cache, or null for a level that brings nothing of its own. A condition's completes_at is set while its research is under way. hint is null while the opening briefing shows, and briefing then holds its lines.
ready
The ◆ counts per tab, colony, research, explore and crew, and per explore section the colony's level has opened.
{
  "designation": "MS-0031-D",
  "name": null,
  "coordinates": "[2:31:4]",
  "level": 7,
  "home": true,
  "settled_at": "2026-10-22T12:21:00.000Z",
  "next_change_at": "2026-10-22T12:41:00.000Z",
  "delivery": {
    "state": "delivering",
    "at": "2026-10-22T12:22:00.000Z",
    "full": [
      "crystal"
    ]
  },
  "resources": [
    {
      "name": "metal",
      "stock": 17000,
      "capacity": 20000,
      "rate": 31,
      "full": false,
      "events": [
        "rich_seam"
      ]
    },
    {
      "name": "crystal",
      "stock": 20000,
      "capacity": 20000,
      "rate": 20,
      "full": true,
      "events": []
    }
  ],
  "energy": {
    "made": 56,
    "drawn": 50,
    "short": false,
    "events": []
  },
  "events": [
    {
      "kind": "rich_seam",
      "name": "rich seam",
      "good": true,
      "effect": "metal at 125%",
      "started_at": "2026-10-22T12:21:00.000Z",
      "ends_at": "2026-10-22T12:41:00.000Z",
      "damage": null
    }
  ],
  "under_way": [
    {
      "kind": "construction",
      "name": "↑ metal mine → lvl 4",
      "automatic": false,
      "started_at": "2026-10-22T12:21:00.000Z",
      "ends_at": "2026-10-22T13:21:00.000Z",
      "queued": [
        {
          "kind": "construction",
          "name": "↑ crystal extractor → lvl 4",
          "automatic": false,
          "starts_at": "2026-10-22T13:21:00.000Z",
          "ends_at": "2026-10-22T14:21:00.000Z"
        }
      ]
    }
  ],
  "orders": {
    "rovers": null,
    "barges": null,
    "traders": null,
    "deep_space_probes": null
  },
  "berths": null,
  "slipway": null,
  "leads": [],
  "visitors": [],
  "next": {
    "level": 8,
    "notice": null,
    "brings": null,
    "conditions": [
      {
        "label": "research orbital mining",
        "met": true,
        "completes_at": null
      },
      {
        "label": "hauls brought home 0/3",
        "met": false,
        "completes_at": null
      }
    ],
    "hint": "→ upgrade the metal mine",
    "briefing": null
  },
  "ready": {
    "colony": 8,
    "research": 13,
    "explore": 1,
    "crew": 11,
    "sections": {
      "probes": 1,
      "fleet": 0,
      "orbit": 0,
      "surface": 0,
      "relics": 0
    }
  },
  "url": "https://momentary.space/api/v1/colonies/MS-0031-D",
  "log_url": "https://momentary.space/api/v1/colonies/MS-0031-D/log",
  "app_url": "https://momentary.space/colonies/MS-0031-D"
}

GET /api/v1/colonies/:designation/log

The entries the colony log shows, newest first, up to twenty. lines holds the entry's line, and beneath it the line of a relic or a curio the entry brought home, the relic's first. A running timed event leaves its countdown out of its line and gives ends_at instead. kind names the entry's source, such as event, expedition or level_up, and automatic is true for the return of a run that standing orders sent, whose line starts with ↻ in place of ~. A level_up entry carries the reward its level was reached with, such as rover or relic, or null for a level that brought nothing of its own. A chore entry is a chore the crew finished after the landing, its header over its result lines. A lead entry is a lead offered, a step met, a lead followed to its end, let go or gone cold, a visitor one a visitor arriving, a trade with it or its leaving, a moment a line or two the crew remembers, and a nudge a line about something coming a little kinder than usual. While the colony has no name yet, the log holds nineteen, since the invitation to name it stays on the page.

[
  {
    "kind": "event",
    "at": "2026-10-19T14:32:00.000Z",
    "lines": [
      "✦ rich seam · metal at 125%"
    ],
    "automatic": false,
    "running": true,
    "ends_at": "2026-10-19T14:52:00.000Z"
  },
  {
    "kind": "expedition",
    "at": "2026-10-17T15:32:00.000Z",
    "lines": [
      "~ rover home from the landing site · the lander's log · the wreck's parts list",
      "> the last pages are the crew's · the first pages are older than the lander, and list a sealed seed vault among the cargo"
    ],
    "automatic": false,
    "running": false,
    "ends_at": null
  }
]

GET /api/v1/colonies/:designation/ambience

The colony's soundtrack state: the drone its planet's seed tunes and the level of each ambience layer the colony page plays under its cues. drone.flute says whether the player holds the bone flute. Each layer is a level from 0 to 1, apart from faltering, true while the colony is short of Energy, weather, the sound of the running timed event, such as dust_storm, or null, and pattern, the signal recorder's blips, each a [ratio, seconds] array, present only once that crew project is done. A missing layer reads as 0.

The response carries no settled_at, so its body and ETag stay the same between changes. Starting or cancelling something on the colony page also changes the levels, and no clock predicts that, so a client that asks again at next_change_at and at least every few minutes hears every change.

{
  "designation": "MS-0031-D",
  "name": "Ember Hollow",
  "next_change_at": "2026-10-21T14:42:00.000Z",
  "drone": {
    "root": 55.0,
    "cutoff": 453,
    "flute": false
  },
  "layers": {
    "machinery": 0.4,
    "faltering": false,
    "construction": 1,
    "research": 1,
    "weather": "dust_storm",
    "rover": 0,
    "barge": 0,
    "lander": 0,
    "telemetry": 0,
    "bloom": 0.0,
    "chimes": 0,
    "signal": 0
  }
}

DELETE /api/v1/access_token

Ends the token that makes the request and answers 204 with no body, so the token's next request answers 401. A client can end only its own token.

// ideas

A few things a token could drive.

  • A menu bar item, or a Waybar module on Omarchy, that shows your stocks and counts down to the next delivery.
  • A terminal that keeps an eye on your colonies with one command:
watch -n 60 'curl -s https://momentary.space/api/v1/colonies \
  -H "Authorization: Bearer mst_…" | jq ".[] | {designation, level, ready}"'
  • A home-screen widget with the colony's level and what is under way.
  • A desk display or an e-ink panel that redraws at next_change_at.
  • A notifier that tells you when a ready count rises above zero, so you know something can start.
  • A soundscape for another room, generated from the ambience.
  • A feed reader's view of the colony, with the log turned into RSS.