https:// api.losant.com/applications/APPLICATION_ID /devices/DEVICE_ID
Below are the various requests that can be performed against the
Device resource, as well as the expected
parameters and the potential responses.
Attach to a real time stream of command messages to this device using Server Sent Events (SSE)
GET https:// api.losant.com/applications/APPLICATION_ID /devices/DEVICE_ID /commandStream
A valid API access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Application.read, all.Device, all.Device.read, all.Organization, all.Organization.read, all.User, all.User.read, device.*, or device.commandStream.
Path Component Description Example APPLICATION_ID ID associated with the application 575ec8687ae143cd83dc4a97 DEVICE_ID ID associated with the device 575ecf887ae143cd83dc4aa2 
Name Required Description Default Example keepAliveInterval N Number of seconds between keepalive messages 2 keepAliveInterval=2
Name Required Description Default Authorization Y The token for authenticating the request, prepended with Bearer 
curl   -H   'Content-Type: application/json'   \      -H   'Accept: application/json'   \      -H   'Authorization: Bearer YOUR_API_ACCESS_TOKEN'   \      -X  GET  \     https://api.losant.com/applications/APPLICATION_ID/devices/DEVICE_ID/commandStream  
SSE stream of new command messages for this device
SSE Event Name Type Description deviceCommand Device Command An SSE event representing a single device command 
Code Type Description 400 Error Error if malformed request 404 Error Error if device was not found 
Deletes a device
DELETE https:// api.losant.com/applications/APPLICATION_ID /devices/DEVICE_ID
A valid API access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Organization, all.User, device.*, or device.delete.
Path Component Description Example APPLICATION_ID ID associated with the application 575ec8687ae143cd83dc4a97 DEVICE_ID ID associated with the device 575ecf887ae143cd83dc4aa2 
Name Required Description Default Authorization Y The token for authenticating the request, prepended with Bearer 
curl   -H   'Content-Type: application/json'   \      -H   'Accept: application/json'   \      -H   'Authorization: Bearer YOUR_API_ACCESS_TOKEN'   \      -X  DELETE  \     https://api.losant.com/applications/APPLICATION_ID/devices/DEVICE_ID  
Code Type Description 200 Success If device was successfully deleted 
Code Type Description 400 Error Error if malformed request 404 Error Error if device was not found 
Creates a device data export. Defaults to all data.
POST https:// api.losant.com/applications/APPLICATION_ID /devices/DEVICE_ID /export
A valid API access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, device.*, or device.export.
Path Component Description Example APPLICATION_ID ID associated with the application 575ec8687ae143cd83dc4a97 DEVICE_ID ID associated with the device 575ecf887ae143cd83dc4aa2 
Name Required Description Default Example start N Start time of export (ms since epoch - 0 means now, negative is relative to now) 1 start=1465790400000end N End time of export (ms since epoch - 0 means now, negative is relative to now) 0 end=1465790400000email N Email address to send export to. Defaults to current user's email. email=email@example.comcallbackUrl N Callback URL to call with export result callbackUrl=https://example.com/cburlincludeBlobData N If set will export any blob attributes in base64 form, otherwise they will be downloadable links which will expire. includeBlobData=true
Name Required Description Default Authorization Y The token for authenticating the request, prepended with Bearer 
Request Body  
The body of the request should be serialized JSON that validates against
the Device Data Export  schema. For example, the following would be a
valid body for this request:
{    "email" :   "export@example.com" ,    "attributes" :   [      "voltage"    ] ,    "end" :   0 ,    "options" :   {      "includeDate" :   false ,      "includeID" :   true    } }  
curl   -H   'Content-Type: application/json'   \      -H   'Accept: application/json'   \      -H   'Authorization: Bearer YOUR_API_ACCESS_TOKEN'   \      -X  POST  \     https://api.losant.com/applications/APPLICATION_ID/devices/DEVICE_ID/export  
Code Type Description 400 Error Error if malformed request 404 Error Error if device was not found 
Retrieves information on a device
GET https:// api.losant.com/applications/APPLICATION_ID /devices/DEVICE_ID
A valid API access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Application.read, all.Device, all.Device.read, all.Organization, all.Organization.read, all.User, all.User.read, device.*, or device.get.
Path Component Description Example APPLICATION_ID ID associated with the application 575ec8687ae143cd83dc4a97 DEVICE_ID ID associated with the device 575ecf887ae143cd83dc4aa2 
Name Required Description Default Example excludeConnectionInfo N If set, do not return connection info excludeConnectionInfo=truetagsAsObject N Return tags as an object map instead of an array tagsAsObject=trueattributesAsObject N Return attributes as an object map instead of an array attributesAsObject=false
Name Required Description Default Authorization Y The token for authenticating the request, prepended with Bearer 
curl   -H   'Content-Type: application/json'   \      -H   'Accept: application/json'   \      -H   'Authorization: Bearer YOUR_API_ACCESS_TOKEN'   \      -X  GET  \     https://api.losant.com/applications/APPLICATION_ID/devices/DEVICE_ID  
Code Type Description 200 Device Device information 
Code Type Description 400 Error Error if malformed request 404 Error Error if device was not found 
Retrieve the last known commands(s) sent to the device
GET https:// api.losant.com/applications/APPLICATION_ID /devices/DEVICE_ID /command
A valid API access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Application.read, all.Device, all.Device.read, all.Organization, all.Organization.read, all.User, all.User.read, device.*, or device.getCommand.
Path Component Description Example APPLICATION_ID ID associated with the application 575ec8687ae143cd83dc4a97 DEVICE_ID ID associated with the device 575ecf887ae143cd83dc4aa2 
Name Required Description Default Example limit N Maximum number of command entries to return 1 limit=10since N (deprecated) Look for command entries since this time (ms since epoch) since=1465790400000sortDirection N Direction to sort the command entries (by time). Accepted values are: asc, desc desc sortDirection=descduration N Duration of time range to query in milliseconds duration=86400000start N Start of time range to query in milliseconds since epoch start=1465790400000end N End of time range to query in milliseconds since epoch end=0
Name Required Description Default Authorization Y The token for authenticating the request, prepended with Bearer 
curl   -H   'Content-Type: application/json'   \      -H   'Accept: application/json'   \      -H   'Authorization: Bearer YOUR_API_ACCESS_TOKEN'   \      -X  GET  \     https://api.losant.com/applications/APPLICATION_ID/devices/DEVICE_ID/command  
Code Type Description 400 Error Error if malformed request 404 Error Error if device was not found 
Retrieve the composite last complete state of the device
GET https:// api.losant.com/applications/APPLICATION_ID /devices/DEVICE_ID /compositeState
A valid API access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Application.read, all.Device, all.Device.read, all.Organization, all.Organization.read, all.User, all.User.read, device.*, or device.getCompositeState.
Path Component Description Example APPLICATION_ID ID associated with the application 575ec8687ae143cd83dc4a97 DEVICE_ID ID associated with the device 575ecf887ae143cd83dc4aa2 
Name Required Description Default Example start N Start of time range to look at to build composite state 1 start=1465790400000end N End of time range to look at to build composite state 0 end=1465790400000attributes N Comma-separated list of attributes to include. When not provided, returns all attributes. attributes=myAttr1,myAttr2
Name Required Description Default Authorization Y The token for authenticating the request, prepended with Bearer 
curl   -H   'Content-Type: application/json'   \      -H   'Accept: application/json'   \      -H   'Authorization: Bearer YOUR_API_ACCESS_TOKEN'   \      -X  GET  \     https://api.losant.com/applications/APPLICATION_ID/devices/DEVICE_ID/compositeState  
Code Type Description 400 Error Error if malformed request 404 Error Error if device was not found 
Retrieve the recent log entries about the device
GET https:// api.losant.com/applications/APPLICATION_ID /devices/DEVICE_ID /logs
A valid API access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Application.read, all.Device, all.Device.read, all.Organization, all.Organization.read, all.User, all.User.read, device.*, or device.getLogEntries.
Path Component Description Example APPLICATION_ID ID associated with the application 575ec8687ae143cd83dc4a97 DEVICE_ID ID associated with the device 575ecf887ae143cd83dc4aa2 
Name Required Description Default Example limit N Maximum number of log entries to return 1 limit=10since N (deprecated) Look for log entries since this time (ms since epoch) since=1465790400000sortDirection N Direction to sort the log entries (by time). Accepted values are: asc, desc desc sortDirection=descduration N Duration of time range to query in milliseconds duration=86400000start N Start of time range to query in milliseconds since epoch start=1465790400000end N End of time range to query in milliseconds since epoch end=0
Name Required Description Default Authorization Y The token for authenticating the request, prepended with Bearer 
curl   -H   'Content-Type: application/json'   \      -H   'Accept: application/json'   \      -H   'Authorization: Bearer YOUR_API_ACCESS_TOKEN'   \      -X  GET  \     https://api.losant.com/applications/APPLICATION_ID/devices/DEVICE_ID/logs  
Code Type Description 200 Device Log Recent log entries 
Code Type Description 400 Error Error if malformed request 404 Error Error if device was not found 
Retrieve the last known state(s) of the device
GET https:// api.losant.com/applications/APPLICATION_ID /devices/DEVICE_ID /state
A valid API access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Application.read, all.Device, all.Device.read, all.Organization, all.Organization.read, all.User, all.User.read, device.*, or device.getState.
Path Component Description Example APPLICATION_ID ID associated with the application 575ec8687ae143cd83dc4a97 DEVICE_ID ID associated with the device 575ecf887ae143cd83dc4aa2 
Name Required Description Default Example limit N Maximum number of state entries to return 1 limit=10since N (deprecated) Look for state entries since this time (ms since epoch) since=1465790400000sortDirection N Direction to sort the state entries (by time). Accepted values are: asc, desc desc sortDirection=descduration N Duration of time range to query in milliseconds duration=86400000start N Start of time range to query in milliseconds since epoch start=1465790400000end N End of time range to query in milliseconds since epoch end=0
Name Required Description Default Authorization Y The token for authenticating the request, prepended with Bearer 
curl   -H   'Content-Type: application/json'   \      -H   'Accept: application/json'   \      -H   'Authorization: Bearer YOUR_API_ACCESS_TOKEN'   \      -X  GET  \     https://api.losant.com/applications/APPLICATION_ID/devices/DEVICE_ID/state  
Code Type Description 400 Error Error if malformed request 404 Error Error if device was not found 
Updates information about a device
PATCH https:// api.losant.com/applications/APPLICATION_ID /devices/DEVICE_ID
A valid API access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Organization, all.User, device.*, or device.patch.
Path Component Description Example APPLICATION_ID ID associated with the application 575ec8687ae143cd83dc4a97 DEVICE_ID ID associated with the device 575ecf887ae143cd83dc4aa2 
Name Required Description Default Example tagsAsObject N Return tags as an object map instead of an array tagsAsObject=trueattributesAsObject N Return attributes as an object map instead of an array attributesAsObject=false
Name Required Description Default Authorization Y The token for authenticating the request, prepended with Bearer 
Request Body  
The body of the request should be serialized JSON that validates against
the Device Patch  schema. For example, the following would be a
valid body for this request:
{    "name" :   "My Updated Device" ,    "description" :   "Description of my updated device" ,    "tags" :   [      {        "key" :   "TagKey" ,        "value" :   "TagValue"      }    ] ,    "attributes" :   [      {        "name" :   "voltage" ,        "dataType" :   "number"      }    ] ,    "deviceClass" :   "standalone" }  
curl   -H   'Content-Type: application/json'   \      -H   'Accept: application/json'   \      -H   'Authorization: Bearer YOUR_API_ACCESS_TOKEN'   \      -X  PATCH  \      -d   '{"name":"My Updated Device","description":"Description of my updated device","tags":[{"key":"TagKey","value":"TagValue"}],"attributes":[{"name":"voltage","dataType":"number"}],"deviceClass":"standalone"}'   \     https://api.losant.com/applications/APPLICATION_ID/devices/DEVICE_ID  
Code Type Description 200 Device Updated device information 
Code Type Description 400 Error Error if malformed request 404 Error Error if device was not found 
Returns payload counts for the time range specified for this device
GET https:// api.losant.com/applications/APPLICATION_ID /devices/DEVICE_ID /payloadCounts
A valid API access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, device.*, or device.payloadCounts.
Path Component Description Example APPLICATION_ID ID associated with the application 575ec8687ae143cd83dc4a97 DEVICE_ID ID associated with the device 575ecf887ae143cd83dc4aa2 
Name Required Description Default Example start N Start of range for payload count query (ms since epoch) -2592000000 start=0end N End of range for payload count query (ms since epoch) 0 end=1465790400000
Name Required Description Default Authorization Y The token for authenticating the request, prepended with Bearer 
curl   -H   'Content-Type: application/json'   \      -H   'Accept: application/json'   \      -H   'Authorization: Bearer YOUR_API_ACCESS_TOKEN'   \      -X  GET  \     https://api.losant.com/applications/APPLICATION_ID/devices/DEVICE_ID/payloadCounts  
Code Type Description 400 Error Error if malformed request 404 Error Error if device was not found 
Returns payload counts per resolution in the time range specified for this device
GET https:// api.losant.com/applications/APPLICATION_ID /devices/DEVICE_ID /payloadCountsBreakdown
A valid API access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, device.*, or device.payloadCountsBreakdown.
Path Component Description Example APPLICATION_ID ID associated with the application 575ec8687ae143cd83dc4a97 DEVICE_ID ID associated with the device 575ecf887ae143cd83dc4aa2 
Name Required Description Default Example start N Start of range for payload count query (ms since epoch) -2592000000 start=0end N End of range for payload count query (ms since epoch) 0 end=1465790400000resolution N Resolution in milliseconds. Accepted values are: 86400000, 3600000 86400000 resolution=86400000
Name Required Description Default Authorization Y The token for authenticating the request, prepended with Bearer 
curl   -H   'Content-Type: application/json'   \      -H   'Accept: application/json'   \      -H   'Authorization: Bearer YOUR_API_ACCESS_TOKEN'   \      -X  GET  \     https://api.losant.com/applications/APPLICATION_ID/devices/DEVICE_ID/payloadCountsBreakdown  
Code Type Description 400 Error Error if malformed request 404 Error Error if device was not found 
Removes all device data for the specified time range. Defaults to all data.
DELETE https:// api.losant.com/applications/APPLICATION_ID /devices/DEVICE_ID /data
A valid API access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Organization, all.User, device.*, or device.removeData.
Path Component Description Example APPLICATION_ID ID associated with the application 575ec8687ae143cd83dc4a97 DEVICE_ID ID associated with the device 575ecf887ae143cd83dc4aa2 
Name Required Description Default Example start N Start time of export (ms since epoch - 0 means now, negative is relative to now) 1 start=1465790400000end N End time of export (ms since epoch - 0 means now, negative is relative to now) 0 end=1465790400000
Name Required Description Default Authorization Y The token for authenticating the request, prepended with Bearer 
curl   -H   'Content-Type: application/json'   \      -H   'Accept: application/json'   \      -H   'Authorization: Bearer YOUR_API_ACCESS_TOKEN'   \      -X  DELETE  \     https://api.losant.com/applications/APPLICATION_ID/devices/DEVICE_ID/data  
Code Type Description 400 Error Error if malformed request 404 Error Error if device was not found 
Send a command to a device
POST https:// api.losant.com/applications/APPLICATION_ID /devices/DEVICE_ID /command
A valid API access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Device, all.Organization, all.User, device.*, or device.sendCommand.
Path Component Description Example APPLICATION_ID ID associated with the application 575ec8687ae143cd83dc4a97 DEVICE_ID ID associated with the device 575ecf887ae143cd83dc4aa2 
Name Required Description Default Authorization Y The token for authenticating the request, prepended with Bearer 
Request Body  
The body of the request should be serialized JSON that validates against
the Device Command  schema. For example, the following would be a
valid body for this request:
{    "time" :   "2016-06-13T04:00:00.000Z" ,    "name" :   "myCommand" ,    "payload" :   [      1 ,      1 ,      2 ,      3 ,      5    ] }  
curl   -H   'Content-Type: application/json'   \      -H   'Accept: application/json'   \      -H   'Authorization: Bearer YOUR_API_ACCESS_TOKEN'   \      -X  POST  \      -d   '{"time":"2016-06-13T04:00:00.000Z","name":"myCommand","payload":[1,1,2,3,5]}'   \     https://api.losant.com/applications/APPLICATION_ID/devices/DEVICE_ID/command  
Code Type Description 200 Success If command was successfully sent 
Code Type Description 400 Error Error if malformed request 404 Error Error if device was not found 
Send the current state of the device
POST https:// api.losant.com/applications/APPLICATION_ID /devices/DEVICE_ID /state
A valid API access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Device, all.Organization, all.User, device.*, or device.sendState.
Path Component Description Example APPLICATION_ID ID associated with the application 575ec8687ae143cd83dc4a97 DEVICE_ID ID associated with the device 575ecf887ae143cd83dc4aa2 
Name Required Description Default Authorization Y The token for authenticating the request, prepended with Bearer 
Request Body  
The body of the request should be serialized JSON that validates against
the Device State or States  schema. For example, the following would be a
valid body for this request:
{    "time" :   "2016-06-13T04:00:00.000Z" ,    "data" :   {      "voltage" :   22.4    } }  
curl   -H   'Content-Type: application/json'   \      -H   'Accept: application/json'   \      -H   'Authorization: Bearer YOUR_API_ACCESS_TOKEN'   \      -X  POST  \      -d   '{"time":"2016-06-13T04:00:00.000Z","data":{"voltage":22.4}}'   \     https://api.losant.com/applications/APPLICATION_ID/devices/DEVICE_ID/state  
Code Type Description 200 Success If state was successfully received 
Code Type Description 400 Error Error if malformed request 404 Error Error if device was not found 
Set the current connection status of the device
POST https:// api.losant.com/applications/APPLICATION_ID /devices/DEVICE_ID /setConnectionStatus
A valid API access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Device, all.Organization, all.User, device.*, or device.setConnectionStatus.
Path Component Description Example APPLICATION_ID ID associated with the application 575ec8687ae143cd83dc4a97 DEVICE_ID ID associated with the device 575ecf887ae143cd83dc4aa2 
Name Required Description Default Authorization Y The token for authenticating the request, prepended with Bearer 
Request Body  
The body of the request should be serialized JSON that validates against
the Device Connection Status  schema. For example, the following would be a
valid body for this request:
curl   -H   'Content-Type: application/json'   \      -H   'Accept: application/json'   \      -H   'Authorization: Bearer YOUR_API_ACCESS_TOKEN'   \      -X  POST  \      -d   '{"status":"connected"}'   \     https://api.losant.com/applications/APPLICATION_ID/devices/DEVICE_ID/setConnectionStatus  
Code Type Description 200 Success If connection status was successfully applied 
Code Type Description 400 Error Error if malformed request 404 Error Error if device was not found 
Attach to a real time stream of state messages from this device using Server Sent Events (SSE)
GET https:// api.losant.com/applications/APPLICATION_ID /devices/DEVICE_ID /stateStream
A valid API access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Application.read, all.Device, all.Device.read, all.Organization, all.Organization.read, all.User, all.User.read, device.*, or device.stateStream.
Path Component Description Example APPLICATION_ID ID associated with the application 575ec8687ae143cd83dc4a97 DEVICE_ID ID associated with the device 575ecf887ae143cd83dc4aa2 
Name Required Description Default Example keepAliveInterval N Number of seconds between keepalive messages 2 keepAliveInterval=2
Name Required Description Default Authorization Y The token for authenticating the request, prepended with Bearer 
curl   -H   'Content-Type: application/json'   \      -H   'Accept: application/json'   \      -H   'Authorization: Bearer YOUR_API_ACCESS_TOKEN'   \      -X  GET  \     https://api.losant.com/applications/APPLICATION_ID/devices/DEVICE_ID/stateStream  
SSE stream of new state messages for this device
SSE Event Name Type Description deviceState Device State An SSE event representing a single device state 
Code Type Description 400 Error Error if malformed request 404 Error Error if device was not found 
Schema for a composite Device state
(root) {}  4 keys$schema: "http://json-schema.org/draft-07/schema#" type: "object" patternProperties: {}  1 keyadditionalProperties: false  
(root) {}  2 keysvoltage: {}  2 keysloaded: {}  2 keys 
Schema for a single Device
(root) {}  3 keys$schema: "http://json-schema.org/draft-07/schema#" type: "object" properties: {}  18 keysid: {}  2 keysdeviceId: {}  2 keysapplicationId: {}  2 keyscreationDate: {}  2 keyslastUpdated: {}  2 keysdeletedAt: {}  2 keysname: {}  3 keysdescription: {}  2 keystags: {}  3 keysattributes: {}  3 keysdeviceClass: {}  2 keysgatewayId: {}  2 keysedgeAgentVersion: {}  2 keysconnectionInfo: {}  2 keysparentId: {}  1 keyancestorIds: {}  3 keyssystemInterval: {}  3 keyskeepDuplicates: {}  1 key 
(root) {}  12 keysid: "575ecf887ae143cd83dc4aa2" deviceId: "575ecf887ae143cd83dc4aa2" applicationId: "575ec8687ae143cd83dc4a97" creationDate: "2016-06-13T04:00:00.000Z" lastUpdated: "2016-06-13T04:00:00.000Z" name: "My Device" description: "A device description" tags: []  2 itemsattributes: []  1 itemparentId: "5d8a0da7ce2f3d37c205d0c5" deviceClass: "standalone" connectionInfo: {}  2 keys 
Schema for a command for a single Device
(root) {}  5 keys$schema: "http://json-schema.org/draft-07/schema#" type: "object" properties: {}  3 keystime: {}  1 keyname: {}  3 keyspayload: {}  0 keysrequired: []  1 itemadditionalProperties: false  
(root) {}  3 keystime: "2016-06-13T04:00:00.000Z" name: "myCommand" payload: []  5 items 
Schema for an array of Device Commands
(root) {}  3 keys$schema: "http://json-schema.org/draft-07/schema#" type: "array" items: {}  6 keys 
 
Schema for the body of a request to set a device's connection status
(root) {}  2 keys$schema: "http://json-schema.org/draft-07/schema#" oneOf: []  2 items 
 
Schema for exporting the data for a single device
(root) {}  4 keys$schema: "http://json-schema.org/draft-07/schema#" type: "object" properties: {}  6 keysemail: {}  3 keyscallbackUrl: {}  3 keysattributes: {}  3 keysstart: {}  1 keyend: {}  1 keyoptions: {}  2 keysadditionalProperties: false  
(root) {}  4 keysemail: "export@example.com" attributes: []  1 itemend: 0 options: {}  2 keys 
Log of connection information for a Device
(root) {}  3 keys$schema: "http://json-schema.org/draft-07/schema#" type: "array" items: {}  2 keys 
(root) []  5 items0: {}  2 keys1: {}  5 keys2: {}  2 keys3: {}  5 keys4: {}  2 keys 
Schema for the body of a Device modification request
(root) {}  4 keys$schema: "http://json-schema.org/draft-07/schema#" type: "object" properties: {}  9 keysname: {}  3 keysdescription: {}  2 keystags: {}  3 keysattributes: {}  3 keysdeviceClass: {}  2 keysgatewayId: {}  2 keysparentId: {}  1 keysystemInterval: {}  3 keyskeepDuplicates: {}  1 keyadditionalProperties: false  
(root) {}  5 keysname: "My Updated Device" description: "Description of my updated device" tags: []  1 itemattributes: []  1 itemdeviceClass: "standalone"  
Schema for the result of a device payload count request
(root) {}  3 keys$schema: "http://json-schema.org/draft-07/schema#" type: "object" properties: {}  6 keysdeviceCommand: {}  1 keydeviceConnect: {}  1 keydeviceDisconnect: {}  1 keydeviceState: {}  1 keymqttIn: {}  1 keymqttOut: {}  1 key 
(root) {}  4 keysdeviceState: 1244049 mqttOut: 12 deviceConnect: 1016 deviceDisconnect: 1016  
Schema for a single Device state
(root) {}  5 keys$schema: "http://json-schema.org/draft-07/schema#" type: "object" properties: {}  4 keystime: {}  1 keymeta: {}  0 keysdata: {}  3 keysflowVersion: {}  3 keysrequired: []  1 itemadditionalProperties: false  
(root) {}  2 keystime: "2016-06-13T04:00:00.000Z" data: {}  1 key 
Schema for a single device state or an array of device states
(root) {}  2 keys$schema: "http://json-schema.org/draft-07/schema#" oneOf: []  2 items 
(root) {}  2 keystime: "2016-06-13T04:00:00.000Z" data: {}  1 key 
Schema for an array of Device states
(root) {}  3 keys$schema: "http://json-schema.org/draft-07/schema#" type: "array" items: {}  6 keys 
 
Schema for errors returned by the API
(root) {}  3 keys$schema: "http://json-schema.org/draft-07/schema#" type: "object" properties: {}  2 keystype: {}  1 keymessage: {}  1 key 
(root) {}  2 keystype: "NotFound" message: "Application was not found"  
Schema for the result of a job being queued
(root) {}  3 keys$schema: "http://json-schema.org/draft-07/schema#" type: "object" properties: {}  3 keysjobQueued: {}  2 keysjobId: {}  2 keyssuccess: {}  2 keys 
(root) {}  3 keysjobQueued: true jobId: "clnHvJbyVkOWAZwYAwLP4" success: true  
Schema for the result of a payload counts breakdown request
(root) {}  3 keys$schema: "http://json-schema.org/draft-07/schema#" type: "object" properties: {}  3 keysstart: {}  2 keysend: {}  2 keyscounts: {}  2 keys 
(root) {}  3 keysstart: "1999-05-20T05:00:00.000Z" end: "1999-06-20T04:59:59.999Z" counts: []  1 item 
Schema for reporting a successful operation
(root) {}  3 keys$schema: "http://json-schema.org/draft-07/schema#" type: "object" properties: {}  1 key