API Reference¶
Complete API reference for RedQuanta MCP including REST endpoints, MCP protocol, and integration examples.
REST API Reference¶
Base URL¶
Authentication¶
Core Endpoints¶
Health & Status¶
GET /health¶
GET /status¶
{
"server": {
"status": "running",
"mode": "rest",
"dangerous_mode": false
},
"tools": {
"available": 8,
"active_scans": 2
}
}
Tool Management¶
GET /tools¶
List all available tools with their capabilities.
GET /tools/{tool_name}¶
Get detailed information about a specific tool.
POST /tools/{tool_name}¶
Execute a security tool with specified parameters.
Tool-Specific APIs¶
Network Scanning¶
POST /tools/nmap_scan¶
POST /tools/masscan_scan¶
Web Testing¶
POST /tools/nikto_scan¶
POST /tools/ffuf_fuzz¶
Workflow Automation¶
POST /tools/workflow_enum¶
POST /tools/workflow_scan¶
Response Formats¶
Success Response¶
{
"success": true,
"tool": "nmap",
"version": "7.95",
"target": "192.168.1.1",
"duration": 15.234,
"data": {
"hosts": [...],
"ports": [...],
"vulnerabilities": [...]
}
}
Error Response¶
{
"error": {
"code": "INVALID_TARGET",
"message": "Target parameter is required",
"details": {
"field": "target",
"provided": null,
"expected": "string"
}
}
}
Best Practices¶
API Usage¶
- Use HTTPS in production
- Implement proper error handling
- Respect rate limits
- Validate all inputs
- Log API interactions
Performance¶
- Use pagination for large datasets
- Implement connection pooling
- Cache frequently accessed data
- Monitor response times
- Use appropriate timeouts
Security¶
- Secure API key storage
- Implement IP whitelisting
- Use least privilege access
- Monitor for abuse
- Regular security audits