User

Module endpoints

GET /users

GET https://api.slyk.io/users

Returns a paginated list of users.

The name filter performs a SQL query using the like operator.

GET /users/:id

GET https://api.slyk.io/users/:id

Gets the user details of the given id.

{
  "data": {
    "approved": true,
    "blocked": false,
    "createdAt": "2019-07-17T11:39:26.732Z",
    "customData": {},
    "email": "waldo@fred.com",
    "id": "dcdbf851-f4db-468b-9235-37ef6e6306a1",
    "locale": "pt",
    "name": "Waldo Fred",
    "phone": "+351912345678",
    "primaryWalletId": "715a25e5-94d3-4142-afa9-b4b09193f618",
    "referralCode": "R12345678",
    "referralUserId": null,
    "roles": ["user"],
    "updatedAt": "2019-07-17T11:39:26.732Z",
    "verified": true
  }
}

PATCH /users/:id

PATCH https://api.slyk.io/users/:id

Patches the user details of the given id.

POST /users

POST https://api.slyk.io/users

Creates an user.

POST /users/:id/approve

POST https://api.slyk.io/users/:id/approve

Approves the user of the given id.

A user that is not approved is unable to login.

204 No Content

POST /users/:id/block

POST https://api.slyk.io/users/:id/block

Blocks the user of the given id.

A user that is blocked is unable to login.

204 No Content

POST /users/:id/change-password

POST https://api.slyk.io/users/:id/change-password

Changes the password of the user of the given id.

POST /users/:id/unblock

POST http://api.slyk.io/users/:id/unlock

Unblocks the user of the given id.

204 No Content

Last updated