My Devices
/mydevices
Returns all information (including tokens) of all devices or nodes belonging to a user's UUID (identified with an "owner" property and user's UUID i.e. "owner":"0d1234a0-1234-11e3-b09c-1234e847b2cc")
coap get -H "meshblu_auth_uuid={:UUID}&meshblu_auth_token={:TOKEN}" coap://meshblu-coap.octoblu.com/mydevices
{
"devices":[
{
"owner":"0d1234a0-1234-11e3-b09c-1234e847b2cc",
"name":"SMS",
"phoneNumber":"16025551234",
"uuid":"1c1234e1-xxxx-11e3-1234-671234c01234",
"timestamp":1390861609070,
"token":"1234eg1234zz1tt1234w0op12346bt9",
"channel":"main",
"online":false,
"_id":"52e6d1234980420c4a0001db"
}
}
]
}
/devices/{uuid}/publickey
Returns the base64-encoded public key for a device, or null if the device does not have a public key.
coap get coap://meshblu-coap.octoblu.com/devices/0d1234a0-1234-11e3-b09c-1234e847b2cc/publickey
{
"publicKey" : "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0NCk1JR2ZNQTBHQ1NxR1NJYjNEUUVCQVFVQUE0R05BRENCaVFLQmdRQ3FHS3VrTzFEZTd6aFpqNitIMHF0alRrVnh3VENwdktlNGVDWjANCkZQcXJpMGNiMkpaZlhKL0RnWVNGNnZVcHdtSkc4d1ZRWktqZUdjakRPTDVVbHN1dXNGbmNDeldCUTdSS05VU2VzbVFSTVNHa1ZiMS8NCjNqK3NrWjZVdFcrNXUwOWxITnNqNnRRNTFzMVNQckNCa2VkYk5mMFRwMEdiTUpEeVI0ZTlUMDRaWndJREFRQUINCi0tLS0tRU5EIFBVQkxJQyBLRVktLS0tLQ=="
}
Updated less than a minute ago