Configure API Key
Before you begin:
-
API key is required. In order to get your Cisco Meraki API key, you must first ensure that API access is enabled for your specific organization. It is a two-step process: enabling the feature globally, and then generating the key for your specific user profile. Refer to the Cisco Meraki Dashboard documentation
Enable API Access
Before a key can be generated, the Organization Administrator must allow API connections.
-
Log into the Meraki Dashboard.
-
Navigate to Organization > Configure > Settings.
-
Scroll down to the Dashboard API access section.
-
Check the box labeled Enable access to the Cisco Meraki Dashboard API.
-
Click Save Changes.
Generate Your Personal API Key
API keys are tied to individual administrator accounts. If you have "Read-only" or "Full" admin rights, you can generate a key.
-
In the top-right corner of the dashboard, click your account's email address.
-
Select My Profile.
-
Scroll down to the API access section.
-
Click the Generate new API key button.
Note: A pop-up appears with your hex-string key. Copy this immediately. For security reasons, Meraki never shows you this specific string again once you close the window.
-
Click Done.
API Authentication
All API requests must be sent over HTTPS to api.meraki.com. To ensure your authentication is successful, verify the following technical requirements:
-
API Enabled: Must be checked in Organization > Settings.
-
HTTPS Only: Plain HTTP (Port 80) requests are rejected.
-
Request Header: "Authorization" : "Bearer " + api_key.