The instance endpoints are the core of the Universe REST API. They let you list running instances, create new ones from a configuration, and push state or heartbeat updates from an external process such as a Minecraft plugin. All responses use theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ohemilyy/universe/llms.txt
Use this file to discover all available pages before exploring further.
InstanceInfo shape defined in schemas.kt.
GET /api/instances
Returns an array of allInstanceInfo objects currently tracked by the Master node, across all wrapper nodes.
6-character alphanumeric instance identifier generated from a random UUID.
Name of the
Configuration used to create this instance (matches a file in ./configuration/).ID of the cluster node running the instance process.
IP address on which the instance is bound, taken from the configuration.
The port allocated to this instance from the configuration’s
availablePorts range.Current lifecycle state. One of
CREATING, ONLINE, OFFLINE, or STOPPED.Unix timestamp (milliseconds) of the last heartbeat received from the instance.
OS process ID of the running instance.
null if the process has not started or has exited.Maximum RAM allocated to the instance in megabytes.
0 means unlimited.Maximum CPU units allocated to the instance.
0 means unlimited.POST /api/instances
Creates a new instance from a named configuration. The Master selects an eligible wrapper node, dispatches aDeployInstanceTask via Hazelcast, and returns the new InstanceInfo immediately.
Request body
Name of an existing configuration file (without the
.json extension) from ./configuration/.| Status | Condition |
|---|---|
400 Bad Request | configurationName is missing or does not match any loaded configuration. |
503 Service Unavailable | No cluster node has sufficient resources for the configuration’s RAM/CPU requirements. |
PUT /api/instances//state
Updates thestate and optionally the lastHeartbeat of an existing instance. This endpoint is typically called by an external process (e.g., a Minecraft plugin) to report that the server is online, or to confirm a graceful shutdown.
Path parameter
The 6-character instance ID returned when the instance was created.
New lifecycle state. Must be one of:
CREATING, ONLINE, OFFLINE, STOPPED.Unix timestamp in milliseconds. If omitted, the server sets it to the current time.
InstanceInfo object. See GET /api/instances for the field reference.
Error responses
| Status | Condition |
|---|---|
400 Bad Request | state is missing or is not a valid InstanceState value. |
404 Not Found | No instance exists with the given id. |