enterDungeon

Start matchmaking, or rejoin a run already in progress.

Blocks until matchmaking lands, which can take a while — this is not a fire-and-forget call. It auto-detects a mid-game account (`state` reports `reconnectPending`) and rejoins rather than queueing afresh. The reply names a game server, which is where the run happens; this API does not play it for you.

In Dungeons.

Request

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

Parameters

NameTypeRequiredDescription
dungeonIdTag (dungeon_id_tag)stringnoOverrides the current selection.
regionintegernoOverrides the current region.
gameTypeintegernoNormal, high-roller and so on.
gearPoolIndexintegernoGear pool for the run.
isRandombooleannoLet the server pick the dungeon.

Example request

{ "dungeonIdTag": "Goblin_Caves", "gameType": 1 }

Response

`{ ok: true, result, server, session, log, live }`.

FieldTypeMeaning
serverstring`ip:port` of the assigned game server.
logstring[]What matchmaking did, step by step. Worth surfacing when it fails.
livebooleanTrue when this rejoined a run already in progress rather than starting one.

Example response

{
  "ok": true,
  "result": "matched",
  "server": "203.0.113.40:7777",
  "session": "8f2c41e0-1c9a-4c2e-8b5a-9f1d2e3a4b5c",
  "log": ["region=1 set", "dungeon=Goblin_Caves gameType=1", "matched: 203.0.113.40:7777"],
  "live": false
}

Errors

CodeWhen
action_failedThe account is mid-game (abandon first), no character is in the lobby, or matchmaking produced no assignment — often a region that was never set.
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.