# How do I get a list of unaccepted devices with API and then selectively accept those devices?

**URL:** <https://hub.mender.io/t/how-do-i-get-a-list-of-unaccepted-devices-with-api-and-then-selectively-accept-those-devices/6466>\
**Category:** General Discussions\
**Tags:** management-api\
**Created:** [January 11, 2024, 9:32pm UTC](https://hub.mender.io/t/how-do-i-get-a-list-of-unaccepted-devices-with-api-and-then-selectively-accept-those-devices/6466 "2024-01-11T21:32:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jflick](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@jflick](https://hub.mender.io/u/jflick)\
**Post date:** [January 11, 2024, 9:32pm UTC](https://hub.mender.io/t/how-do-i-get-a-list-of-unaccepted-devices-with-api-and-then-selectively-accept-those-devices/6466/1 "2024-01-11T21:32:39Z")

</div>

Looking through the Management section of Mender’s API. However, unable to find any clear documentation on how I could implement device approvals through their API.

---

<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:** [January 12, 2024, 8:22am UTC](https://hub.mender.io/t/how-do-i-get-a-list-of-unaccepted-devices-with-api-and-then-selectively-accept-those-devices/6466/2 "2024-01-12T08:22:51Z")

</div>

Hi @jflick,

The endpoint [Mender API docs](https://docs.mender.io/api/#management-api-device-authentication) with filter `pending` should give you exactly that. More details on the flow are provided here: [Device Authentication | Mender documentation](https://docs.mender.io/overview/device-authentication)

Greetz,  
Josef
