API for device Uptime

Dear Aikaa,

What is the API to get device uptime?

Please share the details with examples.

Thanks,
Muzahid