API Reference
Integrate SentinelNexus security intelligence directly into your CI/CD pipelines and developer workflows.
Production Base URL
https://final-sentinelnexus-clerkoauth.onrender.com/api/v1Authentication
All endpoints except webhooks require a Bearer JWT token from Clerk. In the browser, this is handled automatically via session cookies.
Rate Limiting
Standard tier allows 100 requests per minute per user. Enterprise users can request higher limits via support.
Authentication & Identity
/auth/clerk/webhookAuth: Public (Svix Header Required)Clerk User Sync Webhook. Hardened with Svix signature verification. Automatically synchronizes user creation, updates, and deletion events from Clerk to the SentinelNexus database.
/users/meAuth: Clerk JWTRetrieve current authenticated user profile and session data.
AI Agents (OpenRouter LLM)
/ai-agents/chatAuth: Clerk JWTInteract with Red Team, Blue Team, and Compliance AI Agents. Streams responses using the OpenRouter API.
{ "agent_type": "red_team", "messages": [...] }Scanning Engine
/scansAuth: Clerk JWTInitialize a new security scan. Supports 'code', 'prompt', and 'text' types.
{ "content": "...", "scan_type": "code", "project_id": "..." }/scans/:idAuth: Clerk JWTGet detailed results, CVSS scores, and findings for a specific scan.
Project Management
/projectsAuth: Clerk JWTList all active security projects for the current workspace.
/projectsAuth: Clerk JWTCreate a new project container for grouped vulnerability tracking.
{ "name": "API v2", "description": "..." }Reports & Intelligence
/reports/generate/:scan_idAuth: Clerk JWTGenerate a comprehensive PDF security report with CWE mappings.
/dashboard/statsAuth: Clerk JWTAggregation data for risk heatmaps and severity distribution.
Trust & Digital Twin
/trust/scoreAuth: Clerk JWTCalculate and return the dynamic Trust Score for the organization based on active threats and posture.
/trust/digital-twinAuth: Clerk JWTGenerate the organizational Digital Twin attack graph for real-time risk visualization.
/trust/certificateAuth: Clerk JWTRetrieve a verified, shareable Trust Certificate reflecting the current security score.
Threat Intelligence & Zero-Day
/threats/predictionsAuth: Clerk JWTPredict and fetch novel zero-day adversarial attacks (e.g., prompt injections) and their mitigation strategies.
/threats/dark-webAuth: Clerk JWTMonitor and retrieve organization-specific Dark Web mentions and data leaks.
AI Governance & Auditing
/governance/assetsAuth: Clerk JWTRegister a new AI asset (e.g., LLM model, dataset) into the centralized governance inventory.
{ "name": "Prod GPT-4", "asset_type": "LLM", "provider": "OpenAI" }/governance/audit-trailAuth: Clerk JWTRetrieve the immutable audit trail of all actions performed on AI assets.
Billing & Subscriptions
/users/meAuth: Clerk JWTRetrieve current authenticated user profile, including their active subscription_tier (e.g., Starter, Pro, Enterprise).
/payments/payu/successAuth: Public (PayU Hash Required)Webhook handler for PayU payment success. Securely verifies the transaction hash and automatically upgrades the user's subscription tier.
application/x-www-form-urlencoded
Need a custom integration?
Our engineering team can help you build custom security scanners for proprietary codebases or specific compliance requirements.
Contact Integration Team