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).

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

Here is my code:

Hi, @Pna7 :waving_hand: Thanks for including those details. One question, if you try from the endpoint page, can you make a successful request? Accounts Dashboard | HubSpot

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

Thank you for taking a look! — Jaycee

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.