# Not Authorized when using NCW endpoint at Sandbox

**URL:** <https://community.fireblocks.com/t/not-authorized-when-using-ncw-endpoint-at-sandbox/968>\
**Category:** Support\
**Tags:** help-center\
**Created:** [April 26, 2024, 10:09pm UTC](https://community.fireblocks.com/t/not-authorized-when-using-ncw-endpoint-at-sandbox/968 "2024-04-26T22:09:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![marlonbrgomes](https://avatars.discourse-cdn.com/v4/letter/m/c77e96/32.png) [@marlonbrgomes](https://community.fireblocks.com/u/marlonbrgomes)\
**Post date:** [April 26, 2024, 10:09pm UTC](https://community.fireblocks.com/t/not-authorized-when-using-ncw-endpoint-at-sandbox/968/1 "2024-04-26T22:09:44Z")

</div>

Hey team! Im using the Sandbox environment and generated an API Key with role of non-signing admin but when I try to use POST /ncw/wallets a 401 Unauthorized is returned by the API.

With the same API Key when I try to make a GET at /ncw/wallets for test purposes I have a proper return (currently empty).

Im attaching the image below.

 ![Imagem do WhatsApp de 2024-04-23 à(s) 18.06.00_f42c198b](https://us1.discourse-cdn.com/flex015/uploads/fireblocks/original/1X/d847aad5fd322b93778a5fde8f3a41c9333305c5.jpeg)

---

<div class="post-metadata">

**Author:** ![SlavaSereb](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@SlavaSereb](https://community.fireblocks.com/u/SlavaSereb)\
**Post date:** [April 27, 2024, 6:24am UTC](https://community.fireblocks.com/t/not-authorized-when-using-ncw-endpoint-at-sandbox/968/2 "2024-04-27T06:24:25Z")

</div>

Hey @marlonbrgomes,

The only role that is allowed to create Non Custodial Wallets is:  
NCW ADMIN

You can find more info here:

> **[API Communication](https://ncw-developers.fireblocks.com/docs/api-communication#role-permissions)**
>
> 🚧Not familiar with the API user creation and authentication?Visit the links below to understand how each process works:API user creationAPI user authentication OverviewThe API communication between the customer backend and the Fireblocks platform...

---

<div class="post-metadata">

**Author:** ![marlonbrgomes](https://avatars.discourse-cdn.com/v4/letter/m/c77e96/32.png) [@marlonbrgomes](https://community.fireblocks.com/u/marlonbrgomes)\
**Post date:** [April 29, 2024, 5:33pm UTC](https://community.fireblocks.com/t/not-authorized-when-using-ncw-endpoint-at-sandbox/968/3 "2024-04-29T17:33:04Z")

</div>

Hey!!

When I try to create a new API Key the options enabled are just Viewer, Editor and Non-signing Admin.

What should I do to see this kind of NCW roles?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/fireblocks/original/1X/915db03a88ee2483f6755acc41581d03e40d4f3d.png)

---

<div class="post-metadata">

**Author:** ![SlavaSereb](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@SlavaSereb](https://community.fireblocks.com/u/SlavaSereb)\
**Post date:** [April 29, 2024, 8:04pm UTC](https://community.fireblocks.com/t/not-authorized-when-using-ncw-endpoint-at-sandbox/968/4 "2024-04-29T20:04:43Z")

</div>

Hey @marlonbrgomes,

I can see that this Sandbox account was created before the NCW feature was enabled by default in all new Sandbox workspaces, hence, you do not have these roles in the drop-down.

I will work internally on enabling NCW on your Sandbox account and will update here once done.

---

<div class="post-metadata">

**Author:** ![SlavaSereb](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@SlavaSereb](https://community.fireblocks.com/u/SlavaSereb)\
**Post date:** [April 29, 2024, 8:45pm UTC](https://community.fireblocks.com/t/not-authorized-when-using-ncw-endpoint-at-sandbox/968/5 "2024-04-29T20:45:36Z")

</div>

@marlonbrgomes you should be all set now. LMK if this works please.
