Comprehensive API documentation for the MetaTravel.ai platform. Explore endpoints, test requests, and integrate seamlessly.
Welcome to the MetaTravel.ai API documentation. This comprehensive API provides access to the MTI platform's features, including user management, profile management, network/referral systems, investments, and much more.
All API requests should be prefixed with:
/api/v1
Laravel automatically adds the /api prefix to routes defined in the api.php file.
To access the login endpoint:
/api/v1/login
The API tester automatically handles URL formatting.
Most endpoints require authentication using a Bearer token. Include the token in the Authorization header of your requests:
Authorization: Bearer your_token_here
All responses are returned in JSON format with the following structure:
{
"status": "success|error",
"message": "A descriptive message",
"data": {
// Response data
},
"errors": {
// Validation errors (if any)
}
}
Register a new user (supports multipart/form-data for profile image)
{
"full_name": "John Doe",
"email": "[email protected]",
"phonenumber": "1234567890",
"address": "123 Main St", // Optional
"date_of_birth": "1990-01-01",
"referral_id": "ABC123", // Optional, defaults to "META01"
"password": "SecurePassword123!",
"password_confirmation": "SecurePassword123!",
"profile_image": "[File]" // Optional, multipart upload
}
Used by mti_web frontend with enhanced validation and captcha verification.
Login and get an authentication token
{
"email": "[email protected]",
"password": "SecurePassword123!"
}
Returns user data and Bearer token for authentication.
Verify OTP for email verification
{
"email": "[email protected]",
"otp": "123456"
}
GET /v1/otp-statusPOST /v1/resend-otpLogout and invalidate the current token
Authorization: Bearer your_token_here
Get the authenticated user's information
Authorization: Bearer your_token_here
Get the authenticated user's detailed profile
Authorization: Bearer your_token_here
Update the authenticated user's profile (supports multipart/form-data for avatar)
{
"full_name": "John Smith",
"phonenumber": "9876543210",
"address": "456 New St",
"date_of_birth": "1990-01-01",
"referral_id": "ABC123", // Optional
"profile_image": "[File]" // Optional, multipart upload
}
POST /v1/profile/avatarPOST /v1/profile/change-passwordPOST /v1/profile/update-emailPOST /v1/profile/update-walletChange user password
{
"current_password": "CurrentPassword123!",
"password": "NewPassword123!",
"password_confirmation": "NewPassword123!"
}
Search users by various criteria
?q=search_term&field=name|email|phone
Multi-level referral system with upline and downline management
Real-time commission calculations and payout management
Comprehensive network statistics and performance metrics
Get the authenticated user's complete network (upline and downlines)
levels=5 // Optional, default: 5
Complete network tree with user details, levels, and relationships.
Get the authenticated user's downline network
levels=5 // Optional, default: 5
page=1 // Optional, default: 1
per_page=15 // Optional, default: 15
Get comprehensive network statistics and performance metrics
Get detailed commission breakdown and earnings history
Get recent network activity and member interactions
Log user activity for tracking and analytics
{
"activity_type": "login|purchase|referral",
"description": "Activity description",
"metadata": {} // Optional additional data
}
Multiple investment tiers with varying returns and benefits
Automated monthly profit sharing and payout management
Get available VIP package details and investment options
Create a new VIP investment
{
"investment_type_id": 1,
"amount": 1000.00,
"payment_method": "wallet|external"
}
Get the user's current investments and their status
GET /v1/payoutsGet comprehensive payout history with filtering options
GET /v1/payouts/summaryGet earnings summary and payout statistics
Comprehensive testing endpoints for development and debugging purposes.
Multiple endpoints to verify API connectivity and functionality
Validate authentication flows and token management
Check system health and automated processes
/v1/test
/v1/simple-test
/v1/direct-test
/v1/auth-test
AUTH
/v1/get-test-token
Testing endpoints for the automated VIP payout system:
/v1/payout-status
/v1/trigger-vip-payouts
/v1/payout-automation
These endpoints are for testing the automated payout system and should only be used in development environments.