v1

latestOpenAPI 3.0.02026-07-17715665.1 KB
Activate

Activate a user account in order to be able to give praise and receive rewards. Activation a user account creates a new User object or adds user account to User if it already exists.

post/api/activate

Request body

identityEthAddressstring required
accountIdstring required
signaturestring required

Example request

{
  "identityEthAddress": "0xAAB27b150451726EC7738aa1d0A94505c8729bd1",
  "accountId": "darth#3455",
  "signature": "0xdb4bb91357b23083ec2a36dc1fe23e59b71434fc020542da7e983df206ed06611e275eb30e239508f9758c0608dca6cef5619c41b50a48f22bdb36a8dabc2d201c"
}

Response

The created (or updated) user.

_idstring required
identityEthAddressstring required
rewardsEthAddressstring required
usernamestring required
rolesstring[] required
createdAtstring date-time required
updatedAtstring date-time required

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"
    }
  ]
}
All 71 operations