# Invalid access token in api browser

**URL:** <https://community.prismic.io/t/invalid-access-token-in-api-browser/6350>\
**Category:** Prismic for Content Creators\
**Created:** [July 22, 2021, 7:30am UTC](https://community.prismic.io/t/invalid-access-token-in-api-browser/6350 "2021-07-22T07:30:33Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![yossin](https://avatars.discourse-cdn.com/v4/letter/y/3da27b/32.png) [@yossin](https://community.prismic.io/u/yossin)\
**Post date:** [July 22, 2021, 7:30am UTC](https://community.prismic.io/t/invalid-access-token-in-api-browser/6350/1 "2021-07-22T07:30:33Z")

</div>

Hi -  
when i try to access the api browser in prismic i get the response of "invalid access token".  
Can someone help me please?

Thanks

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [July 22, 2021, 8:47am UTC](https://community.prismic.io/t/invalid-access-token-in-api-browser/6350/2 "2021-07-22T08:47:50Z")

</div>

Hello @yossin

Welcome back to Prismic Community and thanks for posting this question to us.

The API Browser is accessed by querying your endpoint _without_ the CDN from a browser. The URL should be`https://your-repo-name.prismic.io/api/v2` when you hit the Prismic API browser. Can you send me the repo url? You can send me a private message too.

Thanks,  
Priyanka

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [July 22, 2021, 9:23am UTC](https://community.prismic.io/t/invalid-access-token-in-api-browser/6350/4 "2021-07-22T09:23:31Z")

</div>

Hi @yossin

I have received your message and this is really strange!

I managed to reproduce the issue and get the exact same error as you. I've submitted a ticket with our dev team to look into this, and I'll let you know what they say.

Thanks,  
Priyanka

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [July 22, 2021, 10:21am UTC](https://community.prismic.io/t/invalid-access-token-in-api-browser/6350/6 "2021-07-22T10:21:23Z")

</div>

Hello @yossin

I have checked your repository. It is set to be private for any request. Can you please try to change the API visibility from Private to Public and hit this URL in the API browser `https://fihservices.prismic.io/api/v2`

Thanks,  
Priyanka

---

<div class="post-metadata">

**Author:** ![yossin](https://avatars.discourse-cdn.com/v4/letter/y/3da27b/32.png) [@yossin](https://community.prismic.io/u/yossin)\
**Post date:** [July 22, 2021, 10:27am UTC](https://community.prismic.io/t/invalid-access-token-in-api-browser/6350/7 "2021-07-22T10:27:38Z")

</div>

i changed it. now when hitting the api browser i get some json response in return. I guess you can see it for yourself.  
i don't see the api browser UI like i used to before.  
it was never public. it was always private. what have been changed?

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [July 22, 2021, 3:46pm UTC](https://community.prismic.io/t/invalid-access-token-in-api-browser/6350/9 "2021-07-22T15:46:28Z")

</div>

Hello @yossin

Are you getting any errors in network tabs? Can you send me a screenshot with network tabs?

Thanks  
Priyanka

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [August 3, 2021, 2:16pm UTC](https://community.prismic.io/t/invalid-access-token-in-api-browser/6350/11 "2021-08-03T14:16:18Z")

</div>

Hello @yossin

This issue has been solved and gets fixed. Can you please test it on your side too?

Thanks,  
Priyanka

---

<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:** [August 9, 2021, 7:58am UTC](https://community.prismic.io/t/invalid-access-token-in-api-browser/6350/12 "2021-08-09T07:58:42Z")

</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, 12:36pm UTC](https://community.prismic.io/t/invalid-access-token-in-api-browser/6350/13 "2021-12-09T12:36:34Z")

</div>



---

<div class="post-metadata">

**Author:** ![david2](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@david2](https://community.prismic.io/u/david2)\
**Post date:** [April 24, 2024, 5:07am UTC](https://community.prismic.io/t/invalid-access-token-in-api-browser/6350/14 "2024-04-24T05:07:24Z")

</div>

Hi Priyanka.

I'm also getting this identical error. The visibility of my repo is Private.  
[https://brandguidedemo.cdn.prismic.io/api/v2](https://brandguidedemo.cdn.prismic.io/api/v2)

I'm using NEXT JS, so I'm accessing Prismic without an endpoint.

---

<div class="post-metadata">

**Author:** ![samlittlefair](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/samlittlefair/32/696_2.png) [@samlittlefair](https://community.prismic.io/u/samlittlefair)\
**Post date:** [April 24, 2024, 1:34pm UTC](https://community.prismic.io/t/invalid-access-token-in-api-browser/6350/16 "2024-04-24T13:34:09Z")

</div>

Hey @david2,

It sounds like your issue might be related to this:

> [@Caching issue with Next.js App Router - Vercel Deployment](https://community.prismic.io/t/caching-issue-with-next-js-app-router-vercel-deployment/13834):
>
> Dear Prismic team I set up a new Next.js App Router project using your setup command npx @slicemachine/init@latest and walking trough your step by step setup guide. In previous versions, I never had issues deploying the site to Vercel and setting up Prismic Webhooks to trigger redeploys. With this new project it seems like there are some caching issues with Vercel: If I push a new commit to Github or if I edit content on Prismic, it triggers a new deploy correctly. Unfortunately those deplo…

Take a look through the thread and see if any of the workarounds help.

Sam
