Search Users

Search Organization Members (Users)

GET https://{server_address}/api/v1/organization/search/users

sortBy query parameter could accept the following values: User Id, Name, Email, Status, Role, Organization Name, Devices Count (stands for count of devices, that user own), Country, Registered At, Phone Number.

Query Parameters

NameTypeDescription

query*

John

Search query. Should be up to 255 symbols.

page

0

Page number starting from 0. First page by default.

size

20

Page size. Should be from 1 to 100. 20 by default.

sortBy

User Id

Field to sort result by.

sortOrder

ASC

Sorting order. Could be ASC (ascending sort order) or DESC (descending sort order). ASC by default.

Headers

NameTypeDescription

Authorization*

Bearer {access_token}

{
   "content": [
      {
         "id": 1080,
         "name": "John Doe",
         "email": "john@example.com",
         "roleId": 3,
         "orgId": 704,
         "isDev": false
      }
   ],
   "totalElements": 1
}

Request examples:

# curl command example:
$ curl -H "Authorization: Bearer {accessToken}" https://fra1.blynk.cloud/api/v1/organization/search/users?query=john
$ curl -H "Authorization: Bearer eIdWHQqRfFmvP5LDDh-IGxPUzi7I27HthzCPAVmS" https://fra1.blynk.cloud/api/v1/organization/search/users?query=john

Last updated