# API Auth Errors

**URL:** <https://community.shiphero.com/t/api-auth-errors/1779>\
**Category:** GraphQL API\
**Created:** [January 2, 2022, 6:10pm UTC](https://community.shiphero.com/t/api-auth-errors/1779 "2022-01-02T18:10:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rbrennan](https://avatars.discourse-cdn.com/v4/letter/r/7feea3/32.png) [@rbrennan](https://community.shiphero.com/u/rbrennan)\
**Post date:** [January 2, 2022, 6:10pm UTC](https://community.shiphero.com/t/api-auth-errors/1779/1 "2022-01-02T18:10:14Z")

</div>

We have started to get authentication errors when sending requests to the API. The code has not changed on our end.

I’m able to successfully request an access token using our refresh token (and it looks like the scopes have not changed) but when I use the access token I’m getting this error: HTTPError: 401 Client Error: UNAUTHORIZED for url: [https://public-api.shiphero.com/graphql](https://public-api.shiphero.com/graphql)

---

<div class="post-metadata">

**Author:** ![tomasfd](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@tomasfd](https://community.shiphero.com/u/tomasfd)\
**Post date:** [January 4, 2022, 12:31pm UTC](https://community.shiphero.com/t/api-auth-errors/1779/2 "2022-01-04T12:31:40Z")

</div>

Hello @rbrennan!  
Welcome to our PublicAPI community!

Was this something that was working for you and suddenly did not, or is it something new you were trying and never worked so far?

Have a nice day,  
TomasFD

---

<div class="post-metadata">

**Author:** ![rbrennan](https://avatars.discourse-cdn.com/v4/letter/r/7feea3/32.png) [@rbrennan](https://community.shiphero.com/u/rbrennan)\
**Post date:** [January 4, 2022, 1:42pm UTC](https://community.shiphero.com/t/api-auth-errors/1779/3 "2022-01-04T13:42:27Z")

</div>

Hey @tomasfd - Yes it was working and suddenly started failing.

---

<div class="post-metadata">

**Author:** ![tomasfd](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@tomasfd](https://community.shiphero.com/u/tomasfd)\
**Post date:** [January 4, 2022, 6:49pm UTC](https://community.shiphero.com/t/api-auth-errors/1779/4 "2022-01-04T18:49:16Z")

</div>

Hello @rbennan  
I’m sending you a direct message as i might need some sensitive information. Check your inbox, please.  
Best,  
TomasFD
