VectorVue Client API Manual
This manual provides production-safe integration guidance for client-facing APIs.
1. Security Model
- JWT authentication with tenant claim required
- Tenant-scoped reads only for client data APIs
- Compliance APIs return signed response envelopes
- Client API telemetry ingestion is disabled (Phase 0 Sprint 0.1)
2. Base URL and Authentication
Default local endpoint:
https://127.0.0.1
Login:
POST /api/v1/client/auth/login
Use access token in all calls:
Authorization: Bearer <token>
3. Core Client Endpoints
GET /api/v1/client/findingsGET /api/v1/client/findings/{finding_id}GET /api/v1/client/evidenceGET /api/v1/client/evidence/{finding_id}GET /api/v1/client/reportsGET /api/v1/client/reports/{report_id}/downloadGET /api/v1/client/riskGET /api/v1/client/risk-summaryGET /api/v1/client/risk-trendGET /api/v1/client/remediationGET /api/v1/client/remediation-status
4. Analytics Endpoints
GET /ml/client/security-scoreGET /ml/client/riskGET /ml/client/detection-gapsGET /ml/client/anomaliesPOST /ml/client/simulateGET /ml/operator/suggestions/{campaign_id}
Client analytics response contract:
scoreconfidenceexplanationmodel_versiongenerated_at
5. Compliance Endpoints
POST /audit/sessionGET /compliance/frameworksGET /compliance/{framework}/controlsGET /compliance/{framework}/scoreGET /compliance/{framework}/reportGET /compliance/audit-window
Compliance responses include:
datasignature(cryptographic signature envelope)
6. Example Login Flow
curl -k -X POST https://127.0.0.1/api/v1/client/auth/login \
-H 'Content-Type: application/json' \
-d '{
"username": "acme_viewer",
"password": "AcmeView3r!",
"tenant_id": "10000000-0000-0000-0000-000000000001"
}'
7. Telemetry Endpoint Status
POST /api/v1/client/events and /api/v1/integrations/spectrastrike/* are retired and not exposed by the runtime API.
8. Integration Validation Checklist
- Authenticate and resolve tenant context.
- Read findings, risk, and remediation data.
- Confirm telemetry ingestion endpoints are not exposed.
- Call one analytics endpoint.
- Call one compliance endpoint and validate signature envelope presence.
9. Operational Commands
make deploy
make seed-clients
make api-smoke