# API - Devices: Get

**URL:** <https://forums.losant.com/t/api-devices-get/4512>\
**Category:** Help\
**Tags:** workflow\
**Created:** [May 6, 2022, 2:08pm UTC](https://forums.losant.com/t/api-devices-get/4512 "2022-05-06T14:08:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Igo\_Monteiro](https://avatars.discourse-cdn.com/v4/letter/i/a5b964/32.png) [@Igo\_Monteiro](https://forums.losant.com/u/Igo_Monteiro)\
**Post date:** [May 6, 2022, 2:08pm UTC](https://forums.losant.com/t/api-devices-get/4512/1 "2022-05-06T14:08:40Z")

</div>

Hi guys.

How can i get tags and/or attributes returned as and object map instead of an array in API Node using Devices (or device): GET.  
In the node “Device: GET” we have this options.

![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/6/65b4daeb219d236ff131d76a1b68d8be94a0c414.png)

But i wanna this in the API Node.

Thank you, hope you guys understood what i need.

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [May 6, 2022, 2:17pm UTC](https://forums.losant.com/t/api-devices-get/4512/2 "2022-05-06T14:17:15Z")

</div>

Hi @Igo_Monteiro, and welcome to the Losant Forums.

Sadly there is not a way to return the attributes and tags as an object map in the API currently, but I’m filing a feature request to allow that by passing a flag as a query parameter. I will follow up with you if it is selected for development.

---

<div class="post-metadata">

**Author:** ![Igo\_Monteiro](https://avatars.discourse-cdn.com/v4/letter/i/a5b964/32.png) [@Igo\_Monteiro](https://forums.losant.com/u/Igo_Monteiro)\
**Post date:** [May 6, 2022, 2:22pm UTC](https://forums.losant.com/t/api-devices-get/4512/3 "2022-05-06T14:22:05Z")

</div>

Thank you @Dylan_Schuster, this will be an important update.  
I constantly use this feature (tags/attributes as object), because its more reusable and flexible than access using array.
