Everything you need to integrate, configure, and get the most out of NetSpectraAI's network configuration intelligence platform.
All API requests require an API key passed in the Authorization header:
Authorization: Bearer YOUR_API_KEY/api/v1/analyzeSubmit a configuration for analysis
{
"config": "! Cisco IOS configuration...",
"device_type": "cisco_ios",
"analysis_type": "full"
}/api/v1/reports/{report_id}Retrieve analysis report by ID
/api/v1/reportsList all reports for your organization
/api/v1/exportExport report in PDF, HTML, or Excel format
import requests
API_KEY = "your_api_key"
BASE_URL = "https://api.netspectra.ai/v1"
# Analyze a configuration
response = requests.post(
f"{BASE_URL}/analyze",
headers={"Authorization": f"Bearer {API_KEY}"},
json={
"config": open("router.cfg").read(),
"device_type": "cisco_ios"
}
)
report = response.json()
print(f"Found {len(report['findings'])} issues")# Analyze a configuration file
curl -X POST https://api.netspectra.ai/v1/analyze \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"config": "hostname router1\n...",
"device_type": "cisco_ios",
"analysis_type": "full"
}'
# Get report
curl https://api.netspectra.ai/v1/reports/abc123 \
-H "Authorization: Bearer YOUR_API_KEY"Our team is here to help you integrate NetSpectraAI into your workflow. Schedule a demo or reach out for technical support.