Make Money From Coding

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

  1. Log in to your dashboard
  2. Go to SettingsAPI Keys
  3. Click Generate New Key
  4. 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:

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: Success
  • 201 Created: Resource created successfully
  • 400 Bad Request: Invalid request data
  • 401 Unauthorized: Missing or invalid API key
  • 403 Forbidden: Insufficient permissions
  • 404 Not Found: Resource not found
  • 429 Too Many Requests: Rate limit exceeded
  • 500 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 created
  • product.published: Product published
  • sale.completed: Payment completed
  • booking.created: New booking scheduled
  • booking.cancelled: Booking cancelled

Configure webhooks in SettingsWebhooks.

Webhook Payload Example:

{
  "event": "sale.completed",
  "timestamp": "2025-01-15T14:30:00Z",
  "data": {
    "id": 456,
    "productId": 123,
    "amount": 4900,
    "buyerEmail": "customer@example.com"
  }
}
API Reference