If you ever came across this error
It means that your role is neither Shop Manager nor Administrator. As only these 2 roles have permission to access the API.
You will need to refer to link here and follow the instructions on Option 2 (No access to the store).