API Reference
The Make Money From Coding API allows you to programmatically manage products, track sales, and automate your workflow. All endpoints require authentication unless otherwise specified.
Authentication
All API requests require an API key passed in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Getting Your API Key
- Log in to your dashboard
- Go to Settings → API Keys
- Click Generate New Key
- Copy and store your key securely
Keep your API key secret! Never commit it to public repositories or share it publicly.
Base URL
https://makemoneyfromcoding.com/api
Rate Limits
- Free Plan: 100 requests/hour
- Pro Plan: 1,000 requests/hour
- Enterprise: Custom limits
API Sections
Explore the full API documentation:
- Products API - Create, update, and manage your products
- Sales API - Track purchases and transactions
- Services API - Manage consulting and coaching services
- Bookings API - Handle scheduling and appointments
- Analytics API - Get insights into your sales and performance
Quick Start
Here's a simple example to get you started:
const API_KEY = process.env.MMFC_API_KEY;
const response = await fetch('https://makemoneyfromcoding.com/api/products', {
headers: {
'Authorization': `Bearer ${API_KEY}`,
},
});
const { products } = await response.json();
console.log(products);
Error Handling
All API endpoints return standard HTTP status codes:
200 OK: Success201 Created: Resource created successfully400 Bad Request: Invalid request data401 Unauthorized: Missing or invalid API key403 Forbidden: Insufficient permissions404 Not Found: Resource not found429 Too Many Requests: Rate limit exceeded500 Internal Server Error: Server error
Error Response Format:
{
"error": "Invalid API key",
"code": "INVALID_API_KEY",
"message": "The provided API key is invalid or has been revoked"
}
Webhooks
Subscribe to events in your account:
product.created: New product createdproduct.published: Product publishedsale.completed: Payment completedbooking.created: New booking scheduledbooking.cancelled: Booking cancelled
Configure webhooks in Settings → Webhooks.
Webhook Payload Example:
{
"event": "sale.completed",
"timestamp": "2025-01-15T14:30:00Z",
"data": {
"id": 456,
"productId": 123,
"amount": 4900,
"buyerEmail": "customer@example.com"
}
}