Integrations
YeboCars integrates with best-in-class services to provide a seamless car marketplace experience.
AI & Machine Learning
Google Gemini AI
Provider: Google Cloud Purpose: Generative AI for content creation and search
Features
Listing Description Generation
// Example: Generate compelling car description
POST /api/ai/generate-listing
{
"make": "Toyota",
"model": "Camry",
"year": 2022,
"mileage": 15000,
"condition": "Used",
"features": ["Air Conditioning", "Bluetooth"]
}Natural Language Search
// Example: Search using plain English
POST /api/ai/search-natural-language
{
"query": "I need a reliable family SUV under $25,000 with good safety features"
}Pricing Intelligence
- Market price analysis
- Competitor pricing comparison
- Fair market value estimation
- Price optimization suggestions
Personalized Recommendations
- Analyze user behavior
- Match lifestyle preferences
- Budget-aware suggestions
- Similar car recommendations
Integration Details
- API: Google Generative AI API
- Model: Gemini 1.5 Pro
- Rate Limits: 60 requests/minute
- Response Time: ~2-5 seconds
- Cost: Pay-per-use pricing
VIN Decoder Service
Provider: NHTSA (National Highway Traffic Safety Administration) / Third-party VIN API Purpose: Decode Vehicle Identification Numbers
Features
VIN Lookup
// Example: Decode VIN number
GET /api/vin/lookup/1HGBH41JXMN109186Response Data:
- Make and model
- Year of manufacture
- Body type
- Engine specifications
- Transmission type
- Fuel type
- Manufacturer details
VIN Photo Extraction (Coming Soon)
// Upload VIN photo for OCR extraction
POST /api/vin/extract-from-image
Content-Type: multipart/form-dataOCR Technology:
- Google Cloud Vision API
- Tesseract OCR
- Custom ML model
Integration Details
- API: VIN Decoder API
- Rate Limits: 1000 requests/day
- Response Time: ~1-2 seconds
- Accuracy: 95%+
SMS & OTP Verification
Provider: Twilio / Africa's Talking Purpose: Phone number verification and authentication
Features
OTP Delivery
- Signup verification
- Password reset
- Two-factor authentication
- Transaction confirmations
SMS Templates
YeboCars: Your verification code is {OTP_CODE}.
Valid for 10 minutes. Don't share this code.YeboCars: New inquiry for your {CAR_MAKE} {CAR_MODEL}.
Log in to respond: https://yebocars.app/dashboardDelivery Channels
| Channel | Countries | Delivery Time | Cost |
|---|---|---|---|
| SMS | All African countries | 5-30 seconds | $0.02-0.10 |
| Selected countries | Instant | $0.01-0.05 | |
| Voice Call | Fallback option | 10-60 seconds | $0.05-0.15 |
Integration Details
- Provider: Africa's Talking
- Fallback: Twilio
- Success Rate: 98%+
- Retry Logic: 3 attempts with exponential backoff
Cloud Storage
Cloudflare R2
Provider: Cloudflare Purpose: Object storage for images and videos
Features
Image Storage
- Original images (up to 10MB)
- Thumbnails (auto-generated)
- Optimized versions
- WebP format conversion
Video Storage
- Video uploads (up to 100MB)
- Streaming support
- Thumbnail extraction
- Transcoding (coming soon)
CDN Integration
- Global edge network
- Automatic caching
- Image optimization
- Lazy loading support
Storage Structure
yebocars-media/
├── cars/
│ └── {carId}/
│ ├── original/
│ │ ├── image1.jpg (original)
│ │ └── image2.jpg (original)
│ ├── thumbnails/
│ │ ├── image1_300x200.jpg
│ │ └── image2_300x200.jpg
│ ├── optimized/
│ │ ├── image1_1200x800.webp
│ │ └── image2_1200x800.webp
│ └── videos/
│ └── video1.mp4
├── dealers/
│ └── {dealerId}/
│ ├── logo.png
│ └── banner.jpg
└── users/
└── {userId}/
└── avatar.jpgIntegration Details
- Storage: Cloudflare R2
- CDN: Cloudflare CDN
- Bandwidth: Unlimited
- Regions: Global edge network
- Cost: $0.015/GB stored, $0/GB bandwidth
Payment Gateways (Coming Soon)
Mobile Money Integration
Providers: Multiple Supported Methods:
- M-Pesa (Kenya)
- MTN Mobile Money (Multiple countries)
- Airtel Money (Multiple countries)
- Orange Money (Selected countries)
Features
Dealer Subscriptions
// Example: Subscribe to premium tier
POST /api/payments/subscribe
{
"plan": "premium",
"method": "mobile_money",
"phone": "+26878422613"
}Lead Purchases
// Example: Purchase inquiry access
POST /api/payments/purchase-lead
{
"inquiryId": "507f1f77bcf86cd799439011",
"method": "mobile_money"
}Payment Flow
sequenceDiagram
actor Dealer
participant App
participant API
participant Payment Gateway
participant Mobile Money
Dealer->>App: Select subscription
App->>API: Initiate payment
API->>Payment Gateway: Create payment
Payment Gateway->>Mobile Money: Send STK push
Mobile Money->>Dealer: Phone prompt
Dealer->>Mobile Money: Enter PIN
Mobile Money->>Payment Gateway: Payment confirmed
Payment Gateway->>API: Webhook notification
API->>App: Subscription activated
App->>Dealer: Success messageEmail Service
Resend
Provider: Resend Purpose: Transactional emails
Email Templates
Welcome Email
Subject: Welcome to YeboCars!
Hi {USER_NAME},
Welcome to YeboCars, Africa's leading car marketplace...Inquiry Notification
Subject: New Inquiry for Your {CAR_NAME}
Hi {DEALER_NAME},
You have a new inquiry from {CUSTOMER_NAME}...Weekly Digest
Subject: Your Weekly Performance Summary
Hi {DEALER_NAME},
Here's how your listings performed this week:
- Views: {TOTAL_VIEWS}
- Inquiries: {TOTAL_INQUIRIES}
- Top Listing: {TOP_CAR}Email Types
| Type | Trigger | Frequency |
|---|---|---|
| Welcome | User signup | Once |
| Verification | Account verification | As needed |
| Inquiry Notification | New inquiry | Real-time |
| Password Reset | Forgot password | As needed |
| Weekly Digest | Analytics summary | Weekly |
| Price Drop Alert | Favorite car price drop | Real-time |
| New Listing Alert | Saved search match | Real-time |
Integration Details
- Provider: Resend
- Delivery Rate: 99%+
- Response Time: 1-5 seconds
- Open Rate: ~35%
- Click Rate: ~15%
Analytics & Monitoring
Cloudflare Analytics
Provider: Cloudflare Purpose: Web analytics and monitoring
Metrics Tracked
Traffic Metrics
- Page views
- Unique visitors
- Bandwidth usage
- Cache hit rate
- Response times
Geographic Data
- Visitor countries
- City-level data
- Traffic patterns
- Peak hours
Performance Metrics
- Time to First Byte (TTFB)
- First Contentful Paint (FCP)
- Largest Contentful Paint (LCP)
- Core Web Vitals
MongoDB Atlas Monitoring
Provider: MongoDB Purpose: Database performance monitoring
Metrics Tracked
- Query performance
- Index usage
- Slow queries
- Connection pool
- Disk usage
- Replication lag
Custom Application Monitoring
Event Tracking
// Track user actions
analytics.track('car_viewed', {
carId: '507f1f77bcf86cd799439011',
make: 'Toyota',
model: 'Camry',
price: 25000
});
analytics.track('inquiry_sent', {
carId: '507f1f77bcf86cd799439011',
dealerId: '507f1f77bcf86cd799439012',
contactMethod: 'whatsapp'
});Real-Time Communication
Socket.io
Provider: Self-hosted Purpose: Real-time messaging and notifications
Features
Live Messaging
- Direct messages between buyers and dealers
- Real-time delivery
- Read receipts
- Typing indicators
Live Notifications
- New inquiries
- Message notifications
- Car view alerts
- Price drop alerts
Connection Management
// Client-side connection
const socket = io('wss://api.yebocars.app', {
auth: {
token: accessToken
}
});
// Listen for events
socket.on('new_message', (data) => {
console.log('New message:', data);
});
socket.on('new_inquiry', (data) => {
console.log('New inquiry:', data);
});Integration Details
- Protocol: WebSocket (Socket.io)
- Fallback: Long polling
- Max Connections: 10,000 concurrent
- Message Latency: <100ms
- Uptime: 99.9%
Social Media Integration
WhatsApp Business API (Coming Soon)
Purpose: Direct customer communication
Features
- Send listing links
- Automated responses
- Inquiry management
- Order confirmations
- Customer support
Social Sharing
Supported Platforms
- Telegram
Share Implementation
// Generate share links
const shareData = {
title: '2022 Toyota Camry - $25,000',
text: 'Check out this amazing car on YeboCars',
url: 'https://yebocars.app/cars/507f1f77bcf86cd799439011'
};
// Native share API
navigator.share(shareData);Map Integration (Coming Soon)
Google Maps Platform
Purpose: Location services
Features
Dealer Location
- Show dealer on map
- Get directions
- Distance calculation
- Nearby dealers
Search Radius
- Search within X km
- Find nearby listings
- Location-based filtering
Third-Party Integrations
Planned Integrations
Insurance Providers
- Get instant quotes
- Compare insurance rates
- Purchase coverage
- Renewal reminders
Financing Partners
- Calculate payments
- Pre-approval
- Loan applications
- Interest rate comparison
Vehicle History Reports
- Carfax integration
- AutoCheck integration
- Accident history
- Ownership records
Service Centers
- Find mechanics
- Book service appointments
- Service history
- Maintenance reminders
API Webhooks
Webhook Events
YeboCars can send webhook notifications to external systems for key events.
Available Events:
car.created- New car listing createdcar.updated- Car listing updatedcar.sold- Car marked as soldinquiry.created- New inquiry receivedinquiry.responded- Inquiry response sentdealer.approved- Dealer application approvedpayment.completed- Payment successful
Webhook Payload Example:
{
"event": "inquiry.created",
"timestamp": "2025-01-15T10:30:00Z",
"data": {
"inquiryId": "507f1f77bcf86cd799439011",
"carId": "507f1f77bcf86cd799439012",
"dealerId": "507f1f77bcf86cd799439013",
"customerId": "507f1f77bcf86cd799439014",
"message": "Is this car still available?",
"contactMethod": "whatsapp"
}
}Security:
- HMAC signature verification
- IP whitelist
- Retry logic (3 attempts)
- Timeout: 5 seconds
Developer API
Public API (Coming Soon)
Allow third-party developers to build on YeboCars.
Authentication:
- API key-based
- OAuth 2.0 support
- Rate limiting per key
Available Endpoints:
- List cars
- Search cars
- Get car details
- Create listings (with permissions)
- Manage inquiries
API Documentation:
- OpenAPI/Swagger spec
- Interactive API explorer
- Code examples
- SDKs (JavaScript, Python, PHP)
Rate Limits:
- Free tier: 1,000 requests/day
- Pro tier: 10,000 requests/day
- Enterprise: Custom limits
Integration Roadmap
Q1 2025
- [ ] WhatsApp Business API
- [ ] Google Maps integration
- [ ] Email service upgrade
- [ ] Enhanced analytics
Q2 2025
- [ ] Mobile money payments
- [ ] Insurance API integration
- [ ] Financing partners
- [ ] Public API launch
Q3 2025
- [ ] Vehicle history reports
- [ ] Service center integration
- [ ] Advanced OCR for documents
- [ ] Multi-language AI
Q4 2025
- [ ] Blockchain verification
- [ ] AR car viewing
- [ ] Voice search
- [ ] Chatbot integration