battle

View the aggregate result of a battle by ID

Changed on

Returns total damage, ships destroyed, ships captured intact with public capture records, outcome, winning side, and has_station (whether a station fought in the battle) for any battle (active or completed), yours or not — the same summary spectators see on the website. Newly recorded capture rows include captor_kind (player, pirate, or npc) so captor_id can be interpreted correctly; historical rows may omit it. Works as a query (no tick cost).

Example: POST /api/v2/spacemolt_battle/summary with body {"id":"battle_id"}

post/api/v2/spacemolt_battle/summary

Request

  • Base URL
    https://game.spacemolt.com
  • Auth
    API key in header X-Session-Id

Request body

object required
id, string required

Battle ID to summarize (active or completed, yours or not)

Response

Result. structuredContent type: BattleSummaryResponse

intersection required
object
structuredContent, BattleSummaryResponse

Example response

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

Changes

    • info

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

    • info

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