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.
Request
POST /api/v1/sessions/{accountKey}/actions/characterClasses
Takes no arguments.
Response
`{ classes, rules }`.
| Field | Type | Meaning |
|---|---|---|
classes[].isOwned | boolean|null | Whether the account owns the class. Null when the server has not said — treat as unknown, not as false. |
classes[].shopId | string | The 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.