characterClasses

The classes this account can create a character with.

The same two blocks `chars` returns, without reading the roster — useful for a create form that already knows the roster.

In Session & character.

Request

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

Takes no arguments.

Response

`{ classes, rules }`.

FieldTypeMeaning
classes[].isOwnedboolean|nullWhether the account owns the class. Null when the server has not said — treat as unknown, not as false.
classes[].shopIdstringThe store entry that unlocks it; empty when already owned.

Example response

{
  "classes": [
    { "classId": "DesignDataPlayerCharacter:Id_PlayerCharacter_Fighter",
      "name": "Fighter", "isOwned": true, "shopId": "" },
    { "classId": "DesignDataPlayerCharacter:Id_PlayerCharacter_Rogue",
      "name": "Rogue", "isOwned": true, "shopId": "" },
    { "classId": "DesignDataPlayerCharacter:Id_PlayerCharacter_Wizard",
      "name": "Wizard", "isOwned": false, "shopId": "Id_Shop_Wizard" }
  ],
  "rules": { "min": 2, "max": 20, "allowed": "letters and digits", "pattern": "^[A-Za-z0-9]+$" }
}

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.