web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    UnauthorizedThe credentials provided are incorrect
    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,661 Super User 2025 Season 2 on at
    Unauthorized The credentials provided are incorrect
    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

Responsible AI policies

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

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,330

#2
Sumit Singh Profile Picture

Sumit Singh 2,738

#3
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 2,546

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans