Could not complete OAuth 2.0 token request

Hey guys. I'm trying to get a new access token using Postman following the manual, but I see the error. I have a maker plan and have already generated an API key id and secret.

Could you please help me with that?

Thanks in advance!

this would be better posted in the Arduino IoT cloud category ➜ moving it there for you

1 Like

Hi!

It's not working for me either if I use the online version of Postman, but it works if I use Postman installed in my PC.

The trick is that you have to configure the "Audience" parameter, which in the Postman application is under "Advanced Configuration". For some reason, that option is not available in Postman online :man_shrugging: .

In the tutorial, it appears as "Authorization (step 2)."

Let me know if this helps.

1 Like

I have dedicated some minutes today to this (because I found it very strange that it was not working online) and found out a way to solve it also in the web version of Postman.

You have to include the "Audience" as a Key/Value parameter in the advanced options. The trick is that you MUST introduce the Key in lowercase (even the first character).

This way, it works.

2 Likes

Hi. Thanks a lot for your time! Interesting trick :slight_smile: I managed to find another solution - just using cURL from this doc

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.