Multi-Tenant SaaS Platform API Documentation

Built with FastAPI, PostgreSQL, and Docker

Core Features

  • Schema-based multi-tenancy with PostgreSQL isolation
  • JWT Authentication with Google OAuth2 integration
  • Role-based access control (Admin/User)
  • Audit logging system
  • Email verification workflow

Tenant Management

  • Create Tenant: Register new organization with automatic schema provisioning
  • Get Tenants: List all tenants (Admin only)

User Management

  • Register User: Create account with email verification
  • Login: JWT token generation with OAuth2 password flow
  • Google Login: OAuth2 integration with Google
  • Role Management: Assign admin privileges (Superadmin only)

Admin Features

  • Audit Logs: Retrieve system-wide activity records
  • User Management: List/disable users across tenants