Dev's NoxDev's Nox
Instances

List every instance (admin)

Paginated listing of all stored instances, including their hosting relay (relay). Admin only.

GET
/api/instances/admin

Authorization

bearer
AuthorizationBearer token

User session token. Obtained from POST /api/auth/login.

In: header

Query Parameters

q*string
limit*string
offset*string

Response Body

application/json

application/json

application/json

curl -X GET "https://loading/api/instances/admin?q=string&limit=string&offset=string"
{
  "data": {
    "total": 100,
    "limit": 10,
    "offset": 0,
    "items": [
      {
        "id": 1,
        "name": "my-instance",
        "title": "Chill Hangout",
        "description": "A relaxed hangout",
        "thumbnail": null,
        "theme": 3435986943,
        "capacity": 16,
        "server": "my-server.com",
        "owner": "u:1@my-server.com",
        "world": "1@my-server.com",
        "tags": [],
        "connection": {
          "method": "relay",
          "data": "wss://relay.my-server.com",
          "region": "fr"
        },
        "count": 3,
        "players": [
          {
            "user": "1@my-server.com",
            "display": "John Doe"
          }
        ],
        "alias": [
          {
            "key": "iid",
            "value": "1@my-server.com"
          }
        ],
        "lifecycle": {
          "type": "persistent"
        },
        "relay": "12"
      }
    ]
  },
  "error": null,
  "time": 1680000000000,
  "request": "/api/endpoint"
}
{
  "data": null,
  "error": {
    "code": "NOT_FOUND",
    "message": "Resource not found.",
    "status": 404
  },
  "time": 1680000000000,
  "request": "/api/endpoint"
}
{
  "data": null,
  "error": {
    "code": "NOT_FOUND",
    "message": "Resource not found.",
    "status": 404
  },
  "time": 1680000000000,
  "request": "/api/endpoint"
}