Subscribe to resource values

Endpoint to subscribe to the real-time updates. Once subscribed, you will receive a message each time that the resource receives a new value.

If there are no updates the server will send {} after the interval you specified for keepAlive. You should also keep a timer, and if you don’t receive updates after the keepAlive time is expired, yo have to resubscribe. This could happen if the Wi-Fi is down or something happens to the connection.

To subscribe from a browser we recommend to use Websocket. REST API subscription is not reliable on browsers.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
int32
required
Headers
string

SESSION_TOKEN

Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json