Users
User management and invitations
Retrieve information about the authenticated user. This endpoint is only available with user-scoped authentication.
OAuth2 Bearer token obtained from authentication endpoint
User profile details
User ID
101User name
John DoeUser email
user@example.comUser title
Senior EngineerUser nickname
JohnnyUser phone number
+11234567890Organization ID, that the user belongs to
101Organization name
Acme CorpUser timezone in the IANA Time Zone Database (TZDB) format.
Europe/KyivUser locale.
en_USUser status
Timestamp, indicating the time, when the user was modified last time (Unix epoch milliseconds)
1707244800000Timestamp, when the user has logged in last time (Unix epoch milliseconds)
1707244800000Timestamp, when the user has registered (Unix epoch milliseconds)
1707244800000Whether the user has enabled the developer mode
trueWhether the user has enabled dark mode
falseIDs of the tags assigned to the user. Omitted when the user has no tags.
[1,2]Forbidden - This endpoint requires user-scoped authentication
Too many requests
Internal server error
GET /api/v1/organization/user/profile HTTP/1.1
Host: blynk.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 101,
"name": "John Doe",
"email": "user@example.com",
"title": "Senior Engineer",
"nickName": "Johnny",
"phoneNumber": "+11234567890",
"role": {
"id": 1,
"name": "Admin",
"permissions": [
"ORG_VIEW",
"ORG_DEVICES_VIEW"
]
},
"orgId": 101,
"orgName": "Acme Corp",
"tz": "Europe/Kyiv",
"locale": "en_US",
"status": "Pending",
"lastModifiedTs": 1707244800000,
"lastLoggedAt": 1707244800000,
"registeredAt": 1707244800000,
"isDev": true,
"isDarkMode": false,
"assignedTagIds": [
1,
2
]
}Retrieve a paginated list of users in the organization, associated with the authentication token.
Required permissions, when user-scoped authentication is used: ORG_VIEW_USERS.
OAuth2 Bearer token obtained from authentication endpoint
Include users from sub-organizations
falsePage number (0-indexed)
0Page size (max 1000)
50List of users
1Bad request
Forbidden
Too many requests
Internal server error
GET /api/v1/organization/users HTTP/1.1
Host: blynk.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"content": [
{
"id": 101,
"name": "John Doe",
"email": "user@example.com",
"roleId": 1,
"orgId": 101,
"isDev": true,
"assignedTagIds": [
1,
2
]
}
],
"totalElements": 1
}Search for users by the provided query.
Required permissions, when user-scoped authentication is used: ORG_VIEW_USERS.
OAuth2 Bearer token obtained from authentication endpoint
Search query string
Field to sort by
Sort order
ASCPossible values: Page number (0-indexed)
0Page size (max 1000)
50Search results
Total amount of users, available to fetch.
1Bad request
Forbidden
Too many requests
Internal server error
GET /api/v1/organization/search/users?query=text HTTP/1.1
Host: blynk.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"content": [
{
"id": 101,
"name": "John Doe",
"email": "user@example.com",
"roleId": 1,
"orgId": 101,
"isDev": true,
"assignedTagIds": [
1,
2
]
}
],
"totalElements": 1
}Retrieve detailed information about a specific user.
Required permissions, when user-scoped authentication is used: ORG_VIEW_USERS.
OAuth2 Bearer token obtained from authentication endpoint
User ID
User details
User ID
101User name
John DoeUser email
user@example.comUser role ID
1Organization ID, that the user belongs to
101Whether the user has enabled the developer mode
trueIDs of the tags assigned to the user. Omitted when the user has no tags.
[1,2]User title
Senior EngineerUser nickname
JohnnyUser phone number
+11234567890User timezone in the IANA Time Zone Database (TZDB) format.
Europe/KyivUser locale.
en_USUser status
Timestamp, indicating the time, when the user was modified last time (Unix epoch milliseconds)
1707244800000Timestamp, when the user has logged in last time (Unix epoch milliseconds)
1707244800000Timestamp, when the user has registered (Unix epoch milliseconds)
1707244800000Bad request
Forbidden
User not found or access denied
Too many requests
Internal server error
GET /api/v1/organization/user?userId=1 HTTP/1.1
Host: blynk.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 101,
"name": "John Doe",
"email": "user@example.com",
"roleId": 1,
"orgId": 101,
"isDev": true,
"assignedTagIds": [
1,
2
],
"title": "Senior Engineer",
"nickName": "Johnny",
"phoneNumber": "+11234567890",
"tz": "Europe/Kyiv",
"locale": "en_US",
"status": "Pending",
"lastModifiedTs": 1707244800000,
"lastLoggedAt": 1707244800000,
"registeredAt": 1707244800000
}Create a personal organization and a new user in it.
If there is already an existing user with the provided email, API will return 200 OK response with the existing user details.
Required permissions, when user-scoped authentication is used: ORG_INVITE_USERS.
OAuth2 Bearer token obtained from authentication endpoint
User email
user@example.comUser password
mySecretPassword123User's full name. Can only contain letters, hyphens, spaces, dots and apostrophes.
John DoeUser's title or position. Can only contain letters, hyphens and spaces.
Sales ManagerUser's nickname. Can only contain letters, digits, hyphens and spaces.
johndUser's phone number
+1234567890Name of the personal organization to create. If not specified, the organization will be created with the default name. Can only contain letters, digits, spaces, dots, hyphens and apostrophes.
John's Personal OrgUser's time zone
America/New_YorkUser with the provided email already exists
User ID
101User name
John DoeUser email
user@example.comUser role ID
1Organization ID, that the user belongs to
101Whether the user has enabled the developer mode
trueIDs of the tags assigned to the user. Omitted when the user has no tags.
[1,2]User title
Senior EngineerUser nickname
JohnnyUser phone number
+11234567890User timezone in the IANA Time Zone Database (TZDB) format.
Europe/KyivUser locale.
en_USUser status
Timestamp, indicating the time, when the user was modified last time (Unix epoch milliseconds)
1707244800000Timestamp, when the user has logged in last time (Unix epoch milliseconds)
1707244800000Timestamp, when the user has registered (Unix epoch milliseconds)
1707244800000User created successfully
Bad request
Forbidden
Too many requests
Internal server error
POST /api/v1/organization/users/create HTTP/1.1
Host: blynk.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 354
{
"email": "user@example.com",
"password": "mySecretPassword123",
"name": "John Doe",
"title": "Sales Manager",
"nickName": "johnd",
"phoneNumber": "+1234567890",
"organizationName": "John's Personal Org",
"address": {
"fullAddress": "1234 Apple St, Apt 5B, New York, NY 10001, USA",
"country": "USA",
"city": "New York",
"state": "Texas",
"zip": "10001"
},
"tz": "America/New_York"
}{
"id": 101,
"name": "John Doe",
"email": "user@example.com",
"roleId": 1,
"orgId": 101,
"isDev": true,
"assignedTagIds": [
1,
2
],
"title": "Senior Engineer",
"nickName": "Johnny",
"phoneNumber": "+11234567890",
"tz": "Europe/Kyiv",
"locale": "en_US",
"status": "Pending",
"lastModifiedTs": 1707244800000,
"lastLoggedAt": 1707244800000,
"registeredAt": 1707244800000
}Create a new user account in the existing organization.
The specified roleId must be a valid role in the target organization.
Required permissions, when user-scoped authentication is used: ORG_INVITE_USERS.
OAuth2 Bearer token obtained from authentication endpoint
User email
user@example.comUser password
mySecretPassword123User's full name. Can only contain letters, hyphens, spaces, dots and apostrophes.
John DoeUser's title or position. Can only contain letters, hyphens and spaces.
Sales ManagerUser's nickname. Can only contain letters, digits, hyphens and spaces.
johndUser's phone number
+1234567890User's time zone
America/New_YorkOrganization ID to create user in.
101Role ID to assign to the user.
1User created successfully
User ID
101User name
John DoeUser email
user@example.comUser role ID
1Organization ID, that the user belongs to
101Whether the user has enabled the developer mode
trueIDs of the tags assigned to the user. Omitted when the user has no tags.
[1,2]User title
Senior EngineerUser nickname
JohnnyUser phone number
+11234567890User timezone in the IANA Time Zone Database (TZDB) format.
Europe/KyivUser locale.
en_USUser status
Timestamp, indicating the time, when the user was modified last time (Unix epoch milliseconds)
1707244800000Timestamp, when the user has logged in last time (Unix epoch milliseconds)
1707244800000Timestamp, when the user has registered (Unix epoch milliseconds)
1707244800000Bad request
Forbidden
Organization not found or access denied
Too many requests
Internal server error
POST /api/v1/organization/users/create-in-org HTTP/1.1
Host: blynk.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 336
{
"email": "user@example.com",
"password": "mySecretPassword123",
"name": "John Doe",
"title": "Sales Manager",
"nickName": "johnd",
"phoneNumber": "+1234567890",
"address": {
"fullAddress": "1234 Apple St, Apt 5B, New York, NY 10001, USA",
"country": "USA",
"city": "New York",
"state": "Texas",
"zip": "10001"
},
"tz": "America/New_York",
"orgId": 101,
"roleId": 1
}{
"id": 101,
"name": "John Doe",
"email": "user@example.com",
"roleId": 1,
"orgId": 101,
"isDev": true,
"assignedTagIds": [
1,
2
],
"title": "Senior Engineer",
"nickName": "Johnny",
"phoneNumber": "+11234567890",
"tz": "Europe/Kyiv",
"locale": "en_US",
"status": "Pending",
"lastModifiedTs": 1707244800000,
"lastLoggedAt": 1707244800000,
"registeredAt": 1707244800000
}Update the role of a user in the organization.
When user-scoped authentication is used, the following validations apply:
The authenticated user cannot modify their own role
The authenticated user cannot assign a role with higher permissions than their own
The authenticated user cannot change the role of a user with higher permissions than their own
Required permissions, when user-scoped authentication is used: ORG_VIEW_USERS, ORG_EDIT_USERS.
OAuth2 Bearer token obtained from authentication endpoint
User ID
Role ID to assign
User role updated successfully
User ID
101User name
John DoeUser email
user@example.comUser role ID
1Organization ID, that the user belongs to
101Whether the user has enabled the developer mode
trueIDs of the tags assigned to the user. Omitted when the user has no tags.
[1,2]User title
Senior EngineerUser nickname
JohnnyUser phone number
+11234567890User timezone in the IANA Time Zone Database (TZDB) format.
Europe/KyivUser locale.
en_USUser status
Timestamp, indicating the time, when the user was modified last time (Unix epoch milliseconds)
1707244800000Timestamp, when the user has logged in last time (Unix epoch milliseconds)
1707244800000Timestamp, when the user has registered (Unix epoch milliseconds)
1707244800000Bad request
Forbidden
User/role not found or access denied
Too many requests
Internal server error
PUT /api/v1/organization/users/role?userId=1&roleId=1 HTTP/1.1
Host: blynk.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 101,
"name": "John Doe",
"email": "user@example.com",
"roleId": 1,
"orgId": 101,
"isDev": true,
"assignedTagIds": [
1,
2
],
"title": "Senior Engineer",
"nickName": "Johnny",
"phoneNumber": "+11234567890",
"tz": "Europe/Kyiv",
"locale": "en_US",
"status": "Pending",
"lastModifiedTs": 1707244800000,
"lastLoggedAt": 1707244800000,
"registeredAt": 1707244800000
}Enable or disable the developer mode of a user in the organization.
Developer mode may only be enabled for users of the root organization. Enabling it for a user of any other organization is rejected with a 400. Disabling it is always allowed, so a user who kept developer mode after moving to such an organization can still be switched back.
When user-scoped authentication is used, the following validations apply:
The authenticated user must belong to (or be invited into) the organization of the user being updated
The authenticated user cannot change the developer mode of a user with higher permissions than their own
Required permissions, when user-scoped authentication is used: ORG_VIEW_USERS, ORG_EDIT_USERS, CHANGE_DEV_MODE.
OAuth2 Bearer token obtained from authentication endpoint
User ID
Whether the developer mode should be enabled for the user
User developer mode updated successfully
User ID
101User name
John DoeUser email
user@example.comUser role ID
1Organization ID, that the user belongs to
101Whether the user has enabled the developer mode
trueIDs of the tags assigned to the user. Omitted when the user has no tags.
[1,2]User title
Senior EngineerUser nickname
JohnnyUser phone number
+11234567890User timezone in the IANA Time Zone Database (TZDB) format.
Europe/KyivUser locale.
en_USUser status
Timestamp, indicating the time, when the user was modified last time (Unix epoch milliseconds)
1707244800000Timestamp, when the user has logged in last time (Unix epoch milliseconds)
1707244800000Timestamp, when the user has registered (Unix epoch milliseconds)
1707244800000Bad request
Forbidden
User not found or access denied
Too many requests
Internal server error
PUT /api/v1/organization/users/dev-mode?userId=1&isDev=true HTTP/1.1
Host: blynk.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 101,
"name": "John Doe",
"email": "user@example.com",
"roleId": 1,
"orgId": 101,
"isDev": true,
"assignedTagIds": [
1,
2
],
"title": "Senior Engineer",
"nickName": "Johnny",
"phoneNumber": "+11234567890",
"tz": "Europe/Kyiv",
"locale": "en_US",
"status": "Pending",
"lastModifiedTs": 1707244800000,
"lastLoggedAt": 1707244800000,
"registeredAt": 1707244800000
}Send an invitation to a user to join the organization.
Required permissions, when user-scoped authentication is used: ORG_INVITE_USERS.
OAuth2 Bearer token obtained from authentication endpoint
user@example.comUser's full name. Cannot contain slashes, backslashes, < or >.
John DoeRole ID to assign to the user upon accepting the invitation
1Organization ID. If not provided, the organization associated with the authentication token will be used.
101User's locale
en_USInvitation sent successfully
User ID
101User name
John DoeUser email
user@example.comUser role ID
1Organization ID, that the user belongs to
101Whether the user has enabled the developer mode
trueIDs of the tags assigned to the user. Omitted when the user has no tags.
[1,2]User title
Senior EngineerUser nickname
JohnnyUser phone number
+11234567890User timezone in the IANA Time Zone Database (TZDB) format.
Europe/KyivUser locale.
en_USUser status
Timestamp, indicating the time, when the user was modified last time (Unix epoch milliseconds)
1707244800000Timestamp, when the user has logged in last time (Unix epoch milliseconds)
1707244800000Timestamp, when the user has registered (Unix epoch milliseconds)
1707244800000Bad request
Forbidden
Organization not found or access denied
Too many requests
Internal server error
POST /api/v1/organization/users/invite HTTP/1.1
Host: blynk.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 86
{
"email": "user@example.com",
"name": "John Doe",
"roleId": 1,
"orgId": 101,
"locale": "en_US"
}{
"id": 101,
"name": "John Doe",
"email": "user@example.com",
"roleId": 1,
"orgId": 101,
"isDev": true,
"assignedTagIds": [
1,
2
],
"title": "Senior Engineer",
"nickName": "Johnny",
"phoneNumber": "+11234567890",
"tz": "Europe/Kyiv",
"locale": "en_US",
"status": "Pending",
"lastModifiedTs": 1707244800000,
"lastLoggedAt": 1707244800000,
"registeredAt": 1707244800000
}Create a new personal organization and send user invitation for registration.
User-scoped authentication is not allowed for this endpoint.
OAuth2 Bearer token obtained from authentication endpoint
User email
user@example.comUser's locale
en_USUser registered successfully
User ID
101User name
John DoeUser email
user@example.comUser role ID
1Organization ID, that the user belongs to
101Whether the user has enabled the developer mode
trueIDs of the tags assigned to the user. Omitted when the user has no tags.
[1,2]User title
Senior EngineerUser nickname
JohnnyUser phone number
+11234567890User timezone in the IANA Time Zone Database (TZDB) format.
Europe/KyivUser locale.
en_USUser status
Timestamp, indicating the time, when the user was modified last time (Unix epoch milliseconds)
1707244800000Timestamp, when the user has logged in last time (Unix epoch milliseconds)
1707244800000Timestamp, when the user has registered (Unix epoch milliseconds)
1707244800000Bad request
Forbidden
Too many requests
Internal server error
POST /api/v1/organization/users/register HTTP/1.1
Host: blynk.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"email": "user@example.com",
"locale": "en_US"
}{
"id": 101,
"name": "John Doe",
"email": "user@example.com",
"roleId": 1,
"orgId": 101,
"isDev": true,
"assignedTagIds": [
1,
2
],
"title": "Senior Engineer",
"nickName": "Johnny",
"phoneNumber": "+11234567890",
"tz": "Europe/Kyiv",
"locale": "en_US",
"status": "Pending",
"lastModifiedTs": 1707244800000,
"lastLoggedAt": 1707244800000,
"registeredAt": 1707244800000
}Transfer a user to a different organization.
The following constraints apply:
Users in
Pendingstatus cannot be transferredCannot transfer a user to the same organization they are already in
The destination organization must not exceed its user limit
Required permissions, when user-scoped authentication is used: ORG_VIEW_USERS, TRANSFER_USER.
OAuth2 Bearer token obtained from authentication endpoint
User ID
101Target organization ID
101Role ID to assign to the user in the target organization
1User transferred successfully
User ID
101User name
John DoeUser email
user@example.comUser role ID
1Organization ID, that the user belongs to
101Whether the user has enabled the developer mode
trueIDs of the tags assigned to the user. Omitted when the user has no tags.
[1,2]User title
Senior EngineerUser nickname
JohnnyUser phone number
+11234567890User timezone in the IANA Time Zone Database (TZDB) format.
Europe/KyivUser locale.
en_USUser status
Timestamp, indicating the time, when the user was modified last time (Unix epoch milliseconds)
1707244800000Timestamp, when the user has logged in last time (Unix epoch milliseconds)
1707244800000Timestamp, when the user has registered (Unix epoch milliseconds)
1707244800000Bad request
Forbidden or no access to user's/target organization
User or organization not found
Too many requests
Internal server error
POST /api/v1/organization/users/transfer HTTP/1.1
Host: blynk.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"userId": 101,
"targetOrgId": 101,
"roleId": 1
}{
"id": 101,
"name": "John Doe",
"email": "user@example.com",
"roleId": 1,
"orgId": 101,
"isDev": true,
"assignedTagIds": [
1,
2
],
"title": "Senior Engineer",
"nickName": "Johnny",
"phoneNumber": "+11234567890",
"tz": "Europe/Kyiv",
"locale": "en_US",
"status": "Pending",
"lastModifiedTs": 1707244800000,
"lastLoggedAt": 1707244800000,
"registeredAt": 1707244800000
}Send a push notification to a user's mobile devices.
This endpoint is available only when organization-scoped authentication is used.
OAuth2 Bearer token obtained from authentication endpoint
User ID
101Notification title
Device AlertNotification message body
Your device temperature is too high!URL of the image to display in the notification (optional)
https://example.com/alert.pngPush notification sent successfully
No content
Bad request
Forbidden
User not found or access denied
Too many requests
Internal server error
POST /api/v1/organization/users/send-push-notification HTTP/1.1
Host: blynk.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 126
{
"userId": 101,
"title": "Device Alert",
"body": "Your device temperature is too high!",
"imageUrl": "https://example.com/alert.png"
}No content
Register a Firebase Cloud Messaging (FCM) push token for a user's mobile device. This allows the user to receive push notifications on the registered device.
OAuth2 Bearer token obtained from authentication endpoint
User ID
101Unique device identifier
device-uid-12345FCM push token
fMI-EXAMPLE-TOKEN...Client platform type
ANDROIDPossible values: FCM token registered successfully
No content
Bad request
Forbidden
User not found or access denied
Too many requests
Internal server error
POST /api/v1/organization/users/fcm-token/register HTTP/1.1
Host: blynk.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 93
{
"userId": 101,
"uid": "device-uid-12345",
"token": "fMI-EXAMPLE-TOKEN...",
"clientType": "ANDROID"
}No content
Last updated
Was this helpful?

