web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

API testing in Postman using OAth2.0. Successful token authentication but credentials error

(0) ShareShare
ReportReport
Posted on by 7

Hi, I’m trying to test an API from business central online with OAuth 2.0
I created the azure app, configured the api permissions, the secrets and all that.
When I enter the values in postman, I get the token but when I call the API I’m getting the 401 error.

/image/

After that, I use the token and try to call the API but I get this error:

 

These are my values:

 

And I’m calling one of the standard APIs that come with business central. I just copy and paste it.

I have the same question (0)
  • Kevin Roman Profile Picture
    7 on at
    Sorry, these are the images.
     
    image
     
    image
     
    image
  • Suggested answer
    Rajvi Khushbu Profile Picture
    16 on at
    Below is a link that may be helpful:
     
     
    If you are still unable to resolve the issue, please let me know, and I can guide you through an alternate solution
     
  • Suggested answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at
    Hi, so strange issue, I have not encountered it, I hope the following test can give you some hints.
    Using OAuth to connect Business Central APIs and Web Service in Postman
    https://yzhums.com/20690/
     
    Thanks.
    ZHU

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans