Activated a handful of new endpoints — mostly authenticated and require the “inventories” permission — that provide access to an account’s various inventories:
- /v2/materials - unauthenticated endpoint which provides localized names and contents for each of the material storage tabs. (CDI)
- /v2/account/bank - the contents of the account’s bank. (CDI)
- /v2/account/materials - the contents of the account’s material storage. (CDI)
- /v2/characters - will now contain equipment and inventory fields when the token has the “inventories” scope. (CDI)
- /v2/characters/:id/inventory - just the inventory data. (CDI)
- /v2/characters/:id/equipment - just the equipment. (CDI)
Note that, as with all authenticated endpoints you can pass the API key either via an “Authorization: Bearer $key” header, or with the access_token parameter. Details about each of the endpoints can be found in the CDI pull requests on Github (linked for each one).
Finally, there’s a bug in the API enumeration that incorrectly and unconditionally lists the characters inventory/equipment endpoints as disabled. We’ll look to fix that at some point in the future so it shows the status of those endpoints properly.
Questions/comments? Happy developing