I'm just starting to play around with the API. My user has full access to the org and also the network I'm playing with. I'm just tinkering for now making API requests via curl on the command line of my Mac. If I make the request against "api.meraki.com" I get a 404 and no data is returned. If I change it to the shard I'm on "n###.meraki.com" I get a 200 OK and the data I'm expecting. So, from this I assume my API key is valid. Why doesn't the request work on api.meraki.com, but does when I point it at the specific shard?
Works:
curl -X GET \
--url 'https://n456.meraki.com/api/v0/organizations' \
-H 'X-Cisco-Meraki-API-Key: foo'\
-H 'Accept: application/json'
Doesn't work:
curl -v -X GET \
--url 'https://api.meraki.com/api/v0/organizations' \
-H 'X-Cisco-Meraki-API-Key: foo'\
-H 'Accept: application/json'