Endpoints for registration, login, OAuth, OTP, visitor sessions, and email verification.
POST /api/v1/auth_api/login/ — Email/password login
POST /api/v1/auth_api/reg/ — Register new user
POST /api/v1/auth_api/verify-email-pin/ — Verify email PIN
POST /api/v1/auth_api/set-password-after-email-verify/ — Set password after email verification
POST /api/v1/auth_api/logout/ — Logout
POST /api/v1/auth_api/otp-login/ — Request OTP login
POST /api/v1/auth_api/send-login-otp/ — Send OTP to email
POST /api/v1/auth_api/verify-login-otp/ — Verify OTP and login
GET /api/v1/auth_api/health/ — Health check
POST /api/v1/auth_api/token/refresh/ — Refresh JWT token
OAuth Providers:
GET /api/v1/auth_api/google/authorize/ — Start Google OAuth
GET /api/v1/auth_api/google/callback/ — Google OAuth callback
GET /api/v1/auth_api/openrouter/authorize/ — Start OpenRouter OAuth
GET /api/v1/auth_api/openrouter/callback/ — OpenRouter OAuth callback
GET /api/v1/auth_api/github/authorize/ — Start GitHub OAuth
GET /api/v1/auth_api/github/callback/ — GitHub OAuth callback
GET /api/v1/auth_api/microsoft/authorize/ — Start Microsoft OAuth
GET /api/v1/auth_api/microsoft/callback/ — Microsoft OAuth callback
GET /api/v1/auth_api/oauth/result/<state>/ — SPA/mobile OAuth result fetch
User profile, preferences, and related user operations.
GET /api/v1/user_mang/user/ — Get current user details
PUT /api/v1/user_mang/user/ — Update user details
DELETE /api/v1/user_mang/user/ — Archive/delete user
GET /api/v1/user_mang/admin/user/<user_id>/ — Admin: get user by ID
PUT /api/v1/user_mang/admin/user/<user_id>/ — Admin: update user by ID
DELETE /api/v1/user_mang/admin/user/<user_id>/ — Admin: archive user by ID
Chat and messaging endpoints for system users.
GET /api/v1/chat_api/sync-conversations/<anon_id>/ — Sync conversations for visitor
GET /api/v1/chat_api/sync-conversations/<user_id>/ — Sync conversations for user
POST /api/v1/chat_api/sync-conversations/<anon_id>/ — Upload conversations for visitor
POST /api/v1/chat_api/sync-conversations/<user_id>/ — Upload conversations for user
POST /api/v1/chat_api/associate-device/ — Associate device with user/visitor
GET /api/v1/chat_api/attachments/ — List attachments
POST /api/v1/chat_api/attachments/ — Upload attachment