# How to get a device by his mac

**URL:** https://hub.mender.io/t/how-to-get-a-device-by-his-mac/5933
**Category:** General Discussions
**Tags:** management-api
**Created:** [June 22, 2023, 2:53pm UTC](https://hub.mender.io/t/how-to-get-a-device-by-his-mac/5933 "2023-06-22T14:53:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jflorimo](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/jflorimo/32/1912_2.png) [@jflorimo](https://hub.mender.io/u/jflorimo)
#### Post date: [June 22, 2023, 2:53pm UTC](https://hub.mender.io/t/how-to-get-a-device-by-his-mac/5933/1 "2023-06-22T14:53:27Z")

</div>

How can i request the management api to get a device by his mac ?

---

<div class="post-metadata">

### Author: ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)
#### Post date: [June 23, 2023, 8:46pm UTC](https://hub.mender.io/t/how-to-get-a-device-by-his-mac/5933/2 "2023-06-23T20:46:30Z")

</div>

Hi @jflorimo,

thanks for getting in touch! This is not directly possible, as the MAC address is a possible identifier, but not one that is guaranteed to be relevant nor one per device. So the process would be to get the device inventory, and then match on the `mac_address` property. See documentation [here](https://docs.mender.io/api/#management-api-device-inventory-list-device-inventories). If you are on Hosted Mender or Enterprise on-premise, then you can also use the more streamlined filters through the [API](https://docs.mender.io/api/#management-api-device-inventory-filters-and-search) directly.

Greetz,  
Josef
