Unable to connect to Magento 2 API – call fails when using “default” but works with “all”

Hey everyone,

I’m having trouble connecting to a Magento 2 instance via API.
The issue seems to be related to the store code in the endpoint.

When the call includes “default”, it fails:
:red_circle: https://www.ditur.dk/default/all/V1/modules

But when I replace it with “all”, it works as expected:
:white_check_mark: https://www.ditur.dk/rest/all/V1/modules

It looks like the “default” part in the REST path breaks the connection somehow.
Has anyone else experienced this issue — or found a fix or workaround for it?

For reference, the Magento 2 REST API documentation can be found here:
:backhand_index_pointing_right: Adobe Commerce Web API Reference

Thanks in advance for any insights!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.