web
You’re offline. This is a read only version of the page.
close
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

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,247 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
    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

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,990

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,576 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,028 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans