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...
Suggested Answer

Invalid Credentials for using the API with a trial account

(0) ShareShare
ReportReport
Posted on by 5

Hello. I am trying to make an API call (any operation) with a trial account, using an Azure AD Client ID and Secret.

I can generate my OAUTH2 token without issue. However, I keep getting the following error:

<error xmlns="docs.oasis-open.org/.../metadata">

   <code>Unauthorized</code>

   <message>The credentials provided are incorrect</message>

</error>

This is the url I'm trying to hit:

https://api.businesscentral.dynamics.com/v2.0/XXXX-XXXXX-XXXXXXX/production/api/v2.0/environments

Is this even possible with a trial account?

I have the same question (0)
  • Suggested answer
    DAnny3211 Profile Picture
    11,421 Super User 2026 Season 1 on at

    hi

    try with postman

    danieleincalza.blogspot.com/.../business-central-bye-bye-basic.html

    DANiele

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 April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,072 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,129 Super User 2026 Season 1

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 650 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans