I know I can get a specific customer by running: curl -X GET "" -H "Authorization: Bearer token" How do I get the list of ALL customers?.. GET "" produces "{"message":"Request does not match any route.","trace":null}"

  • what is the Magento version you are using? Commented Apr 25, 2017 at 14:53

1 Answer 1


Try following

curl -X GET -g "[sortOrders][0][field]=email&searchCriteria[sortOrders][0][direction]=asc" -H "Authorization: Bearer token"

Rest API reference http://devdocs.magento.com/swagger/index_20.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.