Skip to content

Store

This API provides MQTT messages to get/set values from the key/value Store.

If you need a REST API, use the Generic API with the _type set to 'Store'.

Get

Get data from the store.

Protocol

MQTT

Endpoint

mqtt: /store/get

Authorized User Role

device

Request Body

FieldTypeNotes
keystringData item unique key.

Response

Store Record.

FieldType
accountIdstring
deviceIdstring
keystring
valueobject
typestring
updateddate
expiresdate
_sourcestring

Set

Set data in the store.

Protocol

MQTT

Endpoint

mqtt: /store/set

Authorized User Role

device

Request Body

FieldTypeNotes
keystringData item unique key.
expiresnumberDate when to expire. Set to number of milliseconds since Jan 1, 1970. Date.getTime().
valueobjectSet to a number or string.
typestringSet to "number" or "string".