APIs & Integrations

Pna7
Participant

Private app access token not works

Hi,

I'm trying to use private app access token to call search companies api,

but I keep get 401 errors. I also try on postman, and it works!(like this photo).截圖 2022-09-07 下午4.54.06.png

I've double-checked that if I input wrong access token, but I see nothing wrong.

Here is my code:
截圖 2022-09-08 上午10.38.51.png截圖 2022-09-08 上午10.37.18.png

0 Upvotes
2 Replies 2
Jaycee_Lewis
Community Manager
Community Manager

Private app access token not works

Hi, @Pna7 👋 Thanks for including those details. One question, if you try from the endpoint page, can you make a successful request? https://developers.hubspot.com/docs/api/crm/companies 

 

Hey, @JBeatty @jpsanchez, do you have any quick tips you can share with @Pna7?

 

Thank you for taking a look! — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
Pna7
Participant

Private app access token not works

Hi, Jaycee! Thanks for reaching out. For the question, when I try from the endpoint page, I could't make a successful request, I receive 401 error.

0 Upvotes