Users

get/api/users/{id}

Path parameters

idstring required

Response

A single user

_idstring required
identityEthAddressstring required
rewardsEthAddressstring required
usernamestring required
rolesstring[] required
createdAtstring date-time required
updatedAtstring date-time required
receivedTotalScorenumber
receivedTotalCountnumber
givenTotalScorenumber
givenTotalCountnumber

Example response

{
  "_id": "5f9f1b9b9b9b9b9b9b9b9b9b",
  "identityEthAddress": "0xAAB27b150451726EC7738aa1d0A94505c8729bd1",
  "rewardsEthAddress": "0xAAB27b150451726EC7738aa1d0A94505c8729bd1",
  "username": "darth",
  "accounts": [
    {
      "_id": "63b428f7d9ca4f6ff5370d05",
      "user": {
        "_id": "5f9f1b9b9b9b9b9b9b9b9b9b",
        "identityEthAddress": "0xAAB27b150451726EC7738aa1d0A94505c8729bd1",
        "rewardsEthAddress": "0xAAB27b150451726EC7738aa1d0A94505c8729bd1",
        "username": "darth"
      },
      "accountId": "098098098098098",
      "name": "darth#6755",
      "avatarId": "098098098087097",
      "platform": "DISCORD"
    }
  ]
}

Changes

Changed in 16 of the 50 revisions of this API.26527

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation

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

    • the accounts/items/name response property's minLength was decreased from 4 to 2 for the response status 200

      response-property-min-length-decreased

    • the accounts/items/name response property's maxLength was increased from 20 to 32 for the response status 200

      response-property-max-length-increased

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation

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

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation

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

    • the accounts/items/user response's property type/format changed from string/ to object/ for status 200

      response-property-type-changed

    • added the required property accounts/items/user/_id to the response with the 200 status

      response-required-property-added

    • added the required property accounts/items/user/createdAt to the response with the 200 status

      response-required-property-added

    • added the required property accounts/items/user/identityEthAddress to the response with the 200 status

      response-required-property-added

    • added the required property accounts/items/user/rewardsEthAddress to the response with the 200 status

      response-required-property-added

    • added the required property accounts/items/user/roles to the response with the 200 status

      response-required-property-added

    • added the required property accounts/items/user/updatedAt to the response with the 200 status

      response-required-property-added

    • added the required property accounts/items/user/username to the response with the 200 status

      response-required-property-added

    • the accounts/items/ response's property type/format changed from array/ to object/ for status 200

      response-property-type-changed

    • added the optional property accounts/items/user to the response with the 200 status

      response-optional-property-added

    • added the required property accounts/items/_id to the response with the 200 status

      response-required-property-added

    • added the required property accounts/items/accountId to the response with the 200 status

      response-required-property-added

    • added the required property accounts/items/avatarId to the response with the 200 status

      response-required-property-added

    • added the required property accounts/items/createdAt to the response with the 200 status

      response-required-property-added

    • added the required property accounts/items/name to the response with the 200 status

      response-required-property-added

    • added the required property accounts/items/platform to the response with the 200 status

      response-required-property-added

    • added the required property accounts/items/updatedAt to the response with the 200 status

      response-required-property-added