INITIALIZING
Back to VANTABase URL · /api
Gateway Endpoints

REST & WebSocket API Reference

All public client and CI traffic flows through the VANTA Express API Gateway (`http://localhost:3000/api`) with JWT authentication and Redis rate limiting.

Authentication Header

Pass your session JWT via HttpOnly cookies or as a Bearer header on protected endpoints.

Authorization: Bearer <token>

Returns the GitHub OAuth authorization redirect URL with state token.

Response (200 OK)
{
  "success": true,
  "data": { "url": "https://github.com/login/oauth/authorize?client_id=..." }
}

Standardized error codes

CodeStatusMeaning
AUTH_UNAUTHORIZED401Missing or malformed authorization header / session cookie
AUTH_TOKEN_EXPIRED401JWT expired; refresh session or re-authenticate
RATE_LIMITED429Distributed Redis rate limiter threshold exceeded
AI_QUOTA_EXCEEDED402Monthly plan review limit reached
AI_PROCESSING_FAILED502Upstream model invocation failed after retries
VALIDATION_ERROR400Invalid payload or file limit (>20 files / >500KB) exceeded