class

The current character's class level, perks and skills.

Unlike `lobby`, this actively re-queries the server, so it reflects a perk change made elsewhere. Two round trips, so prefer `lobby` when a cached answer will do.

In Session & character.

Request

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

Takes no arguments.

Response

`{ classLevel, classEquip }`.

FieldTypeMeaning
classEquip[].kindstring`Perk` or `Skill`, decoded from the numeric type.
classEquip[].requiredLevelintegerThe class level that unlocks the slot.

Example response

{
  "classLevel": { "level": 20, "exp": 41200 },
  "classEquip": [
    { "index": 0, "requiredLevel": 1, "type": 1, "kind": "Perk", "name": "Combo Attack" },
    { "index": 1, "requiredLevel": 8, "type": 1, "kind": "Perk", "name": "Dual Wield" },
    { "index": 2, "requiredLevel": 4, "type": 2, "kind": "Skill", "name": "Sprint" },
    { "index": 3, "requiredLevel": 12, "type": 2, "kind": "Skill", "name": "Second Wind" }
  ]
}

Errors

CodeWhen
action_failedNo character is in the lobby.

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.