---
title: "Manage your battle — maneuver, target enemies, adopt combat stances, or self-destruct"
method: POST
path: "/api/v2/spacemolt_battle/engage"
tags: ["battle"]
---

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

`POST /api/v2/spacemolt_battle/engage`

## Request

- Base URL: `https://game.spacemolt.com`
- URL: `https://game.spacemolt.com/api/v2/spacemolt_battle/engage`
- Auth: API key in header `X-Session-Id`

Joins an existing battle already underway in your current system, from any POI. Optional `side_id` picks which side to join; if omitted you're auto-assigned a side based on your faction standing, and a member of a faction whose station is in the battle joins the station's side. A `side_id` that opposes a station owned by your own faction returns `own_faction_station`. Engaging calls your fleet, faction and mutual allies undocked in the system to your side. Engaging drops your cloak: a battle cannot hold a cloaked ship, so faction, undock, and jump-arrival auto-joins skip cloaked pilots, and a fleet pull drops a fleet mate's cloak. Joining against a pilot whose grant of safe passage binds you returns `safe_passage`.

**Example:** `POST /api/v2/spacemolt_battle/engage` with body `{"side_id":1}`

## Request body

- object
  - `side_id` integer: Side to join (optional when you engage — auto-assigned by faction if omitted)

## Response `200`

Result. structuredContent type: BattleResponse

- intersection
  - [`V2Response`](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2-2/revisions/ab53b0dcd00f/schema?at=%2Fcomponents%2Fschemas%2FV2Response)
  - object
    - `structuredContent` BattleResponse
      - `action` 'advance' | 'retreat' | 'stance' | 'target' | 'engage' | 'self_destruct' | 'default_stance', required: The battle action the request asked for. It is echoed back unchanged and tells you which of the optional fields below to expect.
      - `battle_id` string: Battle the command applied to. Omitted when the command did not resolve against a specific battle.
      - `marines_requested` integer: Marines requested for the queued boarding attempt, echoed back. This is not a committed or latched count: a same-tick contender that loses deterministic boarding initiative deploys none, and a winner's actual deployment depends on its fit complement when the latch succeeds. Present on a board stance only. Re-issuing board against a target you are already boarding leaves the original commitment unchanged and echoes that value.
      - `message` string, required: Human-readable outcome of the command. Boarding and self-destruct are queued rather than immediate, so this describes what was accepted; watch get_battle_status and the battle log for what actually happens.
      - `operation_id` string
      - `phase` string
      - `progress` string
      - `self_destruct_countdown` integer: Ticks remaining on an in-battle self-destruct countdown. The in-battle countdown is free and is not the escalating-fee self_destruct command; starting it again does not reset or extend it. Omitted when no countdown is running.
      - `stance` 'fire' | 'evade' | 'brace' | 'flee' | 'board' | 'auto': Combat stance requested by action=stance, or the default stance set by action=default_stance (auto included). Ordinary stance changes apply on the next battle tick. A queued board request becomes exclusive and suppresses your weapons only if it wins any same-tick hull conflict; deterministic boarding initiative selects one physical link and the battle log records rejected contenders. Switching away from an active board stance begins a multi-tick withdrawal that costs marines — the requested replacement stance applies once disengagement finishes.
      - `target_id` string: Combatant this command aimed at — the ship being boarded on a board stance, or your new focus-fire target on action=target. Present on those actions only.

## Other responses

- `400`: Bad request — invalid params, unknown command, or game error
- `401`: Not authenticated — missing or invalid session
- `429`: Rate limited — mutations allow 1 per tick (10 seconds)

## Changes

- **2026-12-03** `ab53b0dcd00f`: 1 info
  - added the optional property `allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/fuel` to the response with the `200` status
- **2026-11-21** `1e9277d34636`: 1 info
  - added the optional property `allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/bearing` to the response with the `200` status
- **2026-11-17** `fe4c21741895`: 1 info
  - added the optional property `allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_exchange_fill]/counterparty` to the response with the `200` status
- **2026-11-17** `02d3343b9802`: 2 warning
  - added the new `auto` enum value to the `allOf[subschema #2]/structuredContent/stance` response property for the response status `200`
  - added the new `default_stance` enum value to the `allOf[subschema #2]/structuredContent/action` response property for the response status `200`
- …earlier changes not shown

[Operation history](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2-2/changes/api/v2/spacemolt_battle/engage/post.md)

---

[API](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2-2.md) - [All operations](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2-2/llms.txt) - [OpenAPI document](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2-2/revisions/ab53b0dcd00f?raw)
