API:2/account/masteries

From Guild Wars 2 Wiki
< API:2‎ | account
Jump to: navigation, search

/v2/account/masteries

HTTP method
GET
Format
json
API version
version 2
Release date
2016-09-29
Scope
progression
Optional
none

This resource returns information about masteries that are unlocked for an account. A tallied up total of the account's mastery points can be found at /v2/account/mastery/points.

Parameters

  • access_token (optional) – Can be used to specify an API key for the request if it is not given in the request header.

Response

This request will return an array of objects with the following properties:

  • id (integer) – The id of the mastery resolvable against /v2/masteries.
  • level (integer) – Indicates the level at which the mastery is on the account. Is a 0-indexed reference to the /v2/masteries.levels array indicating the maximum level unlocked by the user. If omitted, this mastery hasn't been started.

Example

Request

https://api.guildwars2.com/v2/account/masteries
Authorization: Bearer <API key>

Response

[
  {
    "id": 1,
    "level": 4
  },
  {
    "id": 2,
    "level": 5
  },
  {
    "id": 12,
    "level": 3
  },
  {
    "id": 13,
    "level": 2
  }
]