How can I get a list of all preauthorized devices (with mac addresses) using mender APIs?

Hi!
Which is the best way to list all preauthorized devices on mender server using management apis?

I only need an array of mac addresses.

Thank you.

At the moment the quickest way that I found is to list all devices taking only status “preauthorized”.
Is it correct? Or do you have another solution?

thanks

HI @Ks89 yes that is the best mechanism. Are you missing something here that you need?
Drew

Ok, thank you for the confirmation