REST API for authentication, usage metering, admin management, and threat intelligence.
Base URL: https://panguard-api-production.up.railway.app
All authenticated endpoints require a Bearer token in the Authorization header.
Authentication and session management
/api/auth/registerRegister a new account/api/auth/loginLog in with email and password/api/auth/logoutInvalidate current session/api/auth/meGet current user profile/api/auth/forgot-passwordRequest password reset email/api/auth/reset-passwordReset password with tokenAccount management, GDPR, and 2FA
/api/auth/delete-accountDelete account and all data/api/auth/export-dataExport all user data (GDPR)/api/auth/totp/setupGenerate TOTP secret for 2FA/api/auth/totp/verifyVerify TOTP code to enable 2FA/api/auth/totp/disableDisable 2FA/api/auth/totp/statusCheck 2FA statusUsage metering and quota enforcement
/api/usageGet usage summary/api/usage/limitsGet quota limits for current tier/api/usage/checkCheck available quota/api/usage/recordRecord usageThreat intelligence sharing and feeds
/api/threatsUpload anonymized threat data/api/iocsSearch indicators of compromise/api/statsGet threat statistics/api/rulesFetch detection rules/api/feeds/ip-blocklistIP blocklist feed/api/feeds/domain-blocklistDomain blocklist feed