Hello Experts,
I am using Basic Authentication and web Access Key to hit Business Central API: https://api.businesscentral.dynamics.com/v1.0/domainname/Sandbox/api/beta/companies with a GET request.
Unfortunately, I am getting an error from Postman:
Regards
Jyotsna Oberai
Following worked for me for basic authentication.
1. User user name without domain
2. If using google chrome, user developer tools to get the web-services key. Simply copy doesn't copy whole thing.
Hi Stefano,
It worked! I was missing v1.0 in the url. Thanks a lot!
Thank you everyone for your help :)
The endpoint I’ve provided works.
If the endpoint is correct, please check username (use it without domain), web service access key and its expiration date.
I tried that. But I am still facing the same error. Don't know what the problem is :(
It seems you're missing the API version. Correct url:
Hello Jyotsna,
if you are make sure your web access key is correct then just make a small change in the API URL
Instead of v1.0 replace with v2.0 as shown below
Are you using the customer's user ID or partner user ID ?
Thank you for the revert.
The credentials are correct. The URL is the one that exists in web service: https://api.businesscentral.dynamics.com/tenantId/Sandbox/api/beta
Still no luck. Please suggest..
Thank you.
Regards
Jyotsna Oberai
Make sure you use the User Name and Web Service Access Key that are written in the User Card.
That user also needs to have BC license in that environment. You can't use partner login.
Sohail Ahmed
1,234
YUN ZHU
1,006
Super User 2025 Season 1
Mansi Soni
872