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

InvalidCredentials - REST Request rejected

(0) ShareShare
ReportReport
Posted on by

I'm trying to connect to the REST API of a BC App with Basic Auth and Postman, the REST Call is:

api.businesscentral.dynamics.com/.../items

The auth-user has set a valid Web Service Access Key but the response is:

{
    "error": {
        "code""Authentication_InvalidCredentials",
        "message""The server has rejected the client credentials.  CorrelationId:  d999c9a5-2395-456a-9541-9da6dca75410."
    }
}
Is there an application-wide setting to enable or disable REST accessibility?
THX
I have the same question (0)
  • Samantha73 Profile Picture
    3,297 on at

    Not in SaaS but on-premise there is a setting..with the URL in a multi environment setting what worked for me is like:

    api.businesscentral.dynamics.com/.../

    second - simple copy and paste of key doesn't work need to to expand the field . I did check license and permission for the user but not sure license is needed but good to give super permission

  • Community Member Profile Picture
    on at

    Thanks for the quick reply - I know that simple copy&paste doesn't work, I use the inspector to get the full value. The users permission is SUPER, so that shouldn't be a problem, too. Unfortunately the problem still exists...

  • Lars Lohndorf-Larsen Profile Picture
    Microsoft Employee on at

    +1 to Samanthas input, doublecheck you copied the whole key - should end with =. And for user name, make sure to use "User Name", not the email that users may normally use tolog on with:

    pastedimage1616756032265v1.png

    That really should be it - nothing else needs to be activated that I can think of.

  • Suggested answer
    Community Member Profile Picture
    on at

    Finally it was a user-licensing issue - in our installation I need to use the ADMIN-User, which is the only one with API-request rights...

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,821 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,122 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans