# Calling API with OAuth token returns 401

**URL:** <https://forum.frame.io/t/calling-api-with-oauth-token-returns-401/829>\
**Category:** Help\
**Tags:** api, review-links\
**Created:** [October 12, 2023, 7:36pm UTC](https://forum.frame.io/t/calling-api-with-oauth-token-returns-401/829 "2023-10-12T19:36:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christoph](https://avatars.discourse-cdn.com/v4/letter/c/eb8c5e/32.png) [@Christoph](https://forum.frame.io/u/Christoph)\
**Post date:** [October 12, 2023, 7:36pm UTC](https://forum.frame.io/t/calling-api-with-oauth-token-returns-401/829/1 "2023-10-12T19:36:17Z")

</div>

I am having some troubles fetching data from the API with an OAuth token.

I confirmed the token works – when I call `/me` with the OAuth token I get the correct response.

However when I try to get information about a review link, and for example call `https://api.frame.io/v2/review_links/4781d5c6-a4fa-4cd5-a88d-bfd6eb48d280`

- Without a token I get the correct response, which is weird because according to the docs it shouldn’t work, but I guess the review id is a secret to that’s fine.
- With a developer token I get the correct response
- With an oAuth token I get an 401 error (“You are not allowed to access that resource”)

When I try to get information about a presentation link, and for example call `https://api.frame.io/v2/presentations/3626c501-edf1-4597-b89f-7cd1ebc3319f`

- Without a token I get a 401 error, which is expected
- With a developer token I get the correct response
- With an oAuth token I get a 401 error (“You are not allowed to access that resource”)

I have confirmed that the OAuth app has the correct scopes (`reviewlink.read`, `presentation.read` and `asset.read`). It has the same scopes as the developer token that works.

Is there any difference how I am supposed to use the OAuth token compared to a developer token? They are both Bearer tokens, right? I really don’t know what else to try.

---

<div class="post-metadata">

**Author:** ![jhodges](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.frame.io/jhodges/32/3_2.png) [@jhodges](https://forum.frame.io/u/jhodges)\
**Post date:** [October 18, 2023, 5:07am UTC](https://forum.frame.io/t/calling-api-with-oauth-token-returns-401/829/2 "2023-10-18T05:07:24Z")

</div>

Christoph and I met the other day but haven’t yet resolved the issue. I will do my best to remember to share an update here once we do, in case anyone else runs into the same problem!

---

<div class="post-metadata">

**Author:** ![tonyb](https://avatars.discourse-cdn.com/v4/letter/t/0ea827/32.png) [@tonyb](https://forum.frame.io/u/tonyb)\
**Post date:** [October 1, 2024, 10:18am UTC](https://forum.frame.io/t/calling-api-with-oauth-token-returns-401/829/3 "2024-10-01T10:18:57Z")

</div>

Hi man, @jhodges any news on this?
