Organizations
Organization management endpoints
Retrieve information about the organization associated with the authentication token
OAuth2 Bearer token obtained from authentication endpoint
Organization details
Organization unique identifier
1Organization name
Acme CorpOrganization description
A test organizationParent organization ID (for hierarchical structure)
1A timezone, associated with the organization
Europe/KyivUnit system used in the organization.
METRICPossible values: Phone number, associated with the organization.
+11234567890Timestamp, indicating the time, when the organization was modified last time (Unix epoch milliseconds)
1707244800000Forbidden
Too many requests
Internal server error
GET /api/v1/organization/profile HTTP/1.1
Host: blynk.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 1,
"name": "Acme Corp",
"description": "A test organization",
"parentOrganizationId": 1,
"tz": "Europe/Kyiv",
"unitSystem": "METRIC",
"phoneNumber": "+11234567890",
"address": {
"fullAddress": "1234 Apple St, Apt 5B, New York, NY 10001, USA",
"country": "USA",
"city": "New York",
"state": "Texas",
"zip": "10001"
},
"lastModifiedTs": 1707244800000
}Search for organizations by the provided query.
Required permissions, when user-scoped authentication is used: ORG_VIEW.
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 organizations, available to fetch.
1Bad request
Forbidden
Too many requests
Internal server error
GET /api/v1/organization/search?query=text HTTP/1.1
Host: blynk.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"content": [
{
"id": 1,
"name": "Acme Corp",
"description": "A test organization",
"parentOrganizationId": 1,
"tz": "Europe/Kyiv",
"unitSystem": "METRIC",
"phoneNumber": "+11234567890",
"address": {
"fullAddress": "1234 Apple St, Apt 5B, New York, NY 10001, USA",
"country": "USA",
"city": "New York",
"state": "Texas",
"zip": "10001"
},
"lastModifiedTs": 1707244800000
}
],
"totalElements": 1
}Retrieve information about a specific organization.
Required permissions, when user-scoped authentication is used: ORG_VIEW.
OAuth2 Bearer token obtained from authentication endpoint
Organization ID
Organization details
Organization unique identifier
1Organization name
Acme CorpOrganization description
A test organizationParent organization ID (for hierarchical structure)
1A timezone, associated with the organization
Europe/KyivUnit system used in the organization.
METRICPossible values: Phone number, associated with the organization.
+11234567890Timestamp, indicating the time, when the organization was modified last time (Unix epoch milliseconds)
1707244800000Unauthorized - Invalid or missing token
Organization not found or access denied
Too many requests - Rate limit exceeded
Internal server error
GET /api/v1/organization?orgId=1 HTTP/1.1
Host: blynk.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 1,
"name": "Acme Corp",
"description": "A test organization",
"parentOrganizationId": 1,
"tz": "Europe/Kyiv",
"unitSystem": "METRIC",
"phoneNumber": "+11234567890",
"address": {
"fullAddress": "1234 Apple St, Apt 5B, New York, NY 10001, USA",
"country": "USA",
"city": "New York",
"state": "Texas",
"zip": "10001"
},
"lastModifiedTs": 1707244800000
}Delete an organization. Users and other resources in the organization are being deleted automatically.
The following organizations cannot be deleted:
The organization used for authentication (your own organization)
The root (super) organization
The Clients group organization
The Partners group organization
Organizations that have sub-organizations
Organizations that have devices
Required permissions, when user-scoped authentication is used: ORG_DELETE.
OAuth2 Bearer token obtained from authentication endpoint
Organization ID
Organization deleted successfully
No content
Some of the validations have not been passed.
Unauthorized - Invalid or missing token
Organization not found or access denied
Too many requests
Internal server error
DELETE /api/v1/organization?orgId=1 HTTP/1.1
Host: blynk.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Create a new organization.
Required permissions, when user-scoped authentication is used: ORG_CREATE.
OAuth2 Bearer token obtained from authentication endpoint
Organization name. Only letters, digits, spaces, dots, hyphens, and apostrophes are allowed.
Acme CorpOrganization description. Cannot contain slashes, backslashes, < or >.
A test organizationOrganization timezone in the IANA Time Zone Database (TZDB) format.
Europe/KyivParent organization ID (optional). If none is specified, the organization is created as a child of the organization associated with the authentication token.
1Organization phone number.
+11234567890Unit system used in the organization.
METRICPossible values: Organization created successfully
Organization unique identifier
1Organization name
Acme CorpOrganization description
A test organizationParent organization ID (for hierarchical structure)
1A timezone, associated with the organization
Europe/KyivUnit system used in the organization.
METRICPossible values: Phone number, associated with the organization.
+11234567890Timestamp, indicating the time, when the organization was modified last time (Unix epoch milliseconds)
1707244800000Bad request - Invalid input
Forbidden
Too many requests
Internal server error
POST /api/v1/organization/create HTTP/1.1
Host: blynk.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 139
{
"name": "Acme Corp",
"description": "A test organization",
"tz": "Europe/Kyiv",
"parentId": 1,
"phoneNumber": "+11234567890",
"unitSystem": "METRIC"
}{
"id": 1,
"name": "Acme Corp",
"description": "A test organization",
"parentOrganizationId": 1,
"tz": "Europe/Kyiv",
"unitSystem": "METRIC",
"phoneNumber": "+11234567890",
"address": {
"fullAddress": "1234 Apple St, Apt 5B, New York, NY 10001, USA",
"country": "USA",
"city": "New York",
"state": "Texas",
"zip": "10001"
},
"lastModifiedTs": 1707244800000
}Update the name of an existing organization.
Required permissions, when user-scoped authentication is used: ORG_EDIT.
OAuth2 Bearer token obtained from authentication endpoint
Organization ID (optional). If none is specified, the organization associated with the authentication token is being edited.
1New organization name. Only letters, digits, spaces, dots, hyphens, and apostrophes are allowed.
New Organization NameOrganization updated successfully
Organization unique identifier
1Organization name
Acme CorpOrganization description
A test organizationParent organization ID (for hierarchical structure)
1A timezone, associated with the organization
Europe/KyivUnit system used in the organization.
METRICPossible values: Phone number, associated with the organization.
+11234567890Timestamp, indicating the time, when the organization was modified last time (Unix epoch milliseconds)
1707244800000Bad request
Forbidden
Organization not found or access denied
Too many requests
Internal server error
PUT /api/v1/organization/edit/name HTTP/1.1
Host: blynk.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 42
{
"orgId": 1,
"name": "New Organization Name"
}{
"id": 1,
"name": "Acme Corp",
"description": "A test organization",
"parentOrganizationId": 1,
"tz": "Europe/Kyiv",
"unitSystem": "METRIC",
"phoneNumber": "+11234567890",
"address": {
"fullAddress": "1234 Apple St, Apt 5B, New York, NY 10001, USA",
"country": "USA",
"city": "New York",
"state": "Texas",
"zip": "10001"
},
"lastModifiedTs": 1707244800000
}Retrieve a paginated list of direct sub-organizations (children) of a specified organization.
If orgId is not specified, returns sub-organizations of the organization associated with the authentication token.
Required permissions, when user-scoped authentication is used: ORG_VIEW.
OAuth2 Bearer token obtained from authentication endpoint
ID of the parent organization. If not specified, uses the organization from the authentication token.
Page number
0Page size (max 1000)
50List of sub-organizations
5Bad request
Forbidden
Too many requests
Internal server error
GET /api/v1/organization/sub-organizations HTTP/1.1
Host: blynk.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"content": [
{
"id": 1,
"name": "Acme Corp",
"description": "A test organization",
"parentOrganizationId": 1,
"tz": "Europe/Kyiv",
"unitSystem": "METRIC",
"phoneNumber": "+11234567890",
"address": {
"fullAddress": "1234 Apple St, Apt 5B, New York, NY 10001, USA",
"country": "USA",
"city": "New York",
"state": "Texas",
"zip": "10001"
},
"lastModifiedTs": 1707244800000
}
],
"totalElements": 5
}Last updated
Was this helpful?

