# Register notecard with product and name directly in the notehub or outside the card

**URL:** <https://discuss.blues.com/t/register-notecard-with-product-and-name-directly-in-the-notehub-or-outside-the-card/1690>\
**Category:** Notehub.io\
**Created:** [September 29, 2023, 7:33am UTC](https://discuss.blues.com/t/register-notecard-with-product-and-name-directly-in-the-notehub-or-outside-the-card/1690 "2023-09-29T07:33:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gauteh](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/gauteh/32/269_2.png) [@gauteh](https://discuss.blues.com/u/gauteh)\
**Post date:** [September 29, 2023, 7:33am UTC](https://discuss.blues.com/t/register-notecard-with-product-and-name-directly-in-the-notehub-or-outside-the-card/1690/1 "2023-09-29T07:33:23Z")

</div>

Hi,

I have a bunch of notecards that interface with a MCU that run very similar firmware. I would like to provide these as binaries, but then I cannot hardcode the serial number and product. I believe that’s only necessary the first time the notcard is registered against my account, product, etc. Would it be possible to provide some interface where I provide the serial number of the notecard in notehub, so that we’re able to register and name the notecard without doing it from the notecard api?

Regards, Gaute

---

<div class="post-metadata">

**Author:** ![drrk](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/drrk/32/836_2.png) [@drrk](https://discuss.blues.com/u/drrk)\
**Post date:** [September 29, 2023, 11:45am UTC](https://discuss.blues.com/t/register-notecard-with-product-and-name-directly-in-the-notehub-or-outside-the-card/1690/2 "2023-09-29T11:45:32Z")

</div>

Hi Gaute.

You can register the serial number by setting an environment variable with the Notehub API.  
Use [Environment Variable API - Notehub API Reference - Blues Developers](https://dev.blues.io/api-reference/notehub-api/environment-variable-api/#set-environment-variables) to set the `_sn` environment variable.

I hope this helps.

Kimball Johnson

---

<div class="post-metadata">

**Author:** ![gauteh](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/gauteh/32/269_2.png) [@gauteh](https://discuss.blues.com/u/gauteh)\
**Post date:** [September 29, 2023, 12:06pm UTC](https://discuss.blues.com/t/register-notecard-with-product-and-name-directly-in-the-notehub-or-outside-the-card/1690/3 "2023-09-29T12:06:22Z")

</div>

Thanks, I’ll try that

---

<div class="post-metadata">

**Author:** ![gauteh](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/gauteh/32/269_2.png) [@gauteh](https://discuss.blues.com/u/gauteh)\
**Post date:** [February 14, 2024, 11:59am UTC](https://discuss.blues.com/t/register-notecard-with-product-and-name-directly-in-the-notehub-or-outside-the-card/1690/4 "2024-02-14T11:59:20Z")

</div>

Shouldn’t this be: [Device API - Notehub API Reference - Blues Developers](https://dev.blues.io/api-reference/notehub-api/device-api/#provision-device) ?

---

<div class="post-metadata">

**Author:** ![gauteh](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/gauteh/32/269_2.png) [@gauteh](https://discuss.blues.com/u/gauteh)\
**Post date:** [February 14, 2024, 12:42pm UTC](https://discuss.blues.com/t/register-notecard-with-product-and-name-directly-in-the-notehub-or-outside-the-card/1690/5 "2024-02-14T12:42:40Z")

</div>

I always get invalid deviceUID, what should I use? I sent a support request since I don’t want to share product and deviceUID’s here.

---

<div class="post-metadata">

**Author:** ![gauteh](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/gauteh/32/269_2.png) [@gauteh](https://discuss.blues.com/u/gauteh)\
**Post date:** [February 25, 2024, 10:48am UTC](https://discuss.blues.com/t/register-notecard-with-product-and-name-directly-in-the-notehub-or-outside-the-card/1690/6 "2024-02-25T10:48:13Z")

</div>

Is this method documented for registering / provisioning devices _for the first time_?
