→ 🚀What's New? Explore Lansweeper's Fall 2024 Updates! Fall Launch Blog !

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Cobra7
Champion Sweeper

I am trying to follow the instructions for setting up an API bearer token but every time Hit authorize I get this error: "result=failure&message=Could+not+make+access+token+requests.The+feature+has+been+deprecated,please+download+the+latest+Postman+app"

I am following the steps here: How to Authenticate with our API | Documentation – Lansweeper

I have tried the URL's: https://www.postman.com/oauth2/callback  and all the others that are suggested and keep getting the above error.

Any suggestions on how to get the dang token?

4 REPLIES 4
DiegoPacini
Product Team
Product Team

Please have a look at this new post. Any feedback will be appreciated!

 
 
white-wizard
Engaged Sweeper

Hi @Cobra7 !

The cloud applications needs an accessible URL to provide the authorization code in order to get the bearer token.

If it is a single test, you can put any invented URL and get the code although the redirect result in a failure in the browser, but you will find in the URL the code, like:

http://new.url.not.exists.com/?code=f2f25f7c8be5d9f5

In a real environment the allowed callback URL should be public and should be managed by your application, to get the code and perform the authorization, the flow is described in https://docs.lansweeper.com/docs/api/authenticate, in authorization-and-authentication-sequence section.

Cobra7
Champion Sweeper

I'll take a look but I also got the same error when I put in an Insomnia callback URL: https://insomnia.rest

I'll try the other token option and see if I can get that to work.

MartinMeduna
Lansweeper Alumni

Hi I am afraid that this issue is related to Postman rather then API (https://github.com/postmanlabs/postman-app-support/issues/9390)

Can you elaborate a bit more on usecase that you are trying to solve. Personal token might be a solution for you as one option .

Otherwise you just follow https://docs.lansweeper.com/docs/api/authenticate#obtaining-necessary-tokens

  1. setting url in postman
  2. crafting the content of the body (using download credentials) 
  3. receiving a token