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

Testing Business Central Api Using Postman on Local PC

(0) ShareShare
ReportReport
Posted on by 241

Hi, how are you all? Hope you all are fine. 

I'm calling a Business Central api via postman. Postman is giving an error '401 Unauthorized'. I choosed basic auth and provided username and password (Web service access key) from user card page. But still there is an error "Similar to 403 Forbidden, but specifically for use when authentication is possible but has failed or not yet been provided. The response must include a WWW-Authenticate header field containing a challenge applicable to the requested resource."

2620.post.jpg

Can anyone please tell me how to get rid of this error. Answers will be highly apprecaited. 

I have the same question (0)
  • Suggested answer
    Mohamad Vajid Profile Picture
    on at

    Hi,
    First check if it resolves and that you can authenticate in a browser with the same endpoint.
    Check if ODataV4 is enabled. Check if OData services are enabled.
    I tested with http same as your screenshot and it works fine for me. You are accessing a custom page, make sure it's enabled and published in web services.

    Screenshot-2021_2D00_09_2D00_19-161823.jpg

  • M Hussnain Javed Profile Picture
    241 on at

    Hi M Majid Manga, thanks for replying.

    Yes, ODataV4 and OData services are already enabled. My custom page is also already enabled and published in the web services.

    Now I've reinstalled the postman but still facing same issue.

  • HoangNam Profile Picture
    315 on at

    You can try with username and password which you use to log in Business Central.

    I tested with Postman and it is successful.

  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,284 Super User 2025 Season 2 on at

    Check your web service key.

    Sometimes when copy the key, few last characters are not copied.

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 3,151

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,443 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans