# Device status 'unknown' using mender API

**URL:** <https://hub.mender.io/t/device-status-unknown-using-mender-api/5787>\
**Category:** General Discussions\
**Created:** [April 24, 2023, 12:31pm UTC](https://hub.mender.io/t/device-status-unknown-using-mender-api/5787 "2023-04-24T12:31:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pedro-Jesus-Fuentes](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/pedro-jesus-fuentes/32/1898_2.png) [@Pedro-Jesus-Fuentes](https://hub.mender.io/u/Pedro-Jesus-Fuentes)\
**Post date:** [April 24, 2023, 12:31pm UTC](https://hub.mender.io/t/device-status-unknown-using-mender-api/5787/1 "2023-04-24T12:31:22Z")

</div>

I’m using Mender API to check through python if there’s a new update to install in [hosted.mender.io](http://hosted.mender.io). But when I use these link “[https://eu.hosted.mender.io/api/management/v1/deviceconnect/devices/{device-id}/check-update](https://eu.hosted.mender.io/api/management/v1/deviceconnect/devices/%7Bdevice-id%7D/check-update)”, I get “409 Client Error”. In mender API docs it says that it’s caused because the device it’s not connected. I checked the device status with the link “[https://eu.hosted.mender.io/api/management/v1/deviceconnect/devices/{device-id}](https://eu.hosted.mender.io/api/management/v1/deviceconnect/devices/%7Bdevice-id%7D)” and I get “‘status’: ‘unknown’” in the response. In Mender API docs also include the link “[https://eu.hosted.mender.io/api/management/v1/deviceconnect/devices/{device-id}/connect](https://eu.hosted.mender.io/api/management/v1/deviceconnect/devices/%7Bdevice-id%7D/connect)” but I get 404 Error and I don’t be able to find the reason because I recreated the Mender API docs example, whit all the headers in the request. The device is a virtual machine menderized with debian, it works perfectly and I can install deployments through [hosted.mender.io](http://hosted.mender.io) and manually using mender install, also in the mender page appears with connected status.
