Backend API Specification¶
The Backend API provides internal service-to-service communication, primarily for n8n workflow integration.
OpenAPI Specification¶
Overview¶
This API is used internally by n8n workflows to:
- Validate API keys before pentest execution
- Submit command results from Kali Linux
- Report discovered vulnerabilities
- Update pentest status and progress
- Notify when PDF reports are ready
Authentication¶
All endpoints require dual authentication:
The master key (MANAGER_BACKEND_MASTER_KEY) ensures only n8n can access these endpoints.
Common Endpoints¶
Validate Keys¶
Validates API keys before starting a pentest.
Submit Command¶
Submits command execution results from Kali.
Submit Vulnerability¶
Reports a discovered vulnerability.
Update Status¶
Updates pentest execution status.
Integration Notes¶
- All sensitive data is encrypted before storage
- Commands support approval workflows for dangerous operations
- Real-time updates pushed via SSE to webapp