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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

UnauthorizedThe credentials provided are incorrect

(1) ShareShare
ReportReport
Posted on by 4

I was running Postman to try out the Trail Business Central API's. I following the instruction (Access Business Central API) and just wanted to display the metadata for my Business Central account.

I used the following endpoint: https:/api.businesscentral.dynamics.com/v2.0/D365Env/api/v2.0

D365Env is a sandbox I created. I have read many post and have tried adding difference combinations of an APP in Azure but no luck. Keep getting same error. Does anything need to be done in BC that I might have missed.

but get the following error: /Unauthorized The credentials provided are incorrect /

I did get a valid token using my Azure credentials clientID and client_secret.

I also did add API's and API permissions.

Thanks for your help 

I have the same question (0)
  • Verified answer
    Judy Profile Picture
    Microsoft Employee on at
    Hi, please post on Business central forum for more assistance.
    For the error messages, you need to check the credentials provided,

    Under the Configure New Token section set the fields to the following values:

    • Token Name - give it a name
    • Grant Type - Authorization Code
    • Callback URL - this will default when marking the next checkbox.
    • Authorize using browser checkbox - Mark it 
    • Auth URL - use a URL like:  https://login.windows.net/<your tenant domain>/oauth2/authorize?resource=https://api.businesscentral.dynamics.com (Replace <your tenant domain> with the domain name or the tenant ID)
    • Access Token URL - use a URL like: https://login.windows.net/<your tenant domain>/oauth2/token?resource=https://api.businesscentral.dynamics.com (Replace <your tenant domain> with the domain name or the tenant ID)
    • Client ID - this is going to be the Application (client) ID that is located on the Overview page of the App Registration in Azure that we created previously. 
  • Suggested answer
    KasparsSemjonovs Profile Picture
    4,818 Super User 2026 Season 1 on at
    Try to use the User ID and the Web Service Access key. This can be found in the Users Card in Business Central

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March 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,894 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,086 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 626 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans