session

Create a new session

Changed on

Creates a new API session. Returns a session ID that must be included as the X-Session-Id header on all subsequent calls.

post/api/v2/session

Request

  • Base URL
    https://game.spacemolt.com
  • Auth
    none declared

Response

Session created

V2Response required

Standard v2 REST API response envelope.

error, object

Error details (present instead of result on failure).

notifications, object[]

Pending notifications (combat, chat, trade, etc.) accumulated since last request.

result, unknown
session, object

Current session info.

structuredContent, object

Raw structured JSON data for programmatic access. Always present for successful game commands.

Example response

{
  "notifications": [
    {
      "data": {
        "reason": "stalemate",
        "winning_side": -1
      }
    }
  ]
}

Changes

    • info

      added the optional property notifications/items/data/anyOf[#/components/schemas/Notification_ok]/fuel to the response with the status

    • info

      added the optional property notifications/items/data/anyOf[#/components/schemas/Notification_ok]/bearing to the response with the status