# API command to create member

**URL:** <https://community.purpleair.com/t/api-command-to-create-member/3876>\
**Category:** Data\
**Created:** [March 10, 2023, 7:29pm UTC](https://community.purpleair.com/t/api-command-to-create-member/3876 "2023-03-10T19:29:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alana\_V](https://sea2.discourse-cdn.com/flex020/user_avatar/community.purpleair.com/alana_v/32/1695_2.png) [@Alana\_V](https://community.purpleair.com/u/Alana_V)\
**Post date:** [March 10, 2023, 7:29pm UTC](https://community.purpleair.com/t/api-command-to-create-member/3876/1 "2023-03-10T19:29:12Z")

</div>

If you are attempting to create a member for a specified group with a private sensor, sensor\_id will not work (the six-digit key associated with the sensor). I have only had this API call work with the MAC address (12 character address with colon format included).

---

<div class="post-metadata">

**Author:** ![Ethan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.purpleair.com/ethan/32/177_2.png) [@Ethan](https://community.purpleair.com/u/Ethan)\
**Post date:** [March 10, 2023, 10:04pm UTC](https://community.purpleair.com/t/api-command-to-create-member/3876/2 "2023-03-10T22:04:21Z")

</div>

Hi @Alana_V, I have just tried this myself and was able to add a sensor using its sensor index. Can you share the request you are making?

Please note that the “sensor\_id” is the 12 character MAC address, and the “sensor\_index” is the unique 4-6 digit code.
