Data Objects
OAuth2 Bearer token obtained from authentication endpoint
A single read-only SQL SELECT statement to run against the organization data.
SELECT id, name FROM devices ORDER BY id ASCOrganization to run the query for. If not provided, the organization associated with the authentication token is used.
101Maximum number of rows to return. 0 (the default) returns as many rows as the 100000 row cap allows.
0Example: 50Number of result rows to skip before the returned page starts.
0Example: 100Query executed successfully
Number of rows of the full result that precede the first returned row.
100Whether the query had further rows beyond the returned ones — the next page, or the rows the 100000 row cap cut off.
trueBad request
User is missing the QUERY_DATA_ENGINE permission
Data Objects feature is disabled
Too many requests
Internal server error
POST /api/v1/organization/data-engine/query HTTP/1.1
Host: blynk.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 90
{
"sql": "SELECT id, name FROM devices ORDER BY id ASC",
"orgId": 101,
"limit": 50,
"offset": 100
}{
"meta": [
{
"name": "id"
},
{
"name": "name"
}
],
"rows": [
[
101,
"Sensor A"
],
[
102,
"Sensor B"
]
],
"offset": 100,
"hasMore": true
}Last updated
Was this helpful?

