Announcements
No record found.
Anyone succeeded in creating a connection to the Business central API (https://docs.microsoft.com/da-dk/dynamics-nav/api-reference/v1.0/)
Can see others have issues with it as well:
https://community.dynamics.com/business/f/dynamics-365-business-central-forum/292569/business-central-api---authentication-with-client-id-and-secret/914168#914168
https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb/issues/517
According to this: https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-client-creds-grant-flow
i should be able to create an auth token i can use on my server that is consuming the Business central API. But i alwaus get "401 Unauthorized" Or "400 Bad Request".
Can anyone help?
What i've done so far:
What am i doing wrong? Wrong scope? Or maybe wrong setup in AAD?
I really want to avoid using basic auth in production
Please check this post :
https://madearipermadi.com/2019/12/05/how-to-connect-to-business-central-apis-with-postman-and-aad-authentication/
Sorry the post explains "delegated permissions". Not "application permissions", i'll update my question to make that clearer. Thanks
community.dynamics.com/.../oauth-2-0---grant_type---client_credentials---not-supported-in-bc-saas - i have the same problem
All if this helps anyone - I was getting something similar and what helped me was to add to the application in Azure - a scope of default without the .
In the scope section within Postman add the following:https://api.businesscentral.dynamics.com/.default
This fixed the issue for me was able to add a valid token and using it
hi
look this
danieleincalza.blogspot.com/.../business-central-bye-bye-basic.html
danieleincalza.blogspot.com/.../oauth20-business-central-app.html
DANiele
Just adding some info.
Using OAuth to connect Business Central APIs and Web Service in Postman
https://yzhums.com/20690/
Hope this helps as well.
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 631 Super User 2026 Season 2
YUN ZHU 409 Super User 2026 Season 2
Grigorios Mavrogeorgis 222 Super User 2026 Season 2