Calling REST APIs for Smartthings sensors

hi,

Can anyone suggest me some REST APIs for motion sensor that can fetch whether the motion sensor is connected to the hub or not.

thanks

Have you read about Web Services SmartApps in the SmartThings Docs?
http://docs.smartthings.com/en/latest/smartapp-web-services-developers-guide/index.html

Edit: I just re-read your post and noticed that you mentioned “if the motion sensor is connected to the hub or not”. What did you mean by this?

hi,

For getting the status of the sensor, the link helped. Thanks a lot.
But what i meant was what if the sensor is disconnected or lost, can we track that. So to check whether the sensor is alive or not can we have an API?

Not sure whether there is an API, but there is a smartapp.