Base URL: http://localhost:4000/api/v1
POST /api/v1/auth/register
Content-Type: application/json
{
"email": "user@example.com",
"password": "SecurePass123",
"displayName": "John Doe"
}POST /api/v1/auth/login
Content-Type: application/json
{
"email": "user@example.com",
"password": "SecurePass123"
}Response includes accessToken (15min) and refreshToken (7d).
Authenticated requests require: Authorization: Bearer <accessToken>
POST /api/v1/projects
Authorization: Bearer <token>
{
"name": "My DeFi Protocol",
"chain": "ethereum",
"language": "solidity",
"description": "A decentralized exchange",
"repoUrl": "https://github.com/user/repo"
}GET /api/v1/projects?page=1&limit=20&search=defiGET /api/v1/projects/:idPOST /api/v1/audits
{
"projectId": "uuid",
"commitHash": "abc123"
}GET /api/v1/audits?projectId=uuid&status=COMPLETEDGET /api/v1/audits/:idPOST /api/v1/reports/generate
{
"auditId": "uuid",
"format": "MARKDOWN",
"includeAiSummary": true
}POST /api/v1/blockchain/verify
{
"auditId": "uuid",
"walletAddress": "G...XYZ"
}GET /api/v1/blockchain/audit/:auditIdPOST /api/v1/ai/chat
{
"auditId": "uuid",
"message": "Explain the reentrancy finding"
}GET /api/v1/users/mePUT /api/v1/users/me
{
"displayName": "New Name",
"walletAddress": "G...XYZ"
}GET /api/v1/healthFull Swagger documentation available at http://localhost:4000/api/docs.