Skip to main content

Notifications

Announcements

No record found.

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?

  • Suggested answer
    DAnny3211 Profile Picture
    9,278 Moderator on at
    RE: Invalid Credentials for using the API with a trial account

    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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans