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

FieldType
keystring

Response

FieldTypeNotes
accountIdstringOwning account.
deviceIdstringOwning device.
keystringData item key.
valueobjectData item value.
typestringData type. Set to "number" or "string".
updateddateWhen data item last updated.
expiresdateWhen data item should be deleted.

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".