Matrimonial App Backend API
๐Ÿš€ Server Running - API Ready
๐Ÿ”
Sanctum Authentication
Secure phone/password authentication with API tokens
๐Ÿ‘ฅ
Profile Management
Advanced profile browsing, search, and management
๐Ÿ’ฌ
Real-time Messaging
Chat system with read/unread status tracking
๐Ÿ–ผ๏ธ
Image Storage
Profile photos and gallery management
๐Ÿ’ณ
PhonePe Payments
Premium subscription payments integration
๐Ÿ“ฑ
Flutter Ready
Complete API for mobile app development
๐Ÿ”‘ Authentication Endpoints
POST/api/auth/register
Register new user with phone, email, and password
POST/api/auth/login
Login with phone and password, returns API token
GET/api/auth/me
Get authenticated user details
๐Ÿ‘ฅ User Management Endpoints
GET/api/users/browse
Browse profiles with filters (gender, age, caste, city)
GET/api/users/search?q=term
Search profiles by name, caste, or profession
PUT/api/users/profile
Update user profile information
๐Ÿ’ฌ Messaging Endpoints
POST/api/messages/send
Send message to another user
GET/api/messages/conversations
Get all user conversations with last messages
GET/api/messages/conversation/{userId}
Get conversation history with specific user
๐Ÿ–ผ๏ธ Image Management Endpoints
POST/api/images/upload-profile
Upload profile photo (multipart/form-data)
POST/api/images/upload-gallery
Upload multiple gallery images
GET/api/images/gallery
Get user's profile photo and gallery images
๐Ÿ’ณ Payment Endpoints
POST/api/payments/initiate
Initiate premium subscription payment via PhonePe
GET/api/payments/premium-status
Check user's premium subscription status
๐Ÿงช Quick API Test

Server URL: http://localhost:8000

API Base: http://localhost:8000/api/

Test Registration:
curl -X POST http://localhost:8000/api/auth/register \ -H "Content-Type: application/json" \ -d '{ "phone": "9876543210", "email": "test@example.com", "password": "password123", "first_name": "Rahul", "last_name": "Sharma", "date_of_birth": "1995-06-15", "gender": "male", "profile_creator": "self" }'
Test Login:
curl -X POST http://localhost:8000/api/auth/login \ -H "Content-Type: application/json" \ -d '{ "phone": "9876543210", "password": "password123" }'
๐Ÿ’ก Pro Tips:
  • Use the API token from login in Authorization header: Bearer YOUR_TOKEN
  • Test with Postman or any REST client
  • All protected endpoints require authentication
  • Images are stored in storage/app/public/ directory

๐Ÿš€ Ready for Flutter App Development | ๐Ÿ“ฑ Mobile App Backend API

Built with Laravel 12 + SQLite + Sanctum Authentication

Admin Panel Test API