# SliceBuilder gives "\[slices API\]: Unauthorized error"

**URL:** <https://community.prismic.io/t/slicebuilder-gives-slices-api-unauthorized-error/5075>\
**Category:** Developing with Prismic\
**Tags:** slice-machine\
**Created:** [April 23, 2021, 10:35am UTC](https://community.prismic.io/t/slicebuilder-gives-slices-api-unauthorized-error/5075 "2021-04-23T10:35:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![farhad](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@farhad](https://community.prismic.io/u/farhad)\
**Post date:** [April 23, 2021, 10:35am UTC](https://community.prismic.io/t/slicebuilder-gives-slices-api-unauthorized-error/5075/1 "2021-04-23T10:35:13Z")

</div>

Hi,  
I'm working on a website right now with nextjs with an existing prismic repository. We want to implement sliceMachine to explore what it has to offer, but we are having a hard time getting it to work.  
I used `prismic sm --setup --no-prismic ` then `prismic sm --create-slice` and it works fine, but when I try to do `prismic sm --develop` it says _[slices API]: Unauthorized_  
Any suggestions ?

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [April 26, 2021, 9:00am UTC](https://community.prismic.io/t/slicebuilder-gives-slices-api-unauthorized-error/5075/2 "2021-04-26T09:00:03Z")

</div>

Hi Farhad,

Welcome to the community!

If you would like to try Slice Machine on an existing repository, then we will need to activate it for you. I can do this for you if you provide me with your repo URL, you can send it in a private message if you don't want to share it publically.

_Note: The [Slice Library feature](https://user-guides.prismic.io/en/articles/1795688-reuse-a-slice-in-another-custom-type) is not currently available, so it will disappear if you are using it._

Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [April 27, 2021, 4:59pm UTC](https://community.prismic.io/t/slicebuilder-gives-slices-api-unauthorized-error/5075/4 "2021-04-27T16:59:22Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 5:54pm UTC](https://community.prismic.io/t/slicebuilder-gives-slices-api-unauthorized-error/5075/5 "2021-12-09T17:54:52Z")

</div>


