Use this overview to see every backend endpoint that ships with Sabo. For conceptual guidance on patterns (validation, auth guards, folder structure), see Server APIs.
Available Endpoints
Sabo includes the following pre-built API endpoints:Authentication
- GET /auth/callback - Handles Supabase OAuth and email verification callbacks
Marketing
- POST /api/contact - Processes contact form submissions
Payments (Stripe)
- POST /api/checkout_sessions - Creates Stripe Checkout sessions for subscriptions
- POST /api/customer_portal - Generates Stripe Customer Portal sessions for subscription management
- POST /api/webhooks/stripe - Processes subscription lifecycle + invoice events from Stripe
All endpoints include proper authentication, validation, error handling, and TypeScript types. Click any endpoint above to view detailed documentation.
Adding Custom Endpoints
To add your own API routes:- Create a new route file in
src/app/api/[your-route]/route.ts - Export HTTP method handlers (
GET,POST,PUT,DELETE) - Use Zod for request validation
- Add proper error handling and status codes
- Document your endpoint by creating a new page in
docs/api-reference/endpoint/