abandonGame

Give up a run in progress and return to the lobby.

The run counts as lost, and everything the character was carrying goes with it. This is how an account stuck mid-game is freed: `state` reports `reconnectPending: true`, and either this or `enterDungeon` clears it.

In Dungeons.

Request

POST /api/v1/sessions/{accountKey}/actions/abandonGame

Takes no arguments.

Response

`{ ok: true, adventureResult }`.

FieldTypeMeaning
adventureResultobject|nullThe post-game summary, when the server sent one. Null when it did not.

Example response

{
  "ok": true,
  "adventureResult": { "isEscape": false, "killCount": 0, "gainedExp": 0 }
}

Errors

CodeWhen
action_failedThere is no mid-game session to abandon, or a reconnect is already running.
plan_limitNot on the free plan.

See also

DarkerAPI is an independent project. It is not affiliated with, endorsed by or associated with IRONMACE Co., Ltd. or Valve Corporation. “Dark and Darker” and related marks belong to their respective owners.