Realtime (Webhook) API

The smart-me Realtime (Webhooks) API allows you to subscribe to new data of a device. You can subscripe to a single device or to all devices of a user. When a device sends new data to the cloud, a webhook sends this data as a POST request to a preconfigured URL.

Performance considerations

A single device can send it's data up to once a second. If you subscripe for a larger number of devices get sure that your API can handle this load.

Receiving a webhook notification

Creating a webhook endpoint on your server is no different from creating any page on your website. Webhook data is send as serialized protobuffer string in the POST request body.

Endpoint sample

Test your Server API Implementation