The Meraki API allows you to automate and manage your Meraki network programmatically. It is a RESTful API that provides access to Meraki dashboard data and configurations.
1. Enable Meraki API
Before using the API, you must enable it in the Meraki Dashboard:
- Login to Meraki Dashboard → dashboard.meraki.com
- Go to “Organization” > “Settings”
- Scroll to “Dashboard API access” and toggle it ON.
- Click “Save”.
2. Generate an API Key
- Go to “My Profile” (top-right corner in the dashboard).
- Scroll to “API access”.
- Click “Generate API Key”.
- Copy and save the API Key (It won’t be shown again).
⚠️ Security Note: Treat your API key like a password—never expose it in public or store it in unsecured locations.
3. Test API Connectivity
Use Postman or cURL to test API access.
Example: Get Organization List
Using cURL:
curl -L -H "X-Cisco-Meraki-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-X GET "https://api.meraki.com/api/v1/organizations"
Using Python:
import requests
API_KEY = "YOUR_API_KEY"
url = "https://api.meraki.com/api/v1/organizations"
headers = {
"X-Cisco-Meraki-API-Key": API_KEY,
"Content-Type": "application/json"
}
response = requests.get(url, headers=headers)
print(response.json())
4. Common Meraki API Endpoints
Here are some useful endpoints:
Organization Management
| Action | Method | Endpoint |
|---|---|---|
| List organizations | GET | /organizations |
| Get org details | GET | /organizations/{orgId} |
| Claim devices to org | POST | /organizations/{orgId}/claim |
Network Management
| Action | Method | Endpoint |
|---|---|---|
| List networks | GET | /organizations/{orgId}/networks |
| Create a network | POST | /organizations/{orgId}/networks |
| Delete a network | DELETE | /networks/{networkId} |
Device Management
| Action | Method | Endpoint |
|---|---|---|
| List devices in a network | GET | /networks/{networkId}/devices |
| Get device details | GET | /devices/{serial} |
| Update device settings | PUT | /devices/{serial} |
5. Advanced Usage
- Meraki Python SDK: Use the official Meraki Python library for easier API calls. bashCopyEdit
pip install merakipythonCopyEditimport meraki API_KEY = "YOUR_API_KEY" dashboard = meraki.DashboardAPI(API_KEY) orgs = dashboard.organizations.getOrganizations() print(orgs) - Webhooks: Configure webhooks for real-time alerts.
- Automation: Automate network provisioning, VLAN assignments, SSID management, etc.
6. API Documentation
For a complete list of API endpoints, visit Meraki API Docs.

Leave a comment