PetWait Backend API
API server running on Next.js + Vercel
Available Endpoints
POST /api/auth/signup- Create accountPOST /api/auth/login- LoginPOST /api/auth/refresh- Refresh tokenGET /api/user/state- Get user state (auth required)POST /api/user/state- Sync pet state (auth required)GET /api/cosmetics/list- List all cosmeticsPOST /api/cosmetics/purchase- Purchase cosmeticPOST /api/webhooks/stripe- Stripe webhook
Documentation
See CLAUDE.md and IMPLEMENTATION.md for full API specs