If you found this error, please know more below. 

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 the link here and follow the instructions on Option 2 (No access to the store).