Users (User)

Get a user by username

get/v1/users/{username}

Path parameters

usernamestring required

Response

User retrieved successfully

pointsinteger

Points associated with the user.

Example response

{
  "user": {
    "id": "5ebac534954b54139806c112",
    "email": "fake@example.com",
    "name": "fake name",
    "role": "user"
  }
}

Changes

Changed in 2 of the 2 revisions of this API.134

  • e825144e9ffd13See the full diff
    • the path request parameter username became required

      request-parameter-became-required

    • added the optional property assets to the response with the 200 status

      response-optional-property-added

    • added the optional property points to the response with the 200 status

      response-optional-property-added

    • added the optional property user to the response with the 200 status

      response-optional-property-added

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • removed the optional property assets from the response with the 200 status

      response-optional-property-removed

    • removed the optional property points from the response with the 200 status

      response-optional-property-removed

    • removed the optional property user from the response with the 200 status

      response-optional-property-removed

    • the path request parameter username became optional

      request-parameter-became-optional

    This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog