GET user/{userId}/achievements

Get a user's achievements.

Example

GET /api/v1/user/66a5db1f-2785-498d-9068-e24ddbba03f2/achievements HTTP/1.1
Accept: application/json
Authorization: Bearer ...
----------------------------------------
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
ETag: ...

[
  {
    "key": "test-01",
    "granted": 1559690124
  },
  {
    "key": "test-02",
    "granted": 1559696124
  }
]

Security

Authentication is required. Access is restricted to the user.

URL Parameters

NameDescriptionValue
userIdthe ID of the user, as a GUID with dashesstring

Query Parameters

NONE

Request Body

NONE

Response

Successful responses are code 200 with data in the response body. Error responses are standard.

Response Body

The list of achievements the user has earned, as an Array of type UserAchievement.

UserAchievement

NameDescriptionValue
keythe key of the achievementstring
grantedthe time this achievement was earned, as a Unix timestampnumber