Api Access Now Returning 401 Unathorized

I'm accessing CS-Cart via the API and it was all working fine. Now, for some reason I don't understand, every API request is failing. I've tried creating a new API key for the user and I've tried creating a new user with a new API key but it still fails. Even the basic curl command in the documentation no longer works.

Where do I start to look?

I'm accessing CS-Cart via the API and it was all working fine. Now, for some reason I don't understand, every API request is failing. I've tried creating a new API key for the user and I've tried creating a new user with a new API key but it still fails. Even the basic curl command in the documentation no longer works.

Where do I start to look?

The issue requires examination on your server. Please contact us via HelpDesk.

Please PM me temporary FTP access so that we can check the issue

It turned out to be a server side issue after my provider had moved to me to another package. The authentication headers were being stripped by their new defaults.

The CS-Cart help desk found the issue and my hosting service fixed it.

It turned out to be a server side issue after my provider had moved to me to another package. The authentication headers were being stripped by their new defaults.

The CS-Cart help desk found the issue and my hosting service fixed it.

Thank you for letting us know it

Hi All,

I am also facing the same issue on local server. while i have started using API, it was working fine but suddenly it stopped working. It is displaying

{

"message": "Unauthorized",
"status": 401
}
message while accessing from postman client or from the basic curl command in the documentation no longer works. Only GET request working while accessing from browser.
My Postman request is as below
Method
----------
POST
Header
---------
Content-Type: application/json
Request Body
-------------------
{
"email":"customer@example.com"
}

Please suggest the sollution ASAP.

Hi,

i get also the same errorcode:

{"message":"Unauthorized","status":401}

when i try:

curl --header 'Authorization: Basic =' -X GET 'http://example.com/api/users/'

from the developerguide. https://docs.cs-cart.com/latest/developer_guide/api/index.html#auth.




Were you able to resolve this issue?
please help.