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

Announcements

News and Announcements icon
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 245

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
    Microsoft Employee 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
    245 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
    322 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,306 Super User 2026 Season 1 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,687 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,041 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 974 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans