API Documentation
Complete API reference for THRPY platform integration
Security
All endpoints use security middleware including rate limiting, CSRF protection, and input validation.
Authentication
Most endpoints require Bearer token authentication. Use /api/auth/login to obtain a token.
Base URL
Production: https://thrpy.ai/api
Development: http://localhost:5443/api
API Endpoints
Complete list of available API endpoints
POST
/api/auth/loginUser authentication
Auth: No•Rate limited (5/min)
POST
/api/auth/registerUser registration
Auth: No•Rate limited (3/hour)
GET
/api/admin/usersList users (admin only)
Auth: Bearer token•Admin role required
POST
/api/admin/piiPII encryption management
Auth: Bearer token•Admin role + PII encryption
POST
/api/ai-therapist/chatAI therapy chat
Auth: Bearer token•Rate limited + CSRF protection