API reference
Local base URL: http://localhost:4000.
Health and account routes
GET /health— service health.POST /api/auth/signup—{ name, email, password, anonymousId? }; create account and send verification link.POST /api/auth/verify-email—{ token }; verify email and receive a signed bearer session.POST /api/auth/signin—{ email, password }; authenticate verified account.POST /api/auth/password/forgot—{ email }; send reset email if the account exists.POST /api/auth/password/reset—{ token, password }; consume reset token.GET /api/auth/me— current account; requiresAuthorization: Bearer <token>.POST /api/auth/migrate-anonymous— attach browser-ID audit history to a verified account.
Users, audits, reviews
GET /api/users/me— account or anonymous quota state. Anonymous requests providex-anonymous-id.POST /api/audits/quick-scan—{ text }; anonymous or account quota is applied.POST /api/audits— multipart PDF/TXTfileortext; quota is applied.GET /api/auditsandGET /api/audits/:id— saved account audits, bearer session required.GET /api/reviews— approved public reviews.GET /api/reviews/meandPOST /api/reviews— verified account only.
Admin
POST /api/admin/auth/login takes { username, password }, returning an expiring signed token. Use it in x-admin-key for /api/admin/stats, /users, /audits, /reviews, and /settings; mutations use PATCH, PUT, and DELETE on the matching resource routes.
Other
POST /api/contact sends support requests through AWS SES.