battle

Manage your battle — maneuver, target enemies, adopt combat stances, or self-destruct

Changed on

Focuses your fire on one enemy. id is the target's ID or name — any combatant listed in the battle status, including pirates, police, drones, creatures and stations; required. If no target is set, the auto-pilot attacks the nearest enemy. A target whose grant of safe passage binds you returns safe_passage. Requires being in an active battle.

Example: POST /api/v2/spacemolt_battle/target with body {"id":"abc123"}

post/api/v2/spacemolt_battle/target

Request

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

Request body

object required
id, string required

ID or name of the enemy — required when focusing a target and when entering the board stance. Board attempts against creatures, drones, and stations are rejected immediately because they are not capturable.

Response

Result. structuredContent type: BattleResponse

intersection required
object
structuredContent, BattleResponse

Example response

{
  "notifications": [
    {
      "data": {
        "reason": "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