GET
https://api.slyk.io/users
The name
filter performs a SQL
query using the like
operator.
{
"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
},
{
"approved": false,
"blocked": false,
"createdAt": "2019-07-17T11:39:26.732Z",
"customData": {},
"email": "corge@garply.com",
"id": "8d31a884-7fa3-469a-a7cb-12f95895c487",
"locale": "en",
"name": "Corge Garply",
"phone": "+123456789",
"primaryWalletId": "f90b0f21-e0a8-43ff-81c2-da42a5a6ca6e",
"referralCode": "R87654321",
"referralUserId": "dcdbf851-f4db-468b-9235-37ef6e6306a1",
"roles": ["user"],
"updatedAt": "2019-07-17T11:39:26.732Z",
"verified": false
}
],
"total": 2
}
GET
https://api.slyk.io/users/:id
PATCH
https://api.slyk.io/users/:id
{
"name": "Waldo G. Fred"
}
{
"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 G. Fred",
"phone": "+351912345678",
"primaryWalletId": "715a25e5-94d3-4142-afa9-b4b09193f618",
"referralCode": "R12345678",
"referralUserId": null,
"roles": ["user"],
"updatedAt": "2019-07-17T11:39:26.732Z",
"verified": true
}
}
POST
https://api.slyk.io/users
Creates an user.
{
"email": "foo@bar.com",
"code": "R87654321",
"locale": "en",
"name": "Sr. Foobar",
"password": "Foobar123"
}
{
"data": {
"approved": false,
"blocked": false,
"createdAt": "2019-07-17T11:39:26.732Z",
"customData": {},
"email": "foo@bar.com",
"id": "689352d2-b899-4fa3-9e64-2be481545558",
"locale": "en",
"name": "Sr. Foobar",
"phone": null,
"primaryWalletId": "4b4a25b3-407b-4a08-8283-6972b0f9cf44v",
"referralCode": "R13243546",
"referralUserId": "8d31a884-7fa3-469a-a7cb-12f95895c487",
"roles": ["user"],
"updatedAt": "2019-07-17T11:39:26.732Z",
"verified": false
}
}
POST
https://api.slyk.io/users/:id/approve
POST
https://api.slyk.io/users/:id/block
POST /users/:id/change-password
POST
https://api.slyk.io/users/:id/change-password
{
"password": "Foobar321"
}
POST
http://api.slyk.io/users/:id/unlock