The Universe REST API runs on the Master node and provides programmatic access to instance management and command execution. It is built on Ktor and serves JSON over HTTP. All four endpoints are available as soon as the Master node starts.Documentation 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.
Base URL
apiPort is 7000. Both values come from config.json on the Master node.
config.json
Available endpoints
| Method | Path | Description |
|---|---|---|
GET | /api/instances | Return all known instances |
POST | /api/instances | Create a new instance from a configuration |
PUT | /api/instances/{id}/state | Update an instance’s state and heartbeat |
POST | /api/commands/execute | Execute a console command and return its output |
Authentication
Universe does not require authentication by default. The Ktor security plugin is configured in the codebase but no auth middleware is active out of the box. Restrict network access at the infrastructure level if you expose the API port publicly.
Content-Type
Every request that includes a body must setContent-Type: application/json. Every response is also JSON.
HTTP status codes
| Code | Meaning |
|---|---|
200 OK | Request succeeded. Response body contains the result. |
201 Created | Instance was created. Response body contains the new InstanceInfo. |
400 Bad Request | Missing or invalid request body field. Response body contains {"error": "..."}. |
404 Not Found | The referenced instance ID does not exist. |
503 Service Unavailable | No cluster node has sufficient resources to start the requested instance. |